> ## Documentation Index
> Fetch the complete documentation index at: https://developers.nativehub.live/llms.txt
> Use this file to discover all available pages before exploring further.

# List error codes

> Retrieve paginated list of error codes



## OpenAPI

````yaml GET /error-codes
openapi: 3.0.3
info:
  title: NativeMessage API
  version: 1.0.0
  description: Complete API documentation for NativeMessage platform
  contact:
    name: NativeMessage Support
    email: support@nativemessage.com
servers:
  - url: https://api-message.nativehub.live/api/v1
    description: Production server
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /error-codes:
    get:
      tags:
        - Error Codes
      summary: List error codes
      description: Retrieve paginated list of error codes
      operationId: listErrorCodes
      parameters:
        - $ref: '#/components/parameters/PageParam'
        - $ref: '#/components/parameters/PerPageParam'
      responses:
        '200':
          description: Error codes retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedErrorCodes'
components:
  parameters:
    PageParam:
      name: page
      in: query
      description: Page number (default 1)
      schema:
        type: integer
        default: 1
        minimum: 1
    PerPageParam:
      name: per_page
      in: query
      description: Items per page (default 20, max 100)
      schema:
        type: integer
        default: 20
        minimum: 1
        maximum: 100
  schemas:
    PaginatedErrorCodes:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ErrorCode'
        total:
          type: integer
        page:
          type: integer
        per_page:
          type: integer
    ErrorCode:
      type: object
      properties:
        id:
          type: string
          format: uuid
        code:
          type: string
        description:
          type: string
        category:
          type: string
        resolution:
          type: string
        created_at:
          type: string
          format: date-time
      example:
        id: a5b6c7d8-e9f0-1234-ab56-789012345678
        code: ERR_INVALID_NUMBER
        description: The destination number is invalid or not in E.164 format
        category: validation
        resolution: >-
          Ensure the phone number includes country code and is properly
          formatted
        created_at: '2026-01-01T00:00:00Z'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````