***

title: ChatResource
slug: /reference/typescript/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

Chat API namespace for token creation.

## **Methods**

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

## **Example**

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

const client = new RestClient();
const result = await client.chat.createToken({ channels: ['general'] });
```