OAuth 2 Bearer Token
POST/api/token
OAuth 2 Bearer Token.
Request
Header Parameters
Authorization stringrequired
Basic authorization header containing client_id and client_secret encoded in base64
- application/x-www-form-urlencoded
Body
required
grant_type stringrequired
Possible values: [client_credentials
]
OAuth2 grant type
scope stringrequired
The requested scopes for the token
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successfully generated token
- application/json
- Schema
- Example (from schema)
Schema
access_token string
The generated access token
expires_in integer
Time in seconds until the token expires
token_type string
Type of the token, usually 'bearer'
scope string
Scopes associated with the token
{
"access_token": "string",
"expires_in": 0,
"token_type": "string",
"scope": "string"
}
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Loading...