# API reference

The Azta API answers legislation questions over HTTP, and every answer links to the provisions it cites.

## Base URL

```text
https://api.azta.ai/v1
```

## Authentication

Send your API key as a bearer token on every request.

```http
Authorization: Bearer $AZTA_API_KEY
```

Create keys in the console. Keep them out of source control and read them from the environment.

## Jurisdiction

Set the `X-Jurisdiction` header to choose the legal system a request is answered under. The endpoint pages list the accepted values.

## Machine-readable spec

Every page below is generated from one OpenAPI 3.1 document: [/openapi/v1.json](/openapi/v1.json). Point a client generator or an agent at it.
