ErrorEnvelope
Every non-2xx response on this API uses this shape. Some codes add well-known extra keys alongside code/message/request_id — payment_required carries required, available and shortfall; insufficient_scope carries required_scope; unsupported-upload 422 carries supported_formats.
- errorType: object · ErrorDetailrequired
- codeType: string · Coderequired
Stable error code. Match on this, not on the message. Codes are never renamed without a major version bump.
- messageType: string · Messagerequired
Human-readable description of the error.
- requestType: string · Request Id
_id requiredIdentifier for this request; quote it in support requests. Also returned as the
X-Request-IDheader. - availablenullable
Credits currently available. Present on
payment_required.- Type: integer · Available
Credits currently available. Present on
payment_required.
- fieldType: array object[] | null · Field Errorsnullable
_errors Present on validation failures (
validation_failed); one entry per rejected field.One rejected request field.
- requirednullable
Credits required to proceed. Present on
payment_required.- Type: integer · Required
Credits required to proceed. Present on
payment_required.
- requiredType: string · Required Scopenullable
_scope Scope the key is missing. Present on
insufficient_scope. - shortfallnullable
Credits still needed. Present on
payment_required.- Type: integer · Shortfall
Credits still needed. Present on
payment_required.
- supportedType: array string[] | null · Supported Formatsnullable
_formats Present on unsupported upload-type 422 responses: the full list of accepted file extensions (e.g. ".docx", ".xliff").