The Vantage API Docs Have Moved
Visit docs.vantage.sh/api for the latest Vantage API documentation, and update any of your bookmarks to this new page. This site will remain available for a limited time.
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 an API Service Token
Service tokens can be created by users with owner-level permissions and are associated with an account, not with an individual user. For Enterprise customers who use teams and role-based access control, you have the option of selecting a team to inherit permissions from.
To generate an API service token:
- Navigate to the Settings screen in Vantage.
- On the left navigation menu, select API Access Tokens.
- Enter a new token name, choose a team (if applicable), select the Read and/or Write scope, and click Create.
- Click Show to reveal and copy your token.
Create an API Personal Access Token
To generate an API personal access token:
- Navigate to the Settings screen in Vantage.
- On the left navigation menu, select API Access Tokens, then navigate to the Personal Access Tokens tab.
- 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>'
