cXML Scripts

List cXML Scripts

Lists the project's addressable cXML Scripts, which store calling or messaging instructions in SignalWire. These are the same scripts the Compatibility API exposes as LamlBins, addressed there by SID. Use cXML Webhooks when your server must return cXML for each request, or SWML Scripts for SWML applications.

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.

get/api/fabric/resources/cxml_scripts

Request

  • Base URL
    https://{Your_Space_Name}.signalwire.com
  • URL
    https://{Your_Space_Name}.signalwire.com/api/fabric/resources/cxml_scripts
  • Auth
    HTTP basic

Response

The request has succeeded.

Example response

{
  "data": [
    {
      "name": "Reception Script",
      "type": "cxml_script",
      "created_at": "2024-05-06T12:20:00Z",
      "updated_at": "2024-05-06T12:20:00Z",
      "cxml_script": {
        "contents": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Response><Say>Hello World</Say></Response>",
        "request_count": 5,
        "last_accessed_at": "2023-10-01T12:00:00Z",
        "request_url": "https://example.signalwire.com/laml-bins/2537c89e-2606-48c2-b3c2-bb601d863d1e",
        "script_type": "calling",
        "display_name": "Booking Assistant Script",
        "status_callback_url": "https://example.com/cxml/status"
      }
    }
  ],
  "links": {
    "self": "https://example.signalwire.com/api/fabric/resources/cxml_scripts?page_number=0&page_size=50&type=cxml_script",
    "first": "https://example.signalwire.com/api/fabric/resources/cxml_scripts?page_size=50&type=cxml_script",
    "next": "https://example.signalwire.com/api/fabric/resources/cxml_scripts?page_number=1&page_size=50&page_token=PA08cdad0c-e7e6-4a75-8244-902524f38d55&type=cxml_script",
    "prev": "https://example.signalwire.com/api/fabric/resources/cxml_scripts?page_number=0&page_size=50&page_token=PA08cdad0c-e7e6-4a75-8244-902524f38d55&type=cxml_script"
  }
}

Changes

No operation changes found yet. Some revisions have not been checked.