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
          • create
          • delete
          • deployVersion
          • get
          • list
          • listAddresses
          • listVersions
          • update
        • Conference Rooms
        • cXML Applications
        • cXML Scripts
        • cXML Webhooks
        • 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 ClientFabricCall Flows

deployVersion

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

get

Next
Built with

Deploy a specific version of a call flow resource.

Path parameters

idstringRequired
The unique identifier of the Call Flow.

Request

Deploy by document versionobjectRequired
OR
Deploy by version IDobjectRequired

Response

idstringRequiredformat: "uuid"
The unique identifier of the deployed Call Flow Version.
created_atstringRequired
The creation timestamp.
updated_atstringRequired
The last update timestamp.
document_versionintegerRequired
The document version.
flow_dataobjectOptional
Call Flow Builder state, stored as an opaque JSON object.
relaymlobjectOptional
The calling SWML document deployed by this version. Uses [calling SWML methods](/docs/swml/reference/calling).

Response Example

Response
1{
2 "id": "993ed018-9e79-4e50-b97b-984bd5534095",
3 "created_at": "2024-01-02T00:00:00Z",
4 "updated_at": "2024-01-02T00:00:00Z",
5 "document_version": 2,
6 "flow_data": {},
7 "relayml": {
8 "sections": {
9 "main": [
10 {
11 "denoise": {},
12 "play": {
13 "url": "https://cdn.signalwire.com/swml/audio.mp3"
14 }
15 }
16 ]
17 },
18 "version": "1.0.0"
19 }
20}

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.callFlows.deployVersion("call-flow-id", {
10 call_flow_version_id: "version-id",
11});
12console.log(`Deployed version: ${result.id}`);