
Token API
https://www.auth-test.alaskaair.com/oauth2/default/v1/token?grant_type=client_credentials&scope=[scope]
This HTTP POST request is used to obtain an access token by providing client credentials and specifying the scope in the headers. The request should be made to https://www.auth-test.alaskaair.com/oauth2/default/v1/token for the test environment. Replace "auth-test" with "auth-qa" or just "auth" for the production environment.
Request Headers
The request headers should include
Authorization: Basic[Base64-encoded Client ID and Client Secret provided by Alaska]Content-Type:application/x-www-form-urlencoded
Request Body
The request body should be of type x-www-form-urlencoded and should include the following parameters:
grant_type: client_credentialsscope: [scope value provided by Alaska]
Response
Upon successful execution, the API returns a status code of 200 along with the following response body:
token_type: The type of token issuedexpires_in: The duration of time in seconds for which the access token is validaccess_token: The access token to be used for authenticationscope: The scope of the access token