phone_number
(string, required): Phone number to update webhooks for in E.164 formatvoice_webhook_url
(string, optional): URL to receive voice call eventssms_webhook_url
(string, optional): URL to receive SMS/MMS eventsprovider
(string, optional): Provider ("twilio"
or "telnyx"
). Auto-detected if not provided200 OK
status with update confirmation.
success
(boolean): Whether the update completed successfullyphone_number
(string): The phone number that was updatedprovider
(string): Provider used for the update (“twilio” or “telnyx”)updated_webhooks
(object): Map of webhook types to their new URLs
voice
(string): New voice webhook URL (if updated)sms
(string): New SMS webhook URL (if updated)message
(string): Human-readable confirmation messageIssue | Cause | Solution |
---|---|---|
”Phone number not found” | Number not in database | Sync numbers from provider |
”Webhook update failed” | Provider API error | Check provider account status |
”Invalid URL format” | Malformed webhook URL | Verify URL format and accessibility |
”SSL certificate error” | HTTPS certificate issue | Fix SSL configuration |