Learn how you can authenticate your requests to the Axiom API with tokens.
This reference article explains how you can authenticate your requests to the Axiom API with tokens.
You can use the Axiom API and CLI to programmatically ingest and query data, and manage settings and resources. For example, you can create new API tokens and change existing datasets with API requests. To prove that these requests come from you, you must include forms of authentication called tokens in your API requests. Axiom offers two types of tokens:
Keep tokens confidential. Anyone with these forms of authentication can perform actions on your behalf such as sending data to your Axiom dataset.
When working with tokens, use the principle of least privilege:
For more information on how to use tokens in API requests, see Get started with Axiom API.
You can use two types of API tokens in Axiom:
After creating an API token, you cannot change the privileges assigned to that API token.
Similarly to passwords, it’s recommended to change API tokens regularly and to set an expiration date after which the token becomes invalid. When a token expires, you can regenerate it.
To regenerate an advanced API token, follow these steps:
Personal access tokens (PATs) provide full control over your Axiom account. Requests authenticated with a PAT can perform every action you can perform in Axiom. When possible, use API tokens instead of PATs.
If you authenticate requests with a PAT, you must include the org ID in the requests. For more information on including the org ID in the request, see Axiom API and Axiom CLI.
Determine the org ID in one of the following ways:
Click Settings. Copy the org ID in the top right corner. In the example below, the org ID is
axiom-abcd
.
Go to the Axiom app and check the URL. For example, in the URL https://app.axiom.co/axiom-abcd/datasets
, the org ID is axiom-abcd
.
Learn how you can authenticate your requests to the Axiom API with tokens.
This reference article explains how you can authenticate your requests to the Axiom API with tokens.
You can use the Axiom API and CLI to programmatically ingest and query data, and manage settings and resources. For example, you can create new API tokens and change existing datasets with API requests. To prove that these requests come from you, you must include forms of authentication called tokens in your API requests. Axiom offers two types of tokens:
Keep tokens confidential. Anyone with these forms of authentication can perform actions on your behalf such as sending data to your Axiom dataset.
When working with tokens, use the principle of least privilege:
For more information on how to use tokens in API requests, see Get started with Axiom API.
You can use two types of API tokens in Axiom:
After creating an API token, you cannot change the privileges assigned to that API token.
Similarly to passwords, it’s recommended to change API tokens regularly and to set an expiration date after which the token becomes invalid. When a token expires, you can regenerate it.
To regenerate an advanced API token, follow these steps:
Personal access tokens (PATs) provide full control over your Axiom account. Requests authenticated with a PAT can perform every action you can perform in Axiom. When possible, use API tokens instead of PATs.
If you authenticate requests with a PAT, you must include the org ID in the requests. For more information on including the org ID in the request, see Axiom API and Axiom CLI.
Determine the org ID in one of the following ways:
Click Settings. Copy the org ID in the top right corner. In the example below, the org ID is
axiom-abcd
.
Go to the Axiom app and check the URL. For example, in the URL https://app.axiom.co/axiom-abcd/datasets
, the org ID is axiom-abcd
.