Send an SMS message through an assistant.
This endpoint allows sending SMS messages using the telephony provider associated with the assistant that owns the from_phone_number.
The system will automatically:
Idempotency: Pass an Idempotency-Key header (or idempotency_key in body) to dedupe sends from retried requests. Format: e.g., “chat:123:msg:456:outbound”
Args: sms_data: SMS request containing from/to numbers, message, and queue option
Returns: SendSMSResponse: Success status, message ID, status, and provider info
from_phone_number.
from_phone_number| Parameter | Type | Required | Description |
|---|---|---|---|
from_phone_number | string | Yes | Sender phone number (must be assigned to an assistant) |
to_phone_number | string | Yes | Recipient phone number in E.164 format |
message | string | Yes | SMS message content (max 1600 characters) |
media_urls | array | No | List of media URLs for MMS messages |
queue | boolean | No | If true (default), queue with rate limiting. If false, send immediately |
idempotency_key | string | No | Unique key to prevent duplicate sends on retries (max 256 chars) |
queue: true (default):status: "queued"idempotency_key parameter prevents duplicate messages when retrying failed requests:
Idempotency-Key header. If both are provided, the header takes precedence.200 OK status with details about the message.
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the operation was successful |
message_id | string | Unique identifier for the message |
message | string | Human-readable status message |
provider | string | Telephony provider used (twilio, telnyx, or vonage) |
status | string | Delivery status: queued, sent, or failed |
message_id is Burki’s queue UUID. After delivery, use the status endpoint to inspect the provider’s message ID when available.
from_phone_number, to_phone_number, message)from_phone_number.
from_phone_number.
| Method | Path | Purpose |
|---|---|---|
GET | /sms/{message_id}/status | Check queued, sent, failed, or cancelled status |
DELETE | /sms/{message_id} | Cancel a queued message before delivery |
GET | /sms/queue/stats | Inspect queue statistics by provider |
+1234567890(123) 456-7890, 123-456-7890, 1234567890order, appointment, alert)confirmation, reminder)order:12345:confirmationappointment:789:reminder:24hchat:session123:msg:456:outboundBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for sending SMS through an assistant.
Sender phone number (must be assigned to an assistant)
Recipient phone number in E.164 format (e.g., +1234567890)
SMS message content
1600Optional list of media URLs for MMS
If True (default), queue the SMS with rate limiting. If False, send immediately.
Optional idempotency key (e.g., 'chat:123:msg:456:outbound'). If provided, Burki will dedupe based on this key to prevent duplicate sends/persistence on retries. Can also be provided via Idempotency-Key header (header takes precedence).
256