Getting an API access token
Contributors Download PDF of this page
You must have an API access token to access the Astra REST API.
|The Astra API tokens never expire, however you can revoke a token when it is no longer needed.|
You need an account for the Astra service.
This task generates an API token at the Astra web interface. You should also retrieve the account ID.
Sign in to the Astra service using your account credentials.
Click the figure icon at the top right of the page and select API access.
Click Generate API token on the page and in the popup window click Generate API token.
Click the icon to copy the token string to the clipboard and save it in your editor.
Copy and save the account id.
When you access the Astra REST API through Curl or a programming language, you must include in the API bearer token in the
Authorization request header. To revoke the token, see Security.