{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sms-to/json-schema/sms-to-get-v2-messages-response-schema.json",
  "title": "GetV2MessagesResponse",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/sms-to-openapi-generated.yml#/components/schemas/GetV2MessagesResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "campaign_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "sender_id": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "cost": {
            "type": "integer"
          },
          "sms_count": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          },
          "callback_url": {
            "type": "string"
          },
          "scheduled_for": {
            "type": [
              "string",
              "null"
            ]
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "sent_at": {
            "type": "string",
            "format": "date-time"
          },
          "is_api": {
            "type": "boolean"
          },
          "failed_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_failed_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  }
}