Base URLs
| Environment | Base URL |
|---|---|
| Production | https://api.causeloop.ai |
| Local development | http://localhost:4000 |
All REST endpoints are prefixed with
/v1. A request to list issues is GET https://api.causeloop.ai/v1/issues.Versioning
The current API version is v1, expressed as a URL path prefix (/v1/…). Breaking changes will be released under a new prefix (e.g. /v2/…) with a migration guide and a deprecation period. Non-breaking additions — new fields, new optional query parameters, new event types — are made to the current version without a version bump.
Content type
All request and response bodies are JSON. Set theContent-Type header on mutating requests:
Content-Type: application/json.
Interactive API explorer
Causeloop ships an interactive OpenAPI explorer at:| Environment | URL |
|---|---|
| Production | https://api.causeloop.ai/docs |
| Local | http://localhost:4000/docs |
/openapi.json. You can import it into Postman, Insomnia, or any OpenAPI-compatible client.
Authentication overview
Every API request must carry a Bearer JWT in theAuthorization header:
- Authenticate with Clerk in your frontend.
- Exchange the Clerk session JWT for a Causeloop Bearer token at
POST /v1/auth/exchange. - Send the Causeloop token in the
Authorizationheader.
How the endpoint reference is organized
The auto-generated reference pages, linked in the sidebar, are organized by resource:Issues
Create, list, retrieve, update, and close issues. The primary unit of failure.
Patterns
Clusters of related issues. Filter by status, risk score, and domain.
Predictions
Forward-looking alerts generated from active patterns.
Recommendations
Concrete fix recommendations linked to patterns and predictions.
Connectors
Data source connections — create, configure, test, and sync.
Reports
Async report generation and export jobs.
Users & Members
Workspace membership, roles, invitations.
Service Accounts
Machine identities for automation and integrations.