For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • Configuration
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions & Utilities
      • LiveWire
      • PomBuilder
      • Prefabs
      • SkillBase
      • SkillManager
      • SkillRegistry
      • Skills
      • SwaigFunction
      • SwmlBuilder
      • SWMLService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • ChatResource
      • Compat
      • Datasphere
      • Fabric
        • Addresses
        • AI Agents
        • Call Flows
        • Conference Rooms
        • cXML Applications
        • cXML Scripts
        • cXML Webhooks
          • create
          • delete
          • get
          • list
          • listAddresses
          • update
        • FreeSWITCH Connectors
        • RELAY Applications
        • Resources
        • SIP Endpoints
        • SIP Gateways
        • Subscribers
        • SWML Scripts
        • SWML Webhooks
        • Tokens
      • ImportedNumbersResource
      • Logs
      • LookupResource
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSubResource
      • Queues
      • Recordings
      • Registry
      • RestClient
      • RestError
      • Short Codes
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Response Example
  • Example
REST ClientFabriccXML Webhooks

create

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

delete

Next
Built with

Create a new cXML webhook resource.

Request

primary_request_urlstringRequiredformat: "uri"
Primary request url of the CXML Webhook.
namestringOptional
Name of the CXML Webhook.
used_forenumOptionalDefaults to calling
Used for of the CXML Webhook.
Allowed values:
primary_request_methodenumOptionalDefaults to POST
Primary request method of the CXML Webhook.
Allowed values:
fallback_request_urlstringOptionalformat: "uri"
Fallback request url of the CXML Webhook.
fallback_request_methodenumOptionalDefaults to POST
Fallback request method of the CXML Webhook.
Allowed values:
status_callback_urlstringOptionalformat: "uri"
Status callback url of the CXML Webhook.
status_callback_methodenumOptionalDefaults to POST
Status callback method of the CXML Webhook.
Allowed values:

Response

idstringRequiredformat: "uuid"
Unique ID of the CXMLWebhook.
project_idstringRequiredformat: "uuid"
Unique ID of the Project.
display_namestringRequired
Display name of the CXMLWebhook Fabric Resource
typeenumRequired
Type of the Fabric Resource
Allowed values:
created_atdatetimeRequired
Date and time when the resource was created.
updated_atdatetimeRequired
Date and time when the resource was updated.
cxml_webhookobjectRequired
CXMLWebhook data.

Response Example

Response
1{
2 "id": "a87db7ed-8ebe-42e4-829f-8ba5a4152f54",
3 "project_id": "99151cf8-9548-4860-ba70-a8de824f3312",
4 "display_name": "Booking Assistant",
5 "type": "cxml_webhook",
6 "created_at": "2024-05-06T12:20:00Z",
7 "updated_at": "2024-05-06T12:20:00Z",
8 "cxml_webhook": {
9 "id": "a87db7ed-8ebe-42e4-829f-8ba5a4152f54",
10 "name": "My CXML Webhook",
11 "used_for": "calling",
12 "primary_request_url": "https://primary.com",
13 "primary_request_method": "GET",
14 "fallback_request_url": "https://fallback.com",
15 "fallback_request_method": "GET",
16 "status_callback_url": "https://callback.com",
17 "status_callback_method": "POST"
18 }
19}

Example

1import { RestClient } from "@signalwire/sdk";
2
3const client = new RestClient({
4 project: "your-project-id",
5 token: "your-api-token",
6 host: "your-space.signalwire.com",
7});
8
9const result = await client.fabric.cxmlWebhooks.create({
10 name: "my-webhook",
11 primary_request_url: "https://example.com/cxml",
12});
13console.log("Created:", result.id);