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.

from signalwire.rest import RestClient
client = RestClient(
project="your-project-id",
token="your-api-token",
host="your-space.signalwire.com",
)
agents = client.fabric.ai_agents.list()
for agent in agents.get("data", []):
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.