OpenPhn docs
Referencecalls

Create a batch of calls in one request

Validate every item up-front (consent / phone format / suppression / call hours), then dispatch the accepted ones via the same path as the single-call endpoint. Returns a per-item result so the caller can see exactly which numbers went through and which were rejected.

Hard limit: 200 items per batch.

POST
/v1/calls/batch

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/v1/calls/batch" \  -H "Content-Type: application/json" \  -d '{    "objective": "string",    "consent_type": "string",    "outcome_schema": {},    "items": [      {        "to": "string"      }    ]  }'
{
  "accepted": 0,
  "rejected": 0,
  "items": [
    {
      "to": "string",
      "call_id": "string",
      "status": "string",
      "error": "string"
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}