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

# Authentication

> Create and manage Shoplist team API keys, grant scopes, and handle authentication errors.

Send your team API key in the `Authorization: Bearer …` header over HTTPS.

## Create a team key

1. In Shoplist, choose your team and open **Settings → API keys**.
2. Select **Create key**. Name the key and choose the scopes your integration needs.
3. Copy the key into your server-side secret store. Shoplist shows the full key once.

Team owners create and revoke keys. A team can have up to 10 active keys. To rotate a key, create its replacement, switch your integration to it, then revoke the old key. Keep keys out of browser code, URLs, source control, and logs.

## Scopes

| Scope | Permission |
| - | - |
| `stores:read` | Look up, enrich, count, and search stores. Read the store taxonomy. |
| `apps:read` | Look up and search Shopify apps. |
| `usage:read` | Read the team's API usage and allowance. |

`GET /v1/me` accepts any valid team key and returns its scopes in `data.scopes`.

* **401 `unauthenticated`** with `WWW-Authenticate: Bearer` means the API could not authenticate the request. Check the header and confirm that the key is active.
* **403 `insufficient_scope`** means the API accepted the key and the operation requires a scope the key lacks. Use a key with the required scope.


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