REST Client

Fabric

View as MarkdownOpen in Claude

The FabricNamespace provides access to all SignalWire Fabric resources through the RestClient. It organizes 16 sub-resources for managing AI agents, SWML scripts, RELAY applications, call flows, conference rooms, subscribers, SIP infrastructure, cXML resources, and authentication tokens.

Access via client.fabric on a RestClient instance.

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9agents = client.fabric.ai_agents.list()
10for agent in agents.get("data", []):
11 print(f"{agent['display_name']}: {agent['id']}")

Fabric resources use two update strategies. Resources like ai_agents, swml_webhooks, sip_gateways, and cxml_webhooks use PATCH for partial updates. Resources like swml_scripts, relay_applications, call_flows, conference_rooms, subscribers, and others use PUT for full replacement updates. The SDK handles this automatically.