{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/auphonic/json-schema/auphonic-api-response-envelope-schema.json",
  "title": "ApiResponseEnvelope",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/auphonic-info-api-openapi.yml#/components/schemas/ApiResponseEnvelope",
  "type": "object",
  "properties": {
    "status_code": {
      "type": "integer",
      "description": "HTTP status code"
    },
    "error_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Error code identifier, null on success"
    },
    "error_message": {
      "type": "string",
      "description": "Human-readable error message, empty on success"
    },
    "form_errors": {
      "type": "object",
      "description": "Field-level validation errors",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "data": {
      "description": "Response payload (varies per endpoint)"
    }
  },
  "required": [
    "status_code",
    "error_code",
    "error_message",
    "form_errors",
    "data"
  ]
}