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

# Authentication for tenant API requests

> Choose the correct Anbyan authentication flow for customer sessions, staff sessions, developer apps, or long-lived staff API keys.

Anbyan exposes separate authentication boundaries for each API audience. Use credentials issued for the same surface as the endpoint you are calling.

```http theme={null}
Authorization: Bearer <token>
Accept: application/json
Content-Type: application/json
```

## Customer portal

Customer portal endpoints use a customer bearer token issued after email-password or passkey authentication. A customer token cannot call staff or developer-app endpoints.

## Staff sessions

Staff endpoints use a short-lived bearer token issued after email-password authentication and any required MFA challenge. Some sensitive operations also require recent authentication, branch context, or specific permissions.

## Developer apps

Developer apps use OAuth 2.0 authorization code with PKCE. Access tokens are short-lived and limited to permissions approved during tenant consent. OAuth protocol field names use their standard snake\_case spelling.

## Staff API keys

Staff API keys are long-lived bearer credentials created by authorized staff. Each key is limited to its assigned permissions and should be stored like a secret. This surface is currently a preview and exposes only documented endpoints.

Public system-status and login endpoints are marked with no security requirement in the API reference.


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