This section explains how to send data to Axiom, query data, and manage resources using the Axiom API.
AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace DATASET_NAME
with the name of the Axiom dataset where you want to send data.https://api.axiom.co
, which is the default for the US region. If your organization uses the EU region, change the base domain in the examples to https://api.eu.axiom.co
.
For more information on regions, see Regions.
Content-Type
header to application/json
. Unless otherwise specified, Axiom encodes all responses (including errors) as JSON objects.
Authorization
header.
Authorization
header and the org ID in the x-axiom-org-id
header. For more information, see Determine org ID.
403
.
Name | Definition | Example |
---|---|---|
ID | A unique value used to identify resources. | ”io12h34io1h24i” |
String | A sequence of characters used to represent text. | ”string value” |
Boolean | A type of two possible values representing true or false. | true |
Integer | A number without decimals. | 4567 |
Float | A number with decimals. | 15.67 |
Map | A data structure with a list of values assigned to a unique key. | { “key”: “value” } |
List | A data structure with only a list of values separated by a comma. | [“value”, 4567, 45.67] |