> ## Documentation Index
> Fetch the complete documentation index at: https://equatetravel.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Create, send and rotate workspace API keys.

The public API authenticates with **workspace API keys** — bearer tokens that resolve
to exactly one workspace. There are no per-user OAuth tokens for the public API; a key
acts on behalf of the whole workspace.

## Creating a key

**1. Open API keys**

In the dashboard, go to **Organisation → Keys & secrets**. Only workspace
**admins** can manage keys.

**2. Generate**

Click **Create key**, give it a recognisable name (e.g. `production-integration`),
and confirm.

**3. Copy the secret now**

The full key — `ip_live_` followed by 40 hex characters — is shown **once**. equate
stores only a SHA-256 hash and a short display prefix, so it can never show you the
secret again. Copy it into your secret manager immediately.

## Sending the key

Pass the key as a bearer token on every request:

```bash theme={null}
curl https://equatetravel.ai/api/v1/agents/cruise-invoices/run \
  -H "Authorization: Bearer ip_live_a1b2c3d4e5f6..." \
  -H "Content-Type: application/json" \
  -d '{ "content": "…" }'
```

A missing, malformed, unknown or revoked key all return the same `401 UNAUTHORIZED` with
a deliberately vague message — the endpoint won't tell an attacker which keys exist.

## Rotating and revoking

* **Rotate** by creating a new key, deploying it, then revoking the old one.
* **Revoke** from the same screen — revocation takes effect immediately and is
  irreversible. `last_used_at` on each key helps you spot which are still live.

> [!WARNING]
>
> Never embed an `ip_live_` key in client-side code, a public repo, or a browser app.
> It grants full agent access for the workspace and consumes metered quota.

## Scope and access

A key inherits the workspace's plan and subscription state. Calls will fail if:

* the plan **doesn't include API access** (Professional and above) → `403 FEATURE_NOT_AVAILABLE`.
  This applies to every endpoint, including keys created before a move to a smaller
  plan; they work again as soon as the workspace is back on a plan with API access.
* the workspace has **no active subscription** → `402 SUBSCRIPTION_REQUIRED`
* the plan **doesn't include the Agent Builder** → `403 FEATURE_NOT_AVAILABLE`

See [plans & billing](https://equatetravel.ai/docs/guides/billing.md) for what each plan includes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.