{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sinch/main/json-schema/sinch-batch-schema.json",
  "title": "Batch",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sinch-batches-api-openapi.yml#/components/schemas/Batch",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique batch identifier"
    },
    "to": {
      "type": "array",
      "description": "List of recipients",
      "items": {
        "type": "string"
      }
    },
    "from": {
      "type": "string",
      "description": "The sender number"
    },
    "body": {
      "type": "string",
      "description": "The message body"
    },
    "type": {
      "type": "string",
      "description": "The batch type"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the batch was created"
    },
    "modified_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the batch was last modified"
    },
    "canceled": {
      "type": "boolean",
      "description": "Whether the batch has been canceled"
    },
    "delivery_report": {
      "type": "string",
      "description": "The delivery report type"
    },
    "send_at": {
      "type": "string",
      "format": "date-time",
      "description": "The scheduled send time"
    },
    "expire_at": {
      "type": "string",
      "format": "date-time",
      "description": "The expiration time"
    }
  }
}