***

title: Chat
slug: /reference/python/rest/chat
description: Chat API namespace for token creation.
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

Generate tokens for the SignalWire Chat service. Chat tokens authenticate
client-side connections for real-time chat messaging.

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

## **Methods**

<CardGroup cols={3}>
  <Card title="create_token" href="/docs/server-sdks/reference/python/rest/chat/create-token">
    Create a Chat token.
  </Card>
</CardGroup>

## **Example**

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

client = RestClient()
result = client.chat.create_token(channels=["general"])
```