The Vantage API authenticates all requests with an API access token. Tokens are required to ensure stability of the API and enforce rate limiting. If you do not include a token along with a request or pass an incorrect value, an error is returned within the API response.
Important
It is recommended that you keep your token in a safe place and do not share it.
Create a Personal Access Token
To create a personal access token:
- Navigate to the Settings screen in Vantage.
- On the left navigation menu, under Personal Settings, click API Access Tokens.
- Enter a new token name, select the Read and/or Write scope, and click Create.
- Click Show to reveal and copy your token.
Use Your Access Token in a Request
Pass your access token through the Authorization
header of a request:
curl --request GET \
--url https://api.vantage.sh/v2/cost_reports \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <YOUR TOKEN>'