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
        • FreeSWITCH Connectors
        • RELAY Applications
        • Resources
          • assignDomainApplication
          • assignPhoneRoute
          • delete
          • get
          • list
          • listAddresses
        • 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 ClientFabricResources

get

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

list

Next
Built with

Retrieve a single Fabric resource by ID.

Path parameters

idstringRequiredformat: "uuid"
Unique ID of a Resource.

Response

AI AgentobjectRequired
OR
Call FlowobjectRequired
OR
cXML WebhookobjectRequired
OR
cXML ScriptobjectRequired
OR
cXML ApplicationobjectRequired
OR
Dialogflow AgentobjectRequired
OR
FreeSWITCH ConnectorobjectRequired
OR
Relay ApplicationobjectRequired
OR
SIP EndpointobjectRequired
OR
SIP GatewayobjectRequired
OR
SubscriberobjectRequired
OR
SWML WebhookobjectRequired
OR
SWML ScriptobjectRequired
OR
Conference RoomobjectRequired

Response Example

Response
1{
2 "id": "993ed018-9e79-4e50-b97b-984bd5534095",
3 "project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780",
4 "display_name": "My Resource",
5 "created_at": "2024-05-06T12:20:00Z",
6 "updated_at": "2024-05-06T12:20:00Z",
7 "type": "call_flow",
8 "call_flow": {
9 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
10 "title": "Booking Assistant",
11 "flow_data": {},
12 "relayml": {
13 "version": "1.0.0",
14 "sections": {
15 "main": [
16 {
17 "denoise": {},
18 "play": {
19 "url": "https://cdn.signalwire.com/swml/audio.mp3"
20 }
21 }
22 ]
23 }
24 },
25 "document_version": 1
26 }
27}

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 resource = await client.fabric.resources.get("resource-id");
10console.log(`${resource.type}: ${resource.name}, ID: ${resource.id}`);