cXML Webhook
Create cXML webhook
Creates a resource that requests cXML from your server when the handler runs. Use it when call or message instructions depend on current application state; use Create cXML Script when the cXML can be stored in SignalWire, or Create SWML webhook when the server returns SWML.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice, Messaging, Fax, or Video.
Learn more about API scopes.
post/api/fabric/resources/cxml_webhooks
Request
- Base URLhttps://{Your_Space_Name}.signalwire.com
- URLhttps://{Your_Space_Name}.signalwire.com/api/fabric/resources/cxml_webhooks
- AuthHTTP basic
Request body
Example request
{
"name": "My CXML Webhook",
"primary_request_url": "https://primary.com",
"fallback_request_url": "https://fallback.com",
"status_callback_url": "https://callback.com"
}Response
The request has succeeded and a new resource has been created as a result.
Example response
{
"display_name": "Booking Assistant",
"type": "cxml_webhook",
"created_at": "2024-05-06T12:20:00Z",
"updated_at": "2024-05-06T12:20:00Z",
"cxml_webhook": {
"name": "My CXML Webhook",
"primary_request_url": "https://primary.com",
"fallback_request_url": "https://fallback.com",
"status_callback_url": "https://callback.com"
}
}Changes
No operation changes found yet. Some revisions have not been checked.