Skip to main content
Developer docs menu

Developers

Errors

Errors use ordinary HTTP status codes and a small JSON body with a stable code.

The error body

  • errorobject
    • codestring, one of UNAUTHORIZED, API_ACCESS_NOT_IN_PLAN, INSUFFICIENT_SCOPE, FEATURE_NOT_IN_PLAN, INVALID_FILTER, RATE_LIMITED, NOT_FOUND, INTERNAL_ERROR

      A stable code. Branch on this.

    • messagestring

      A readable message. Show it to a person; do not branch on its wording.

{
  "error": {
    "code": "INSUFFICIENT_SCOPE",
    "message": "This key needs the read:incidents scope (or admin)."
  }
}

Codes

  • 401 UNAUTHORIZED The key is missing, wrong, deleted or past its expiry date.

    Retry: No. Check the key, or ask an admin for a new one.

  • 403 API_ACCESS_NOT_IN_PLAN Your organisation's plan no longer includes API access.

    Retry: No. It works again once the plan includes API access.

  • 403 INSUFFICIENT_SCOPE The key does not have the scope this endpoint needs.

    Retry: No. Create a key with the right scope.

  • 403 FEATURE_NOT_IN_PLAN Your plan does not include the feature, such as incident management.

    Retry: No.

  • 400 INVALID_FILTER A filter, limit or offset was not one we accept. The message lists the allowed values.

    Retry: No. Fix the request.

  • 429 RATE_LIMITED The key has made more than 120 requests in the last minute.

    Retry: Yes, after the number of seconds in the Retry-After header.

  • 404 NOT_FOUND There is no such record in your organisation, or the key may not see it.

    Retry: No.

  • 500 INTERNAL_ERROR Something went wrong on our side.

    Retry: Yes, a few times with a growing wait. If it keeps happening, tell support.

Each endpoint’s reference page lists the errors it can return, with the exact message.