{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ahasend/refs/heads/main/json-schema/openapi-v2-create-message-response-schema.json",
  "title": "CreateMessageResponse",
  "description": "CreateMessageResponse schema from AhaSend API",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "list"
      ],
      "description": "Object type identifier",
      "example": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CreateSingleMessageResponse"
      },
      "description": "List of messages and their statuses",
      "example": [
        {
          "object": "message",
          "id": "500123",
          "recipient": {},
          "status": "queued",
          "error": "example_value"
        }
      ]
    }
  },
  "required": [
    "object",
    "data"
  ]
}