API Reference
Broadcasts

Create a broadcast (draft)

POST
/v1/broadcasts

Creates a draft campaign bound to an agent. required_variables is derived server-side from the template's {{placeholders}}. name is optional. The broadcast does NOT dial until POST .../start.

Authorization

bearerAuth
AuthorizationBearer <token>

Long-lived ES256 JWT minted from the dashboard (https://app.sautikit.com/developers/api-keys). Signed by the platform keyring. Carries workspace_id and scopes claims; revoked via the platform deny-list.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/broadcasts" \  -H "Content-Type: application/json" \  -d '{    "agent_id": "9d2b1f53-8c0e-4f1d-9a6b-5d3a8c47e9f0",    "name": "July appointment reminders",    "prompt_template": "Remind {{name}} about their {{date}} appointment.",    "schedule_days": [      1,      2,      3,      4,      5    ],    "daily_start_minute": 540,    "daily_end_minute": 1020,    "timezone": "Africa/Nairobi",    "max_attempts": 3,    "backoff_minutes": 60,    "retry_on": [      "no_answer",      "busy"    ]  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",  "caller_number_id": "6724ddc7-3cb4-46c7-90e2-4e18c26317c6",  "name": "string",  "prompt_template": "string",  "start_phrase": "string",  "required_variables": [    "string"  ],  "schedule_days": [    0  ],  "daily_start_minute": 0,  "daily_end_minute": 0,  "timezone": "string",  "max_attempts": 0,  "backoff_minutes": 0,  "retry_on": [    "no_answer"  ],  "state": "draft",  "reason": "string",  "completed_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}
{  "error": {    "code": "validation.bad_request",    "message": "string",    "request_id": "string"  }}
{  "error": {    "code": "validation.bad_request",    "message": "string",    "request_id": "string"  }}
{  "error": {    "code": "validation.bad_request",    "message": "string",    "request_id": "string"  }}