cXML Scripts
About
The cXML (Compatibility XML) Script Resource type is used to create and manage LaML Webhook/Applications.
LAML Webhooks and Applications
cXML Scripts were formerly known as LaML Webhooks and LaML Applications.

The Resource selection menu
Details
A cXML Script Resource has the following details:
- Hosted Scripts
- External URL
| Detail | Description |
|---|---|
NameOptional | The unique name for the cXML script resource. |
Script will be used forOptional | The purpose or use-case for the cXML script, such as handling inbound/outbound calls or inbound/outbound messaging. Possible Values: Calling, Messaging, Faxing |
Handle usingOptional | Hosted Script is cXML script that will be hosted on SignalWire. |
Primary ScriptOptional | This is the main cXML script that will run when controlling a call or message. |
Status Change WebhookOptional | As a call or message progresses through the various states of its lifecycle, you can receive updates to your own application. Enter a URL to receive a JSON event when the status of a call or message changes. |
| Detail | Description |
|---|---|
NameOptional | The unique name for the cXML script resource. |
Script will be used forOptional | The purpose or use-case for the cXML script, such as handling inbound/outbound calls or inbound/outbound messaging. Possible Values: Calling, Messaging, Faxing |
Handle usingOptional | External URL indicates the cXML script lives on a remote server. |
Primary script URLRequired | The URL that will respond with a valid cXML script that will run when controlling a call or message. |
Fallback script URLOptional | If the primary script cannot be reached or fails in any way, you can define a fallback script to handle the call or message. Defining a fallback ensures calls and messages are still handled even if your application experiences an issue. |
Status Change WebhookOptional | As a call or message progresses through the various states of its lifecycle, you can receive updates to your own application. Enter a URL to receive a JSON event when the status of a call or message changes. |
Learn more
For more information on Compatibility XML, please refer to the cXML API Documentation.