You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All PriceStalker endpoints are grouped by resource type. The Base URL is /api. All endpoints require Authorization: Bearer <token> unless marked otherwise.
Authentication & Session Endpoints
No token required for registration status or login.
Authentication API
Method
Endpoint
Description
POST
/auth/register
Create a new user account
POST
/auth/login
Log in to retrieve a JWT session token
GET
/auth/registration-status
Check if public registrations are enabled
Products & Watcher Management
Products API
Method
Endpoint
Description
GET
/products
List all tracked products
POST
/products
Add a new product by URL
GET
/products/:id
Get details, stats, and metadata for a product
PUT
/products/:id
Update settings and notification triggers for a product
All admin endpoints require an active user account with is_admin: true or a valid system token.
System API Tokens
Method
Endpoint
Description
GET
/api/admin/system-tokens
List all active system tokens
POST
/api/admin/system-tokens
Generate a new system token
DELETE
/api/admin/system-tokens/:id
Revoke a system token
User Administation
Method
Endpoint
Description
GET
/api/admin/users
List all users in the system
POST
/api/admin/users
Create a new user account
PUT
/api/admin/users/:id
Update user details
DELETE
/api/admin/users/:id
Delete a user
PUT
/api/admin/users/:id/admin
Toggle user admin status
System Operations & Settings
Method
Endpoint
Description
GET/PUT
/api/admin/settings
Get / update global system settings
GET
/api/admin/debug/status
Check if public debug mode is active
POST
/api/admin/command
Run system command (e.g. clear-settings-cache, run-migration)
Retailer Database Mappings
Method
Endpoint
Description
GET
/api/admin/retailers
List all retailer config mappings
POST
/api/admin/retailers
Add or update a retailer configuration
DELETE
/api/admin/retailers/:id
Remove a retailer configuration
GET
/api/admin/retailers/domain/:domain
Fetch config for a specific domain
POST
/api/admin/retailers/test
Test a retailer configuration live
System Logs & Health
Method
Endpoint
Description
GET
/api/admin/logs
Fetch system logs (paginated/filtered)
DELETE
/api/admin/logs
Delete specific logs by ID
DELETE
/api/admin/logs/clear
Clear logs by level or context
GET
/api/admin/debug/db-health
Fetch active database health monitor state
POST
/api/admin/debug/db-health/test-alert
Trigger direct SMTP test email
POST
/api/admin/debug/db-health/simulate
Simulate database state transition
Debugging & Extraction
Extract API
Method
Endpoint
Description
POST
/api/admin/debug/extract
Run full multi-strategy extraction on a URL
/api/admin/debug/extract is the preferred way to test site scraper behaviors. It runs the exact same multi-strategy pipeline used by the scheduler background loops.