***

title: Fabric
slug: /reference/typescript/rest/fabric
description: Manage AI agents, call flows, subscribers, conference rooms, tokens, and other Fabric resources.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[restclient]: /docs/server-sdks/reference/typescript/rest/client

[ai-agents]: /docs/server-sdks/reference/typescript/rest/fabric/ai-agents

[swml-scripts]: /docs/server-sdks/reference/typescript/rest/fabric/swml-scripts

[relay-applications]: /docs/server-sdks/reference/typescript/rest/fabric/relay-applications

[call-flows]: /docs/server-sdks/reference/typescript/rest/fabric/call-flows

[conference-rooms]: /docs/server-sdks/reference/typescript/rest/fabric/conference-rooms

[subscribers]: /docs/server-sdks/reference/typescript/rest/fabric/subscribers

[sip-endpoints]: /docs/server-sdks/reference/typescript/rest/fabric/sip-endpoints

[cxml-scripts]: /docs/server-sdks/reference/typescript/rest/fabric/cxml-scripts

[cxml-applications]: /docs/server-sdks/reference/typescript/rest/fabric/cxml-applications

[swml-webhooks]: /docs/server-sdks/reference/typescript/rest/fabric/swml-webhooks

[sip-gateways]: /docs/server-sdks/reference/typescript/rest/fabric/sip-gateways

[cxml-webhooks]: /docs/server-sdks/reference/typescript/rest/fabric/cxml-webhooks

[freeswitch-connectors]: /docs/server-sdks/reference/typescript/rest/fabric/freeswitch-connectors

[resources]: /docs/server-sdks/reference/typescript/rest/fabric/resources

[addresses]: /docs/server-sdks/reference/typescript/rest/fabric/addresses

[tokens]: /docs/server-sdks/reference/typescript/rest/fabric/tokens

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

Access via `client.fabric` on a [`RestClient`][restclient] instance.

```typescript {9}
import { RestClient } from "@signalwire/sdk";

const client = new RestClient({
  project: "your-project-id",
  token: "your-api-token",
  host: "your-space.signalwire.com"
});

const agents = await client.fabric.aiAgents.list();
for (const agent of agents.data ?? []) {
  console.log(`${agent.display_name}: ${agent.id}`);
}
```

<Note>
  Fabric resources use two update strategies. Resources like `aiAgents`, `swmlWebhooks`,
  `sipGateways`, and `cxmlWebhooks` use PATCH for partial updates. Resources like
  `swmlScripts`, `relayApplications`, `callFlows`, `conferenceRooms`, `subscribers`,
  and others use PUT for full replacement updates. The SDK handles this automatically.
</Note>

<CardGroup cols={3}>
  <Card title="AI Agents" href="/docs/server-sdks/reference/typescript/rest/fabric/ai-agents">
    AI agent resources with PATCH updates and address listing.
  </Card>

  <Card title="SWML Scripts" href="/docs/server-sdks/reference/typescript/rest/fabric/swml-scripts">
    SWML script resources with PUT updates and address listing.
  </Card>

  <Card title="RELAY Applications" href="/docs/server-sdks/reference/typescript/rest/fabric/relay-applications">
    RELAY application resources with PUT updates and address listing.
  </Card>

  <Card title="Call Flows" href="/docs/server-sdks/reference/typescript/rest/fabric/call-flows">
    Call flow resources with versioning and deployment.
  </Card>

  <Card title="Conference Rooms" href="/docs/server-sdks/reference/typescript/rest/fabric/conference-rooms">
    Conference room resources with PUT updates.
  </Card>

  <Card title="Subscribers" href="/docs/server-sdks/reference/typescript/rest/fabric/subscribers">
    Subscriber resources with SIP endpoint management.
  </Card>

  <Card title="SIP Endpoints" href="/docs/server-sdks/reference/typescript/rest/fabric/sip-endpoints">
    Top-level SIP endpoint resources.
  </Card>

  <Card title="cXML Scripts" href="/docs/server-sdks/reference/typescript/rest/fabric/cxml-scripts">
    cXML script resources with PUT updates.
  </Card>

  <Card title="cXML Applications" href="/docs/server-sdks/reference/typescript/rest/fabric/cxml-applications">
    cXML application resources (no create).
  </Card>

  <Card title="SWML Webhooks" href="/docs/server-sdks/reference/typescript/rest/fabric/swml-webhooks">
    SWML webhook resources with PATCH updates.
  </Card>

  <Card title="SIP Gateways" href="/docs/server-sdks/reference/typescript/rest/fabric/sip-gateways">
    SIP gateway resources with PATCH updates.
  </Card>

  <Card title="cXML Webhooks" href="/docs/server-sdks/reference/typescript/rest/fabric/cxml-webhooks">
    cXML webhook resources with PATCH updates.
  </Card>

  <Card title="FreeSWITCH Connectors" href="/docs/server-sdks/reference/typescript/rest/fabric/freeswitch-connectors">
    FreeSWITCH connector resources with PUT updates.
  </Card>

  <Card title="Resources" href="/docs/server-sdks/reference/typescript/rest/fabric/resources">
    Cross-type generic resource operations with routing.
  </Card>

  <Card title="Addresses" href="/docs/server-sdks/reference/typescript/rest/fabric/addresses">
    Read-only fabric address lookup.
  </Card>

  <Card title="Tokens" href="/docs/server-sdks/reference/typescript/rest/fabric/tokens">
    Subscriber, guest, invite, and embed token creation.
  </Card>
</CardGroup>