Overview
Update voice webhook URLs and optionally disable SMS webhooks for a phone number. Important: SMS webhook URLs are managed automatically through assistant assignment. This endpoint only allows you to disable SMS webhooks when needed.Request Body
phone_number(string, required): The phone number to update in E.164 format (e.g.,+1234567890)voice_webhook_url(string, optional): URL for voice call webhooksdisable_sms(boolean, optional): Set totrueto disable SMS webhooks. Default:falseenable_sms(boolean, optional): Set totrueto enable SMS webhooks based on assigned assistant. Default:falseprovider(string, optional): Provider (twilioortelnyx). Auto-detected if not provided
disable_sms and enable_sms to true in the same request.
SMS Webhook Management
SMS webhooks are automatically configured when you assign a phone number to an assistant with ansms_webhook_url. Use this endpoint to temporarily disable SMS handling:
Disabling SMS Webhooks
Request - Disable SMS
- Twilio: Sets SMS webhook to
https://demo.twilio.com/welcome/sms/reply - Telnyx: Sets SMS webhook to empty URL
- Result: Incoming SMS messages are ignored
Re-enabling SMS Webhooks
Request - Enable SMS
- Prerequisites: Phone number must be assigned to an assistant with
sms_webhook_urlconfigured - Twilio: Sets SMS webhook to
/twilio-sms-webhookand enables messaging service - Telnyx: Sets SMS webhook to
/telnyx-webhook - Result: SMS messages are forwarded to assistant’s
sms_webhook_url
Updating Voice Webhooks
Request - Update Voice Webhook
Combined Updates
Request - Update Voice + Disable SMS
Request - Update Voice + Enable SMS
Response
Response
Use Cases
- Voice webhook updates - Change where voice call events are sent
- Temporary SMS disable - Disable SMS during maintenance or testing
- Emergency SMS disable - Quickly stop SMS processing if needed
- Re-enable SMS after maintenance - Restore SMS functionality without reassigning phone numbers
Notes
- At least one of
voice_webhook_url,disable_sms, orenable_smsmust be provided - Cannot set both
disable_smsandenable_smstotruein the same request - To enable SMS, the phone number must be assigned to an assistant with
sms_webhook_urlconfigured - Voice webhooks can be updated independently of SMS webhook state