application/json unless you request a file download, and every protected endpoint requires a Bearer token in the Authorization header. This page covers the conventions that apply to all requests.
Base URL
For SaaS:Versioning
All endpoints are under the/api/v1/ path prefix. A small set of legacy endpoints (auth, providers, resources, drifts, baselines, alerts, and Kubernetes) are also accessible without the /v1/ prefix for frontend compatibility. New integrations should always use the /api/v1/ paths.
Authentication
All protected endpoints require aBearer token:
Content type
All request bodies must beapplication/json. Set the header on every mutating request:
application/json unless the endpoint returns a file download (application/pdf or text/csv).
Quick example
Retrieve the first page of cloud resources using curl:Health endpoints
These endpoints do not require authentication and are useful for monitoring and readiness checks.| Endpoint | Purpose |
|---|---|
GET /health | Liveness check |
GET /healthz | Liveness check (alias) |
GET /readyz | Readiness check — verifies DB and Redis connectivity |
GET /metrics | Prometheus metrics |
GET /swagger/index.html | Interactive Swagger UI |
Next steps
- Authentication — how to get and pass a token
- Errors — HTTP status codes and error response format
- Pagination — how list endpoints page results
- Rate limiting — limits and how to handle 429 responses
- Endpoint reference — full list of API endpoints