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
        • Accounts
        • Applications
        • Calls
        • Conferences
        • Faxes
        • LAML Bins
        • Messages
        • Phone Numbers
        • Queues
        • Recordings
        • Tokens
        • Transcriptions
      • Datasphere
      • Fabric
      • 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
  • Sub-resources
REST Client

Compat

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

Accounts

Next
Built with

The CompatNamespace provides a Twilio-compatible LAML REST API through the RestClient. It implements the familiar /2010-04-01/Accounts/{AccountSid}/ URL structure with 12 sub-resources, making it straightforward to migrate existing Twilio integrations to SignalWire.

Access via client.compat on a RestClient instance.

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 calls = await client.compat.calls.list();

The Compat namespace uses the same REST patterns as Twilio’s API. If you are migrating from Twilio, most code changes are limited to updating the client initialization to use SignalWire credentials. Resource identifiers use SIDs (e.g., CA... for calls, SM... for messages).

Sub-resources

Accounts

Account and subproject management.

Calls

Call management with recording and stream sub-resources.

Messages

SMS/MMS messaging with media sub-resources.

Faxes

Fax management with media sub-resources.

Conferences

Conference management with participants, recordings, and streams.

Phone Numbers

Phone number management, search, and import.

Applications

Application configuration management.

LAML Bins

LAML (cXML) script management.

Queues

Queue management with member operations.

Recordings

Recording management.

Transcriptions

Transcription management.

Tokens

API token management.