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

# Authentication

> Every call presents one of your access keys.

Every call carries an access key in the `Authorization` header:

```
Authorization: Bearer hs_live_…
```

Keys are created and revoked in your portal, under **Settings > Access keys**.

## A key opens one account

A key opens your account and no other. No route takes an account id or a slug: the key says which account it is.

## When a key stops working

A key is refused when it is missing, malformed, unknown or revoked. It is also suspended while the person who created it no longer has access to your portal, and works again as soon as that access is restored. If that person's account was deleted, the key stays refused: create a new one.

Every refusal gets the same answer, whatever the reason:

```http theme={null}
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer realm="HelloSearch API"

{ "error": { "code": "unauthorized", "message": "A valid access key is required. …" } }
```

A revoked key stops working on the very next call.

## Good practice

* One key per tool or automation, named after it. Revoking one then stops one tool and nothing else.
* Read the key from an environment variable or a secret store, never from a file you commit or share.
* Revoke a key you no longer use. The **Last used** column of the portal says which ones are idle: it moves, to the minute, when a call presents a key that exists and is neither revoked nor suspended.


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