Base URL
| Environment | Base URL |
|---|---|
| Production | https://api.suprlogs.com |
| Local | http://localhost:4704 |
Authentication
- API keys: Create keys in Dashboard → Settings → API Keys.
- Send the key as either:
Authorization: Bearer <your-api-key>X-API-KEY: <your-api-key>
- Authenticated endpoints return
401 Unauthorizedwhen credentials are missing or invalid. - API keys are shown only once at creation. After that, only metadata and prefix are visible.
Response format
- Success responses return JSON payloads.
- Error responses return JSON with an
errorfield. - Common status codes:
400,401,403,404,422,500.
Endpoints
The Endpoints section in the sidebar is generated directly from the OpenAPI spec produced bypnpm generate:openapi.
It includes current /v1 API routes and updates as route-level @openapi annotations are added.