Skip to content

Errors

View as Markdown

An error answers a 4xx or 5xx status and a body with a stable key, a readable message and the ID of the call:

{
"error": "VALIDATION_ERROR",
"message": "Check the data you sent",
"traceId": "4f0c2a9e-6f1d-4c55-9d1e-2b7f3f2c8a10",
"fields": [
{ "field": "contact.email", "message": "Must be a valid email address" },
{ "field": "subject", "message": "Must be at least 3 characters long" }
]
}
Field Meaning
error Stable key. Branch on it in your code.
message Explanation for people, in the language of Accept-Language. It may change; don’t parse it.
traceId ID of the call, also in the X-Request-ID header. Quote it to support.
fields Only for validation errors: each invalid field, by its path in the body (contact.email), with its message.
data Only on some errors: values that help you react, such as the limit that was reached.
  • 400 and 422: fix the request. Show fields next to your form inputs.
  • 401: the key is missing, wrong, revoked or expired.
  • 403: the key lacks a scope, the plan does not include the API, the subscription is read-only, or a plan limit was reached.
  • 404: the request, attachment or webhook does not exist in this workspace.
  • 409: the request changed meanwhile or is in a state that does not allow the change. Read it again and decide.
  • 429: slow down and retry after Retry-After seconds. See Rate limits.
  • 5xx: retry with exponential backoff. Requests that open a resource are not idempotent: read before retrying a POST that may have succeeded.
Statuserrormessage
400INVALID_REQUESTThe request is not valid
400REQUEST_FAILEDThe request could not be processed
401API_KEY_INVALIDThe API key is not valid, was revoked or has expired
401API_KEY_MISSINGSend your API key in the Authorization: Bearer <key> header
403API_ACCESS_NOT_INCLUDEDThe organization's plan does not include API access
403API_KEY_SCOPE_MISSINGThe API key does not have the {scope} scope
403ORGANIZATION_INACTIVEThe organization is not active
403SUBSCRIPTION_READ_ONLYThe subscription has an overdue payment and the API only allows reads
403WEBHOOK_LIMIT_REACHEDThe plan allows up to {limit} active integrations
404API_VERSION_UNSUPPORTEDAPI version {version} does not exist. Available versions: {versions}
404ATTACHMENT_NOT_FOUNDThe attachment was not found
404NOT_FOUNDThe resource was not found
404ROUTE_NOT_FOUNDThe route does not exist in this API version
404TICKET_NOT_FOUNDRequest {number} was not found
404WEBHOOK_NOT_FOUNDThe webhook was not found
409INVALID_TICKET_TRANSITIONThe request cannot change from {from} to {to}
409TICKET_CONCURRENT_CHANGEThe request changed while yours was being processed. Read it again and retry
409TICKET_PRIORITY_CHANGE_PENDINGA priority raise is already awaiting approval for this request
409TICKET_WORK_BLOCKEDWork cannot continue at stage {stage} until pending approvals or critical prerequisites are completed
409TICKET_WORKFLOW_NOT_CONFIGUREDThe workspace has no statuses configured yet. Open the portal once to create them
409WEBHOOK_NAME_TAKENA webhook with that name already exists in this workspace
413ATTACHMENT_TOO_LARGEThe file exceeds the {max} MB limit
415ATTACHMENT_TYPE_NOT_ALLOWEDFile type not allowed. Allowed: {allowed}
422ATTACHMENT_EMPTYThe file is empty
422ATTACHMENT_FILE_REQUIREDSend the file in the file field of a multipart form
422DEPARTMENT_NOT_FOUNDThe department does not exist or is inactive
422LOCATION_NOT_FOUNDThe location does not exist or is inactive
422SERVICE_NOT_FOUNDThe service does not exist, is not published or is not available to this workspace
422TICKET_NOTHING_TO_CHANGEGive the status or the priority to change
422TICKET_PRIORITY_NOTE_REQUIREDGive a reason for the priority change (at least 3 characters)
422TICKET_TRANSITION_CLOSURE_CODE_REQUIREDTo move the request to {to}, enter the closure code
422TICKET_TRANSITION_REASON_REQUIREDTo move the request to {to}, give a reason for the change (at least 3 characters)
422TICKET_TRANSITION_SOLUTION_REQUIREDTo move the request to {to}, describe the applied solution (at least 3 characters)
422VALIDATION_ERRORCheck the data you sent
422WEBHOOK_EVENT_UNKNOWNUnknown event: {event}. Available: {events}
422WEBHOOK_URL_NOT_ALLOWEDThe URL must be https and point to a public address
429RATE_LIMITEDToo many requests. Try again in {retryAfter} seconds
429TICKET_QUOTA_REACHEDThe organization reached its limit of {limit} requests this month
500INTERNAL_SERVER_ERRORAn unexpected error occurred
502ATTACHMENT_STORAGE_ERRORThe file could not be stored or read. Try again

Validation messages inside fields use their own keys (VALIDATION_REQUIRED, VALIDATION_MAX_LENGTH…); rely on field to tell them apart and show message as is.