*** id: 3259fee0-8103-4b15-8d5f-825193d1a110 title: getAllowedChannels slug: /js/reference/chat/client/get-allowed-channels max-toc-depth: 3 ---------------- * **getAllowedChannels**(): `Promise` Returns the channels that the current token allows you to subscribe to. ## Returns `Promise` An object whose keys are the channel names, and whose values are the permissions. For example: ```js { "my-channel-1": { "read": true, "write": false }, "my-channel-2": { "read": true, "write": true }, } ``` ## Examples ```js const chatClient = new Chat.Client({ token: "", }); const channels = await chatClient.getAllowedChannels(); console.log(channels); ```