Authentication
Authentication
Section titled “Authentication”Learn how to authenticate your applications with Kopai.
API Tokens
Section titled “API Tokens”Kopai uses bearer tokens for API authentication. All OTLP requests must include your token in the Authorization header.
Creating a Token
Section titled “Creating a Token”- Navigate to Settings → Access Tokens
- Click Generate New Token
- Give your token a descriptive name
- Copy the token immediately (it won’t be shown again)
Using Your Token
Section titled “Using Your Token”Include your token in the Authorization header:
Authorization: Bearer YOUR_TOKENOr set via environment variable:
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer YOUR_TOKEN"Token Best Practices
Section titled “Token Best Practices”- Use separate tokens for different environments (dev, staging, prod)
- Rotate tokens regularly
- Never commit tokens to source control
- Revoke unused tokens promptly