Exchanges OAuth client credentials for a JWT access token. The returned access_token must be sent as a Bearer token in the Authorization header on all subsequent requests, together with the lw-subscription-key header.
Note: this endpoint is served from the gateway root (https://api.lwolf.com) rather than a service base path.
POST
/oauth/token
curl \
--request POST 'https://api.lwolf.com/oauth/token' \
--header "Content-Type: application/json" \
--data '{
"grant_type": "client_credentials",
"client_id": "<your client id>",
"client_secret": "<your client secret>",
"audience": "https://api.lwolf.com",
"lwt_client_id": "<your Lone Wolf client GUID>"
}'
Request example
{
"grant_type": "client_credentials",
"client_id": "<your client id>",
"client_secret": "<your client secret>",
"audience": "https://api.lwolf.com",
"lwt_client_id": "<your Lone Wolf client GUID>"
}
Response examples (200)
{
"access_token": "string",
"token_type": "Bearer",
"expires_in": 42
}
Response examples (400)
{
"error": "string",
"message": "string"
}
Response examples (401)
{
"error": "string",
"message": "string"
}
Response examples (403)
{
"error": "string",
"message": "string"
}
Response examples (404)
{
"error": "string",
"message": "string"
}