API Reference
API Endpoints
Complete reference for all Claro public REST API endpoints.
The Claro API uses Bearer token authentication with API keys. All endpoints are versioned under /api/v1/.
See Authentication for how to generate and use API keys.
Available endpoints
The full interactive API reference is generated from the OpenAPI specification and available at your Claro API server:
http://your-claro-domain:3001/api/docsWhen running locally with SWAGGER_ENABLED=true, open http://localhost:3001/api/docs to explore all endpoints with request/response schemas and try them directly.
Endpoint categories
Campaigns
| Method | Path | Scope | Description |
|---|---|---|---|
GET | /api/v1/campaigns | read | List all campaigns |
GET | /api/v1/campaigns/:id | read | Get campaign details |
Users
| Method | Path | Scope | Description |
|---|---|---|---|
GET | /api/v1/users | read | List users |
GET | /api/v1/users/:id | read | Get user details |
Reports
| Method | Path | Scope | Description |
|---|---|---|---|
GET | /api/v1/reports/campaigns/:id | read | Get campaign report |
GET | /api/v1/reports/risk-scores | read | Get risk score distribution |
More endpoints are added as the public API expands. Check Swagger UI for the full list.