API reference
Authentication, every /v1 endpoint, and response codes for the Platform API.
Authentication
Every /v1 request needs your workspace API key in the Authorization header. Create one in the dashboard under Developers → API Keys. Keys are shown once at creation; only a hash is stored.
curl https://quantalog-be.daorbit.in/v1/projects \
-H "Authorization: Bearer sk_live_xxxxxxxxxxxx"Endpoints
Base URL: https://quantalog-be.daorbit.in. All endpoints are scoped to the API key's workspace.
| Method | Path | Description |
|---|---|---|
| POST | /v1/projects | Create a project (one end-user's app). Pass your own extUserId. |
| GET | /v1/projects | List projects. Filter with ?extUserId=user_123. |
| POST | /v1/projects/:pid/sites | Create a tracked site. Response includes the snippet. |
| GET | /v1/projects/:pid/sites | List sites in a project. |
| GET | /v1/sites/:siteId/stats | Aggregated analytics. Optional ?range=1h|24h|7d|30d. |
| GET | /v1/sites/:siteId/snippet | Fetch the tracking snippet again for a site. |
| DELETE | /v1/sites/:siteId | Delete a site and every event collected for it. |
Response codes
| Status | Meaning |
|---|---|
201 | Resource created. |
204 | Success, no body (deletes, event collection). |
400 | Missing or invalid body field. |
401 | Missing, malformed, or revoked API key. |
404 | Project or site not found in this workspace. |