Exchange client credentials for access token using OAuth2 Client Credentials Grant
POST
/auth/token
curl \
--request POST 'http://api.example.com/auth/token' \
--header "Content-Type: application/json" \
--data '{"clientId":"string","clientSecret":"string"}'
Request examples
{
"clientId": "string",
"clientSecret": "string"
}
Response examples (200)
{
"accessToken": "string",
"tokenType": "string",
"expiresIn": 42
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}