Generate JWT token
Exchange application credentials for a scoped JWT token that allows the application to act on behalf of a specific user.
The application must be authorized for the user's email domain. The returned token expires after a configured duration and must be refreshed by calling this endpoint again.
Request parameters may be sent either as "application/x-www-form-urlencoded" (as specified by RFC 6749 for OAuth 2.0 token endpoints) or as "application/json".
Request body
Example request
{
"client_id": "550e8400-e29b-41d4-a716-446655440000",
"client_secret": "1234567890abcdefghijklmnopqrstuvwxyz",
"grant_type": "client_credentials",
"scope": "user@example.com"
}Response
Token generated successfully
Example response
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJtZWV0LWFwaSIsImF1ZCI6Im1lZXQtY2xpZW50cyIsImlhdCI6MTcwOTQ5MTIwMCwiZXhwIjoxNzA5NDk0ODAwLCJjbGllbnRfaWQiOiI1NTBlODQwMC1lMjliLTQxZDQtYTcxNi00NDY2NTU0NDAwMDAiLCJzY29wZSI6InJvb21zOmxpc3Qgcm9vbXM6cmV0cmlldmUgcm9vbXM6Y3JlYXRlIiwidXNlcl9pZCI6IjdiOGQ5YzQwLTNhMmItNGVkZi04NzFjLTJmM2Q0ZTVmNmE3YiIsImRlbGVnYXRlZCI6dHJ1ZX0.signature",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "rooms:list rooms:retrieve rooms:create"
}Changes
Changed in 4 of the 8 revisions of this API.24
- ○
added the media type
application/x-www-form-urlencodedto the request bodyrequest-body-media-type-added
- ○
added the non-success response with the status
415response-non-success-status-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
- ○
endpoint added
endpoint-added
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲