Stable Pro API · v1
Errors
Problem Details (RFC 9457): a stable type to decide on, a sentence in the requested language.
Errors use Problem Details (RFC 9457), with Content-Type: application/problem+json:
{
"type": "https://stable-pro.com/docs/api/problems/forbidden",
"title": "The API key lacks a required permission",
"status": 403,
"detail": "La chiave non ha il permesso receipts:read: lo può accendere il titolare della scuderia in Impostazioni → Collegamenti.",
"missing_permission": "receipts:read"
}
- Decide on
type: it is stable and in English, and it is the address of the page that explains it. Thetitleis in English too. detailis a sentence for people, in the requested language (?lang=,Accept-Language): show it, never parse it.- Some types carry extra fields:
reason(401),missing_permission(403),invalid_param(400). - Error bodies are open: a new field can arrive.
| Status | type | Meaning |
|---|---|---|
| 400 | invalid-request | The request is not valid |
| 401 | unauthorized | The API key is missing or not valid |
| 403 | forbidden | The API key lacks a required permission |
| 403 | accounting-disabled | The stable's plan does not include the Accounting area |
| 404 | not-found | Not found |
| 429 | rate-limited | Too many requests |
| 500 | internal | Internal error |
| 503 | unavailable | Service temporarily unavailable |
| 503 | events-not-ready | The stable's events are being prepared |