# Authentication

All Airaa API requests require authentication via a Bearer token.

## Getting an API key

API keys are not self-serve. [Contact the Airaa team](https://t.me/airaaHQ) to request access. Keys are issued per organization.

## Making authenticated requests

Include your API key in the `Authorization` header of every request:

```http
GET /v1/contributors HTTP/1.1
Host: api.airaa.xyz
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
```

## Error responses

| Status | Code           | Meaning                                                  |
| ------ | -------------- | -------------------------------------------------------- |
| 401    | `unauthorized` | Missing or invalid API key                               |
| 403    | `forbidden`    | Valid key but insufficient permissions for this resource |
| 429    | `rate_limited` | Request rate exceeded; check `Retry-After` header        |

## Key management

API keys do not expire automatically but can be revoked by the Airaa team on request. Treat your key as a secret - do not expose it in client-side code or public repositories.

To rotate a key, contact <api@airaa.xyz>.


---

# 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.airaa.xyz/api-reference/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.
