title: API Error
type: object
x-tags:
  - Models
description: The standard envelope for application-generated API errors.
required:
  - error
  - description
  - fields
properties:
  error:
    type: string
    pattern: '^[a-z][a-z0-9_]{0,62}$'
    description: A stable machine-readable identifier. Clients must tolerate unknown future values and fall back to the HTTP status.
  description:
    type: string
    minLength: 1
    description: An actionable human-readable explanation. Clients must not branch on this text.
  fields:
    type: array
    description: Malformed request fields for a `bad_request` response. Domain refusal responses always return an empty array.
    items:
      $ref: ./ApiErrorField.yaml
