---
title: "POST /ApplicationConfigs/{id}/GenerateToken"
method: POST
path: "/ApplicationConfigs/{id}/GenerateToken"
tags: ["ApplicationConfigs"]
---

# POST /ApplicationConfigs/{id}/GenerateToken

`POST /ApplicationConfigs/{id}/GenerateToken`

## Path parameters

- `id` string, required

## Query parameters

- `api-version` string
- `$select` string
- `$expand` string

## Request body

- GenerateTokenParameters
  - `userId` string, nullable
  - `deviceId` string, nullable
  - `clientId` string, nullable
  - `clientRoles` string[], nullable
  - `channelClaims` ChannelClaim[], nullable
    - `id` string, nullable — Gets or sets the channel identifier.
    - `allowedLayoutZones` string[], nullable — Gets or sets the LayoutZones that can be used by upstream connections.
    - `allowedLayoutPriority` integer, nullable — Gets or sets the lowest allowed LayoutPriority. Lower numbers take priority over higher numbers.
    - `broadcast` boolean — Gets or sets if this is a broadcast channel or not.
    - `disableSendMessage` boolean — Gets or sets whether the user is NOT authorized to send messages.
    - `disablePeer` boolean — Gets or sets whether the user is NOT authorized to create peer connections.
    - `disableSfu` boolean — Gets or sets whether the user is NOT authorized to create SFU connections.
    - `disableMcu` boolean — Gets or sets whether the user is NOT authorized to create MCU connections.
    - `disableSendAudio` boolean — Gets or sets whether the user is NOT authorized to send audio.
    - `disableSendVideo` boolean — Gets or sets whether the user is NOT authorized to send video.
    - `disableSendData` boolean — Gets or sets whether the user is NOT authorized to send data.
    - `disableRemoteClientEvents` boolean — Gets or sets whether to disable remote client join/update/leave messages and events.
    - `disableRemoteUpstreamConnectionEvents` boolean — Gets or sets whether to disable remote connection open/update/close messages and events.
    - `audioReceiveWhitelist` string[], nullable — Gets or sets a whitelist of roles whose member's audio can be received from. Null disables the whitelist whereas an empty list disables all receiving.
    - `videoReceiveWhitelist` string[], nullable — Gets or sets a whitelist of roles whose member's video can be received from. Null disables the whitelist whereas an empty list disables all receiving.
    - `dataReceiveWhitelist` string[], nullable — Gets or sets a whitelist of roles whose member's data can be received from. Null disables the whitelist whereas an empty list disables all receiving.
    - `action` string, nullable — Gets or sets the action of this channel claim. Possible values are in the FM.LiveSwitch.ClaimAction class.
    - `canUpdate` boolean — Gets or sets whether the user is authorized to update a media server channel.
    - `canUpdateLayout` boolean — Gets or sets whether the user is authorized to update the LayoutZone and LayoutPriority properties on connections.
    - `canKick` boolean — Gets or sets whether the user is authorized kick other users from this channel.
    - `enableHiddenObserverMode` boolean — Gets or sets whether to stop remote users from being notified when a local user joins a channel. When set to true, the local user won’t be able to initiate upstreams, send messages, update the channel, or kick users.

## Response `200`

Success

---

[API](https://skmtc.dev/liveswitch/apis/liveswitch-cloud-api.md) · [All operations](https://skmtc.dev/liveswitch/apis/liveswitch-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/liveswitch/liveswitch-cloud-api/revisions/1b39d4a01c13/schema)
