API conventions and errors
The REST API is version 1, and described in full at /openapi.yaml. Times are ISO 8601 in UTC.
| Code | Meaning |
|---|---|
| UNAUTHENTICATED (401) | Sign-in or authorisation is required. |
| FORBIDDEN (403) | Your role or scope doesn't allow it. |
| NOT_FOUND (404) | It doesn't exist in a workspace you can access. |
| VALIDATION_ERROR (422) | The request or media is invalid. |
| CONFLICT (409) | A state conflict or a repeated idempotency key. |
| RATE_LIMITED (429) | Too many requests. Wait for the time given in Retry-After. |
| PROVIDER_PERMISSION_MISSING (424) | A platform permission is missing. |
| PROVIDER_RATE_LIMITED (503) | The platform asked us to slow down. |
| PROVIDER_UNAVAILABLE (502) | The platform has a temporary problem. |
| PLAN_LIMIT_REACHED (402) | The workspace has reached a plan limit. |
| INTERNAL_ERROR (500) | Something unexpected went wrong. |
- Creating a draft accepts an Idempotency-Key header.
- Provider tokens are never returned.