Skip to main content

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​

StatusCodeMeaning
400BadRequestThe request is not valid, or the action is not possible right now.
401UnauthorizedDeniedThe API key is not linked to this project.
403AccessDenied or NoPermissionThe key is disabled, the secret is wrong, or a scope is missing.
404NotFoundThe upload, task or folder does not exist in this project.
500InternalServerErrorSomething 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.