# Authentication

Every call carries an **API key** in the `Authorization` header:

```http
Authorization: Bearer entayo_…
```

## Make a key

1. Open Entayo CRM → **Settings → API keys**.
2. Give it a name (where you will use it, e.g. `Zapier`) and create it.
3. **Copy the key now.** Only a short prefix is kept after this; the full key
   cannot be shown again.

## What a key can do

- A key acts **as you** — the same records and the same refusals as on the
  CRM's screens. It sees only your account.
- It works in your **Default** project unless you name another — see
  [Projects](https://www.entayo.com/docs/developers/entayo-crm/projects).
- It works only in **your data centre**. A key from `eu` is refused on `apac`.

## Keep it safe

- Treat it like a password. Never put it in a web page, a public repository or
  a shared document.
- Use one key per tool, so you can revoke one without breaking the others.
- **Revoke** a key you no longer use, or one that may have leaked: Settings →
  API keys → Revoke (or `DELETE /api-keys/{id}`). It stops working at once.

## The address

Always call your **data centre** address:

| Data centre | API address |
|---|---|
| Asia Pacific | `https://apac.zocton.com/entayo-crm/api` |
| Europe | `https://eu.zocton.com/entayo-crm/api` |
| North America | `https://na.zocton.com/entayo-crm/api` |

Not your workspace address (`<you>.zocton.com`) — that one is for the web
pages.

## A wrong or missing key

The answer is `401` with `{"error":"Not authenticated"}`. Check the key was
copied whole, that it is not revoked, and that you are on your own data
centre.
