ApiErrorResponse
The single error format returned by EVERY Public API endpoint (including the token endpoint) for every non-success status code (4xx and 5xx).
Example:
{
"success": false,
"error": {
"status": 400,
"code": "VALIDATION_ERROR",
"message": "One or more fields are invalid. See 'details' for more information.",
"details": [ { "field": "search", "message": "The 'search' query parameter is required" } ],
"traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
"timestamp": "2026-11-05T09:00:00Z"
}
}
Never put exception messages, stack traces, secrets, host names or other implementation details in it. Build instances through SignersChoice.Public.Api.Errors.ApiErrors.
Always false for an error response.
error object
Describes what went wrong.
The HTTP status code (same value as the response status code).
Stable, machine-readable error code (UPPER_SNAKE_CASE), e.g. VALIDATION_ERROR, TOKEN_EXPIRED, INSUFFICIENT_SCOPE, SENDER_INACTIVE, NOT_FOUND. Integrations should branch on this value.
Human-readable, user-friendly description of the error.
details object[]nullable
Field level errors (validation). Omitted when there are none.
The request field (as named in the JSON body / query string) the error refers to. Omitted when the error is not tied to a single field (e.g. malformed request body).
What is wrong with the field.
Identifier of the request. Quote it when contacting support so the request can be found in the logs.
When the error occurred (UTC, ISO 8601).
{
"success": true,
"error": {
"status": 0,
"code": "string",
"message": "string",
"details": [
{
"field": "string",
"message": "string"
}
],
"traceId": "string",
"timestamp": "2024-07-29T15:51:28.071Z"
}
}