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

# Authentication

> Learn how to authenticate with KonbiniAPI using Bearer tokens. Get your API key from the dashboard and include it in the Authorization header.

All API endpoints require a Bearer token in the `Authorization` header.

## Getting your API key

Sign up and get your API key at [app.konbiniapi.com](https://app.konbiniapi.com). Keys use the `knbn_` prefix.

## Making authenticated requests

Include your key in the `Authorization` header:

```bash theme={null}
curl https://api.konbiniapi.com/v1/tiktok/users/example \
  -H "Authorization: Bearer knbn_your_api_key"
```

## Key management

* Each account has one API key
* Keys can be rotated without losing your credit balance — credits are tied to your account, not the key
* Revoked keys are rejected instantly

<Warning>
  Keep your API key secret. Do not expose it in client-side code or public repositories.
</Warning>
