Skip to main content
The InfraAudit API is a JSON REST API served by the Go backend. Every endpoint returns 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:
For self-hosted deployments the default base URL is:

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 a Bearer token:
See Authentication for how to obtain a token.

Content type

All request bodies must be application/json. Set the header on every mutating request:
Responses are always 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:
Response:

Health endpoints

These endpoints do not require authentication and are useful for monitoring and readiness checks.

Next steps