Generate Token
POST/v1/auth/token
Generate Token
Request
- application/json
Body
client_id Client Id (string)
The client ID
grant_type Grant Type (string)
The grant type
code Code (string)
The code
redirect_uri Redirect Uri (string)
The redirect URI
audience Audience (string)
The audience
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
access_token Access Token (string)required
The Access Token JWT
token_type Token Type (string)
Default value: Bearer
The type of token
expires_in Expires In (integer)required
The number of seconds the token is valid for
id_token Id Token (string)
The User Token JWT
{
"access_token": "string",
"token_type": "Bearer",
"expires_in": 0,
"id_token": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...