Getting your API token from the API

To access your API security tokens directly from the Skytap REST API, submit the following request:

Sample request
GET https://cloud.skytap.com/v2/account/api_tokens.json
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Accept: application/json

Replace QWxhZGRpbjpvcGVuIHNlc2FtZQ== with the base64 encoding of your user name and password (<username>:<password>)

Sample response
{
  "id": "8888",
  "api_token": "5678aaaa5678aaaa",
  "created_at": "2020/11/11 08:08:08 -0800",
  "expiration_date": "2021/02/09 08:08:08 -0800"
},
{
  "id": "8989",
  "api_token": "1977abba1977abba",
  "created_at": "2020/11/11 11:11:11 -0800",
  "expiration_date": "2021/02/09 11:11:11 -0800"
}
  • If API tokens are enabled in your account, and you’ve generated an API token for yourself, the response body will contain at least one api_token field with the API token.
  • If API tokens aren’t enabled, the response body will contain an api_token field that contains null.
  • In either case, if browser activation is enabled, the API will return a 401 error.

For more information about making API requests, see REST API quick start.

You can also access your API token from your Account page in Skytap. For help, see Finding your user name and API security token.