# Authentication

Artum API requests use bearer token authentication.

```http
Authorization: Bearer <api_key>
```

For the mock API, Artum provides a mock API key. Do not put this key in frontend code, mobile apps, public repositories, screenshots, or client-side configuration.

## Example

```bash
curl "https://mock.artum.app/v1/chains" \
  -H "Authorization: Bearer $ARTUM_MOCK_API_KEY"
```

## Public Endpoints

These endpoints are intentionally public:

* `https://mock.artum.app/swagger/`
* `https://mock.artum.app/openapi.yaml`

All `/v1/*` endpoints require bearer authentication.

Missing or invalid credentials are rejected before the request reaches the API handler. See [Errors](/payments/errors.md) for the API error shape used after authentication succeeds.

State-changing endpoints also require `Idempotency-Key`. See [Idempotency](/payments/idempotency.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.artum.app/get-started/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
