- JWT login for the browser admin console and user-backed API calls
- API key for scripts, automation, CI/CD, and MCP
JWT login
The browser admin console signs in with a username and password. The API returns an access token plus a refresh token.Log in
data:
Use the access token
Refresh the access token
Token lifetime
| Token | Default lifetime | Controlled by |
|---|---|---|
| Access token | 15 minutes | Auth__Jwt__AccessTokenMinutes |
| Refresh token | 30 days | Auth__Jwt__RefreshTokenDays |
API key
API keys are for non-interactive clients. They are configured through environment variables and sent as Bearer credentials:Which method should you use?
| Use case | Recommended method |
|---|---|
| Admin console (browser) | JWT login |
| User-backed API calls | JWT login |
| Scripts and automation | API key |
| MCP integrations | API key |
| CI/CD pipelines | API key |