Skip to content

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.

Authorization header
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.

MethodPathDescription
POST/v1/projectsCreate a project (one end-user's app). Pass your own extUserId.
GET/v1/projectsList projects. Filter with ?extUserId=user_123.
POST/v1/projects/:pid/sitesCreate a tracked site. Response includes the snippet.
GET/v1/projects/:pid/sitesList sites in a project.
GET/v1/sites/:siteId/statsAggregated analytics. Optional ?range=1h|24h|7d|30d.
GET/v1/sites/:siteId/snippetFetch the tracking snippet again for a site.
DELETE/v1/sites/:siteIdDelete a site and every event collected for it.

#Response codes

StatusMeaning
201Resource created.
204Success, no body (deletes, event collection).
400Missing or invalid body field.
401Missing, malformed, or revoked API key.
404Project or site not found in this workspace.