Error Responses
The API uses RFC 9457 Problem Details for HTTP APIs for error responses, with content typeapplication/problem+json
. All error responses follow a consistent structure designed to provide clear, actionable information about what went wrong.
Error Structure
All error responses use the following structure:Fields
title
: A short, human-readable summary of the problem typestatus
: The HTTP status codedetail
: A human-readable explanation specific to this occurrence of the problemerrors
(optional): An array of detailed error information, including:location
: Where the error occurred (e.g.,body.items[3].tags
orpath.user-id
)message
: Specific error message textvalue
: The problematic value that caused the error
Common Error Codes
400 Bad Request
Returned when the request cannot be processed due to malformed syntax, invalid JSON, or other client errors.401 Unauthorized
Returned when authentication is required but has failed or not been provided. The API supports multiple authentication methods, and different failure modes will return specific error messages.Common 401 Reasons
malformed authorization header
: TheAuthorization
header doesn’t follow the expectedBearer <token>
formatinvalid authorization header
: The provided token is invalid, expired, or cannot be parsedexpired jwt
: The JWT token has passed its expiration time and is no longer validapplication not found
: The application referenced in the token doesn’t existapplication not active
: The application exists but is not in an active state
403 Forbidden
Returned when the authenticated user or application lacks permission to access the requested resource or perform the requested action.413 Request Entity Too Large
Returned when the request payload exceeds the maximum allowed size. The API limits request payloads to 10 MB.422 Unprocessable Entity
Returned when the request is syntactically correct but contains validation errors. This includes schema validation failures, business rule violations, and data consistency issues.500 Internal Server Error
Returned when an unexpected server-side error occurs. In production environments, sensitive error details are encrypted and replaced with a reference code that can be shared with support.Error Handling Best Practices
- Check the
status
field to determine the error category - Read the
detail
field for a human-readable explanation - Process the
errors
array for specific validation failures - Use the
location
field to identify which input fields need correction - For 400 errors, review the
errors
array to identify the specific field that caused the error - For 401 errors, check your authentication credentials and token validity
- For 413 errors, reduce your payload size to under 10 MB
- For 422 errors, review each item in the
errors
array to fix validation issues - For 500 errors, save the reference code and contact support