***

title: Compat
slug: /reference/python/rest/compat
description: Twilio-compatible REST API for calls, messages, faxes, conferences, phone numbers, and more.
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/python/rest/client

[accounts]: /docs/server-sdks/reference/python/rest/compat/accounts

[calls]: /docs/server-sdks/reference/python/rest/compat/calls

[messages]: /docs/server-sdks/reference/python/rest/compat/messages

[faxes]: /docs/server-sdks/reference/python/rest/compat/faxes

[conferences]: /docs/server-sdks/reference/python/rest/compat/conferences

[phone-numbers]: /docs/server-sdks/reference/python/rest/compat/phone-numbers

[applications]: /docs/server-sdks/reference/python/rest/compat/applications

[laml-bins]: /docs/server-sdks/reference/python/rest/compat/laml-bins

[queues]: /docs/server-sdks/reference/python/rest/compat/queues

[recordings]: /docs/server-sdks/reference/python/rest/compat/recordings

[transcriptions]: /docs/server-sdks/reference/python/rest/compat/transcriptions

[tokens]: /docs/server-sdks/reference/python/rest/compat/tokens

The `CompatNamespace` provides a Twilio-compatible LAML REST API through the
[`RestClient`][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`][restclient] instance.

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

calls = client.compat.calls.list()
```

<Tip>
  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).
</Tip>

## **Sub-resources**

<CardGroup cols={3}>
  <Card title="Accounts" href="/docs/server-sdks/reference/python/rest/compat/accounts">
    Account and subproject management.
  </Card>

  <Card title="Calls" href="/docs/server-sdks/reference/python/rest/compat/calls">
    Call management with recording and stream sub-resources.
  </Card>

  <Card title="Messages" href="/docs/server-sdks/reference/python/rest/compat/messages">
    SMS/MMS messaging with media sub-resources.
  </Card>

  <Card title="Faxes" href="/docs/server-sdks/reference/python/rest/compat/faxes">
    Fax management with media sub-resources.
  </Card>

  <Card title="Conferences" href="/docs/server-sdks/reference/python/rest/compat/conferences">
    Conference management with participants, recordings, and streams.
  </Card>

  <Card title="Phone Numbers" href="/docs/server-sdks/reference/python/rest/compat/phone-numbers">
    Phone number management, search, and import.
  </Card>

  <Card title="Applications" href="/docs/server-sdks/reference/python/rest/compat/applications">
    Application configuration management.
  </Card>

  <Card title="LAML Bins" href="/docs/server-sdks/reference/python/rest/compat/laml-bins">
    LAML (cXML) script management.
  </Card>

  <Card title="Queues" href="/docs/server-sdks/reference/python/rest/compat/queues">
    Queue management with member operations.
  </Card>

  <Card title="Recordings" href="/docs/server-sdks/reference/python/rest/compat/recordings">
    Recording management.
  </Card>

  <Card title="Transcriptions" href="/docs/server-sdks/reference/python/rest/compat/transcriptions">
    Transcription management.
  </Card>

  <Card title="Tokens" href="/docs/server-sdks/reference/python/rest/compat/tokens">
    API token management.
  </Card>
</CardGroup>