Errors
A failed call answers with an HTTP status code and a JSON body that says what went wrong.
The error body
Most endpoints answer with this shape:
{
"error": "Upload not found",
"message": "Upload not found",
"status": "error",
"code": "NotFound"
}
The upload endpoint answers in a shorter form:
{ "error": "unauthorized API KEY" }
Status codes
| Status | Code | Meaning |
|---|---|---|
| 400 | BadRequest | The request is not valid, or the action is not possible right now. |
| 401 | UnauthorizedDenied | The API key is not linked to this project. |
| 403 | AccessDenied or NoPermission | The key is disabled, the secret is wrong, or a scope is missing. |
| 404 | NotFound | The upload, task or folder does not exist in this project. |
| 500 | InternalServerError | Something went wrong in Send AI. Try again later. |
The message explains the cause, such as "Uploads can't be moved into Processed. They get there once every action has run." Each endpoint lists its own errors.
What to do
A 400 or 404 will not succeed when sent again unchanged: correct the request first. A 401 or 403 needs a change to the key or its links. See Authentication. A 500 can be sent again after a short wait.