Skip to main content

Base URL

All endpoints are prefixed with /api/v1.

Authentication

Authenticate with an API key using the X-API-Key header:
API keys have two scopes: Create API keys in the dashboard under Settings > API Keys or via moss key create.

Response Envelope

All responses use a consistent JSON envelope.

Single resource

List

Deletion

Error Responses

Errors return an appropriate HTTP status code with a structured error body:

Pagination

List endpoints accept these query parameters: Pagination metadata is included in the meta object of list responses.

Idempotency

For mutation endpoints (POST, PATCH, DELETE), include the Idempotency-Key header to prevent duplicate operations:
If the same idempotency key is sent again, the original response is returned without creating a duplicate.

Request Tracing

Include the X-Request-Id header to attach a trace ID to your request. This ID appears in audit logs and can help with debugging.