Application Access Tokens

Returns the access token for a registered application.

Parameters

client_id
REQUIRED. The application’s client ID as listed in your Warhorn account settings.
client_secret
REQUIRED for confidential applications only. The application’s client secret as listed in your Warhorn account settings.
grant_type
REQUIRED. MUST be client_credentials.

Response Entity

access_token
The application token.
token_type
Will always be bearer.

Example

POST /oauth/token HTTP/1.1
Host: warhorn.net
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials
&client_id=Lw897vn3R7y6M2NfsA2BxJGM


200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: private, no-store
Pragma: no-cache

{
  "access_token":"y1XX8rsAPrEfdk4GBAXZH2TL",
  "token_type":"bearer"
}

Notes

Access tokens do not currently expire. You will not see an expires_in attribute in the token response.

Configuration

Token endpoint
https://warhorn.net/oauth/token