> 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. [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** #### [create\_token](/docs/server-sdks/reference/python/rest/chat/create-token) Create a Chat token. ## **Example** ```python {4} from signalwire.rest import RestClient client = RestClient() result = client.chat.create_token(channels=["general"]) ``` > Chat API namespace for token creation. ## Docs - [create_token](https://signalwire.com/docs/server-sdks/reference/python/rest/chat/create-token.md): Create a Chat authentication token.