Token
POST/users/v2/oauth/token
OAuth2 Token Endpoint. For more information see: Token Endpoint Spec.
Request
Header Parameters
user-agent User-Agent
x-rh-client-addr X-Rh-Client-Addr
Possible values: <= 32 characters
IP Address hint
- application/json
Body
required
grant_type OAuthGrantType (string)required
Possible values: [client_credentials]
Supported OAuth2 grant types
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
access_token Access Token (string)required
Result access token
token_type Token Type (string)required
Result token type
refresh_token Refresh Token (string)
Result refresh token that can be used to get new access tokens
expires_in Expires In (integer)required
Result access token expiration time in seconds
{
"access_token": "string",
"token_type": "string",
"refresh_token": "string",
"expires_in": 0
}
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...