# Authentication

Authenticate requests with a Bearer API key.

Include your API key in the `Authorization` header:

```bash
curl https://api.qwetty.com/api/v1/me \
  -H "Authorization: Bearer $QWETTY_API_KEY"
```

Each key belongs to one organization. Access also depends on its permissions, channel selection, expiration, enabled state, and optional IP restrictions. The OpenAPI document is public and does not require a key.

Missing, invalid, disabled, or expired credentials return `401`. A key whose organization has been deleted returns `410 organization_deleted`. An IP address outside the key's allowed list returns `403`. A valid key without a required permission also returns `403`. See [error handling](/en/developers/error-handling) for the response format.

## Protect your credentials

Store keys in your server's secret manager or environment variables. Do not include them in browser code, public repositories, or logs. Use one key per integration and grant only the permissions it needs.

Rotation immediately invalidates the old credential. Update your integration with the new value when you rotate. Disable a key to suspend access without deleting its configuration.

[Create and manage API keys](/en/developers/api-keys).
