# Keys

> Every page of these docs is also plain Markdown, listed at https://subliss.app/developers/llms.txt for AI tools.

Every request to the Subliss API carries a developer key, except `GET /search`, which finds up to 10 public subliminals without one. A key reads public subliminals and creator profiles only, never private subliminals, affirmations or account details.

## Get a key

Developer keys are open to a few accounts for now. If Account doesn't show Developer keys and you'd like a key, email [hello@subliss.app](mailto:hello@subliss.app).

1. Sign in at subliss.app and open Account.
2. Under Developer keys, choose Make a key and give it a name, such as Make.
3. Copy the key straight away. Subliss stores only a scrambled copy, so it shows the key once.

A key starts with `sbl_` and has 64 characters after that. One account can hold 5 keys at once.

## Send the key

Send the key in the `Authorization` header of every request:

```bash
curl https://api.subliss.app/v1/me \
  -H "Authorization: Bearer sbl_your_key"
```

A request with no key answers `401` with `missing_key`. A key that isn't a Subliss key, or one that has been revoked, answers `401` with `invalid_key`.

## Keep the key out of addresses

Never put the key in an address, such as `?key=sbl_your_key`. Addresses end up in logs and browser history, so the API refuses any request with a key in the address and answers `400` with `key_in_url`. If that happens, revoke the key and make a new one.

## Revoke a key

Under Developer keys on Account, choose Revoke next to the key. Anything using it stops working straight away. Revoke a key you no longer use, and any key someone else may have seen.

## Check a key

`GET /me` returns the account the key belongs to, so it is the quickest way to check a key works:

```json
{
  "handle": "maya",
  "name": "Maya",
  "url": "https://subliss.app/creator/maya"
}
```

Next, see what you can read in [Endpoints](https://subliss.app/developers/endpoints.md).
