Endpoint groups
Base URL
All endpoints are prefixed with
/api/. For example, the login endpoint is available at http://localhost:8000/api/auth/login.
Interactive docs
When running in development mode, the API server exposes two auto-generated documentation UIs:- Swagger UI —
http://localhost:8000/docs - ReDoc —
http://localhost:8000/redoc
The interactive docs are disabled in production by default (
DEBUG=false). To enable them in a deployed environment, set DEBUG=true — but avoid doing this on public-facing production instances.Authentication
All protected endpoints require a Bearer token in theAuthorization header. You obtain a token by calling POST /api/auth/login.
Response format
Every response body is JSON. Successful responses return the resource or a confirmation message directly as the top-level object — there is no shared envelope wrapper.Rate limiting
The API applies rate limiting to protect backend resources. The default limits are:
When you exceed the limit, the API returns
429 Too Many Requests. You can configure the thresholds in your backend settings.