{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/sinch/main/json-schema/sinch-batch-list-schema.json", "title": "BatchList", "x-generated": "2026-10-08", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/sinch-batches-api-openapi.yml#/components/schemas/BatchList", "type": "object", "properties": { "count": { "type": "integer", "description": "Total number of batches" }, "page": { "type": "integer", "description": "Current page number" }, "page_size": { "type": "integer", "description": "Number of batches per page" }, "batches": { "type": "array", "description": "List of batch objects", "items": { "$ref": "#/$defs/Batch" } } }, "$defs": { "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" } } } } }