Skip to content
On this page

Getting started

Errors

Error responses are JSON with a message, and per-field errors for validation failures. What each status code means.

Error format

Errors are JSON with a message, plus errors per field for a 422.

422 Unprocessable ContentJSON
{
    "message": "The subject field is required.",
    "errors": {
        "subject": [
            "The subject field is required."
        ]
    }
}

Status codes

StatusMeaning
401Missing, invalid or expired token, an OAuth app the user disconnected, or a browser session instead of a token.
403Token not scoped to a team you belong to, team not on Premium, IP not allowed, the token lacks the scope the endpoint needs (the message names it), or no permission for that ticket or resource (e.g. customers need an admin or owner token).
404Not found, or not visible to the token (other teams' records always answer 404).
409The ticket was merged into another one; merged_into names it.
422Validation failed; errors lists the problems per field.
429Rate limit (or the team's monthly ticket limit) reached.