API: error messages

If something goes wrong, you get an HTTP status code and a short JSON response that says what is going on.

New

Version 1 of the API has just opened up for your own scripts, with API keys per workspace. What is between [brackets] we have yet to fill in.

What an error looks like

Every error has an error field with a fixed code, which you can use in your own code. Often there is also a message for people. For an error in the fields you send, issues shows per field what is wrong.

Response
HTTP/1.1 400 Bad Request

{
  "error": "validation",
  "target": "json",
  "issues": [{ "path": ["name"], "message": "Enter a name." }]
}

All error codes

StatuserrorWhat it means
400validationA field is wrong. issues says which field and why.
400bad-requestThe request cannot be read, such as JSON that is not valid.
401unauthorizedYou are not signed in, or your session has expired.
403forbiddenYou are signed in, but you are not allowed to do this.
404not-foundWhat you are looking for does not exist, or you have no access to it.
409conflictIt clashes with what is already there, such as an invitation that is still open.
413content-too-largeWhat you are sending is too large.
429too-many-requestsYou are making too many requests. See the rate limits.
500serverSomething went wrong on our side. Please try again later.

The request ID

Every response has an x-request-id header. Include it when you contact us about an error, and we will find your request straight away.

Was this helpful?

Everything for your online success, all in one place

Create an account