webpubsub

Generate token for the client to connect Azure Web PubSub service.

post/api/hubs/{hub}/:generateToken

Path parameters

hubstring required

Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore.

Query parameters

userIdstring

User Id.

rolestring[]

Roles that the connection with the generated token will have.

minutesToExpireinteger

The expire time of the generated token.

api-versionstring required

The version of the REST APIs.

groupstring[]

Groups that the connection will join when it connects.

Response

Success

tokenstring

The token value for the WebSocket client to connect to the service

Changes