Issue an access token
Mints a Bearer access token for the client_credentials grant. Request is form-encoded per RFC 6749; errors follow the {error, error_description} contract.
Body
application/json
Responses
- application/json
- application/json
- application/json
Request Example for post/oauth/token
curl http://localhost:8080/oauth/token \
--request POST \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data-urlencode 'grant_type=' \
--data-urlencode 'client_id=' \
--data-urlencode 'client_secret=' \
--data-urlencode 'scope='
{
"access_token": "string",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "string"
}