> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # Chat > Chat API namespace for token creation. Chat API namespace for token creation. ## **Methods** #### [createToken](/docs/server-sdks/reference/typescript/rest/chat/create-token) Create a Chat token. ## **Example** ```typescript {4} import { RestClient } from "@signalwire/sdk"; const client = new RestClient(); const result = await client.chat.createToken({ channels: ['general'] }); ``` > Chat API namespace for token creation. ## Docs - [createToken](https://signalwire.com/docs/server-sdks/reference/typescript/rest/chat/create-token.md): Chat API namespace — token creation.