Overview
When an SMS is received by your assistant’s phone number, Burki can forward the SMS data to your configured webhook URL. This allows you to integrate SMS functionality into your applications.Webhook Configuration
To receive SMS webhooks, configure thesms_webhook_url
field when creating or updating an assistant. For Twilio, you can also optionally specify a messaging_service_sid
:
Webhook Payload
When an SMS is received, Burki sends a POST request to yoursms_webhook_url
with the following payload:
Payload Fields
Field | Type | Description |
---|---|---|
type | string | Always "sms_received" for incoming SMS |
timestamp | string | ISO 8601 timestamp when the webhook was sent |
data.message_id | string | Unique identifier for the SMS message |
data.from | string | Phone number that sent the SMS (E.164 format) |
data.to | string | Phone number that received the SMS (your assistant’s number) |
data.body | string | Text content of the SMS message |
data.media_urls | array | URLs of any media attachments (MMS) |
data.provider | string | Telephony provider ("twilio" or "telnyx" ) |
Provider Support
SMS webhooks work with both supported telephony providers:- Twilio: Receives webhooks at
/twilio-sms-webhook
- Telnyx: Receives webhooks at
/telnyx-webhook
(shared with voice events)
Webhook Requirements
Response
Your webhook endpoint should respond with:- Status Code: 200 (OK)
- Response Time: Under 10 seconds
- Body: Any response body is acceptable
Security
- HTTPS Required: Your webhook URL must use HTTPS
- User-Agent: Webhooks are sent with
User-Agent: Burki-SMS-Webhook/1.0
- Timeout: Requests timeout after 10 seconds
Example Implementation
Troubleshooting
Common Issues
-
No webhooks received
- Verify
sms_webhook_url
is set on your assistant - Check that your endpoint is publicly accessible
- Ensure your server responds with 200 status
- Verify
-
Webhooks timing out
- Your endpoint must respond within 10 seconds
- Consider processing SMS asynchronously
-
Missing SMS messages
- Verify your assistant’s phone number is correctly configured
- Check that SMS capabilities are enabled on your phone number
Testing
You can test your SMS webhook by:- Sending an SMS to your assistant’s phone number
- Checking your webhook endpoint logs
- Using the live transcript WebSocket to monitor events