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://gateway.lwolf.com) rather than a service base path.
POST
/oauth/token
curl \
--request POST 'https://gateway.lwolf.com/oauth/token' \
--header "Content-Type: application/json" \
--data '"{\n \"grant_type\": \"client_credentials\",\n \"client_id\": \"\u003cyour client id\u003e\",\n \"client_secret\": \"\u003cyour client secret\u003e\",\n \"audience\": \"https://api.lwolf.com\",\n \"lwt_client_id\": \"\u003cyour Lone Wolf client GUID\u003e\"\n}"'
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"
}