Errors and Limits
Problem Documents
Section titled “Problem Documents”A refusal or an error answers a problem document (RFC 9457), as application/problem+json:
{ "type": "https://tools.ietf.org/html/rfc9110#section-15.5.5", "title": "Not Found", "status": 404}A rejected request lists what is wrong with each field under errors. The detail, when there is one, is a sentence you can show a person.
| Status | Meaning |
|---|---|
| 400 | The request is not well formed, or a field is wrong |
| 401 | No valid access token, sign-in failed, or an API key was refused: its reason says why (When a key is refused) |
| 403 | The person may not do this, such as a role that cannot add models, or a classification closed to AI; or the route is for a person only and was called with an API key (personOnly) |
| 404 | Nothing there, or nothing the person may see: the two are the same answer |
| 409 | A conflict: a stale version (below), or the assistant already answering on a draft |
| 413 | The request is too large |
| 423 | Someone else holds the model’s edit lock |
| 429 | Too many requests, or the assistant’s monthly allowance is used up |
| 500 | A fault on the server. The answer says nothing about it but a traceId to quote to your instance’s operators, who find the details in the server’s log |
| 503 | The encryption keys are not available: the key service could not be used just now, so nothing was read or saved. Try again shortly. Or the model engine could not be reached; or it is busy, which the title says (“The engine is busy”), with Retry-After |
Changes Made At the Same Time
Section titled “Changes Made At the Same Time”Every request that changes something people share sends the version it read, so two changes made at once cannot silently replace each other. Read the thing, change it, and send back the version the answer gave:
| Change | Send As version |
|---|---|
PATCH /api/models/{id} |
the model’s version (its name, classification and visibility) |
PUT /api/models/{id}/members |
the model’s membersVersion |
POST /api/models/{id}/revisions |
the model’s revisionsVersion: the number of its newest revision |
PUT /api/models/{id}/context |
the context’s version |
PATCH /api/views/{id}, and DELETE /api/views/{id}?version= |
the view’s version |
PUT /api/classifications/{key}/ai-use |
the classification’s version |
PUT /api/assistant/settings, PUT /api/settings/sso, PUT /api/settings/sso/saml, PUT /api/settings/sign-in-methods |
the settings’ version |
PUT /api/settings/sso/groups |
the list’s version |
PUT /api/settings/people/{id}/roles |
the person’s version |
The version is required: without it the answer is 400. Something never saved has version 0, so a first save sends 0. If someone changed it since you read it, the answer is 409, nothing is changed, and the problem document says so in its detail and gives the version it has now as currentVersion:
{ "status": 409, "title": "Conflict", "detail": "Someone else changed this view since you opened it. Look at their change, then make yours again.", "currentVersion": 4}Read it again, decide, and send your change with the new version. Acts that happen once (sign-in, deactivating a person, ending a session) and adds (a new model, comment or view) send none. The screens’ side is in When someone else saved first.
While someone has the model’s edit lock, adding a revision, changing its settings or its allowed list answers 423.
Paging
Section titled “Paging”GET /api/models/page answers one page of the models you may see, with the total: page counts from 1, size is the rows a page, and q, scope, sort and filter.<column> narrow and order it as the models list does. Pages reach the first 10,000 rows. GET /api/models still answers the whole list.
GET /api/events answers 200 events at a time, newest first (limit up to 1000). When there are more, the Link header has rel="next" with the address of the next page; follow it as it is.
Limits
Section titled “Limits”- A request that carries a model can be up to 25 MB; the engine itself accepts a model of up to 20 MB. Other requests are limited to 1 MB.
- Sign-in, the second factor and step-up are limited per address and per minute: failed attempts, 10 by default, and, against a flood, attempts of any outcome, 60. An IPv6 address is counted by its /64 block, the part a provider gives one line. A successful sign-in does not count against the first, so many people behind one address sign in as often as they need. Renewing a session is limited to 6,000 a minute per address. The answer is
429, withRetry-After, when a limit is reached. Addresses in networks the instance’s operator trusts are not limited per address. After five failed sign-ins in a row the account is locked for 15 minutes, wherever the attempts come from. The platform console’s sign-in keeps a limit of 10 tries of any outcome a minute per address. An instance’s operator can change these numbers. - Each API key may make 600 calls a minute, counted by each of the instance’s API processes; past it the answer is
429, withRetry-Afterand thereasonapiKey. A key that is not known counts as a failed sign-in of its address, so an address trying key after key is refused for the rest of its minute.