Obtain an OAuth 2.0 token using client credentials
POST/token
Obtain an OAuth 2.0 token using client credentials
Request
- application/x-www-form-urlencoded
Body
required
grant_type stringrequired
Grant type, must be 'client_credentials'
client_id stringrequired
The client identifier issued to the client
client_secret stringrequired
The client secret
Responses
- 200
- 400
Access token generated successfully
- application/json
- Schema
- Example (from schema)
Schema
access_token string
The access token issued by the authorization server
token_type string
The type of token issued
expires_in integer
The lifetime in seconds of the access token
{
"access_token": "string",
"token_type": "string",
"expires_in": 0
}
Invalid request
- application/json
- Schema
- Example (from schema)
Schema
error string
Error code
error_description string
Human-readable text providing additional information
{
"error": "string",
"error_description": "string"
}
Loading...