Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update info on EU domain #154

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions reference/eu-domain.mdx
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
---
title: 'EU domain'
description: 'This page explains how to work with Axiom if your organization uses the EU domain.'
title: 'EU region'
description: 'This page explains how to work with Axiom if your organization uses the EU region.'
---

If your organization uses the EU domain, the base domain of the Axiom app and the Axiom API reference is different from the US domain.
If your organization uses the EU region, the base domain of the Axiom app and the Axiom API reference is different from the US region.

The examples in this documentation use the US domain. For this reason, if your organization use the EU domain, you need to make some changes to the examples you find in this documentation.
The examples in this documentation use the US domain. For this reason, if your organization use the EU region, you need to make some changes to the examples you find in this documentation.

## Check your domain
## Check your region

To check which domain your organization uses, open the Axiom web app and check the URL in the browser:
- If the URL starts with `https://app.axiom.co/`, you use the default US domain.
- If the URL starts with `https://app.eu.axiom.co/`, you use the EU domain.
To check which region your organization uses, open the Axiom web app and check the URL in the browser:
- If the URL starts with `https://app.axiom.co/`, you use the default US region.
- If the URL starts with `https://app.eu.axiom.co/`, you use the EU region.

## Axiom app

If your organization uses the EU domain, the base domain is `https://app.eu.axiom.co/`. This is different from the default US domain `https://app.axiom.co/` you see everywhere in the documentation.
If your organization uses the EU region, the base domain is `https://app.eu.axiom.co/`. This is different from the default US region `https://app.axiom.co/` you see everywhere in the documentation.

## Axiom API reference

All examples in the [Axiom API reference](/restapi/introduction) use the US domain `api.eu.axiom.co`.
All examples in the [Axiom API reference](/restapi/introduction) use the default US base domain `https://api.axiom.co`. For example, if your organization uses the US region, send data to Axiom with the URL `https://api.axiom.co/v1/datasets/DATASET_NAME/ingest`.

If your organization uses the EU domain, change the base domain in the examples to `api.eu.axiom.co`.
If your organization uses the EU region, change the base domain in the examples to `https://api.eu.axiom.co`. For example, if your organization uses the EU region, send data to Axiom with the URL `https://api.eu.axiom.co/v1/datasets/DATASET_NAME/ingest`.
12 changes: 6 additions & 6 deletions restapi/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ All our endpoints live under the url `https://api.axiom.co` and follow the REST
Here’s an example in **curl**:

```bash
curl -X 'POST' 'https://api.axiom.co/v1/datasets/$DATASET_NAME/ingest' \
-H 'Authorization: Bearer $API_TOKEN' \
curl -X 'POST' 'https://api.axiom.co/v1/datasets/DATASET_NAME/ingest' \
-H 'Authorization: Bearer API_TOKEN' \
-H 'Content-Type: application/json' \
-d '[
{
Expand All @@ -51,7 +51,7 @@ See [Creating a Dataset](/reference/datasets) to get started.
Requests to the Axiom API must provide an API token through the `Authorization` header:

```bash
Authorization: Bearer <$API_TOKEN or $PERSONAL_TOKEN>
Authorization: Bearer API_TOKEN
```

The `Authorization` header with an access token:
Expand Down Expand Up @@ -92,8 +92,8 @@ Below is a list of the types of data used within the Axiom API:
| **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] |

## EU domain
## EU region

All examples in the Axiom API reference use the US domain `api.eu.axiom.co`.
All examples in the Axiom API reference use the default US base domain `https://api.axiom.co`. For example, if your organization uses the US region, send data to Axiom with the URL `https://api.axiom.co/v1/datasets/DATASET_NAME/ingest`.

If your oprganization uses the EU domain, change the base domain in the examples to `api.eu.axiom.co`.
If your organization uses the EU region, change the base domain in the examples to `https://api.eu.axiom.co`. For example, if your organization uses the EU region, send data to Axiom with the URL `https://api.eu.axiom.co/v1/datasets/DATASET_NAME/ingest`.