Skip to main content
Superlog uses two distinct types of API keys, each scoped to a different part of the platform. Understanding which key to use in which context keeps your pipelines secure and avoids confusing authentication errors.

Key types

Personal Access Tokens (PATs) used by the MCP server are separate from both key types. Manage them under Settings → API Tokens. They are not interchangeable with ingest or management keys.

Creating an ingest key

You can create an ingest key from the dashboard or programmatically via the management API.
1

Open the project settings

Navigate to Settings → API Keys inside the project that will receive telemetry.
2

Mint the key

Click New Key, give it a descriptive name (e.g. production-orders-service), then click Create.
3

Copy the plaintext immediately

Superlog shows the full key value only once. Copy it to your secrets manager before closing the dialog — it cannot be retrieved afterwards.
To mint a key programmatically, call the management API:
The response includes plaintext — the full key shown once — along with a stable key_prefix you can display safely later.

Using an ingest key

Add the key as a Bearer token in the Authorization header when sending OTLP data to the ingest proxy. The following endpoints accept ingest key authentication:
Most OpenTelemetry SDKs let you set the Authorization header via the OTEL_EXPORTER_OTLP_HEADERS environment variable:
Set OTEL_EXPORTER_OTLP_HEADERS in your deployment environment rather than hard-coding the key in source code. This makes rotation straightforward without a code change.
For full details on ingest endpoints and supported OTLP formats, see the OTLP Ingest reference.

Revoking a key

1

Open the project settings

Navigate to Settings → API Keys for the project.
2

Revoke

Find the key by its prefix or name and click Revoke. Revocation is immediate — requests using the key will receive a 401 from that point on.
Ingest key revocation is not available through the management API. Use the dashboard steps above to revoke a key.

Rotating a key safely

Zero-downtime rotation takes three steps:
1

Create the replacement key

Mint a new ingest key following the steps above. Keep both keys active.
2

Update your instrumentation

Deploy the new key value to all services and verify telemetry is arriving in the Superlog dashboard.
3

Revoke the old key

Once all traffic is confirmed on the new key, revoke the old one. Revoking before updating instrumentation will break your pipeline.
Do not revoke the old key until every service and deployment environment has been updated to use the new one. A stale key in a long-running process or container image can silently drop telemetry.

Listing keys

To see all active keys for a project:
The response lists each key’s id, name, key_prefix, last_used_at, revoked_at, and created_at. The key_prefix (e.g. sl_live_ab12...) is safe to display and log — it uniquely identifies the key without exposing the secret.

Management key authentication

Management keys (sl_management_...) are org-scoped and authorize calls to the /api/v1/* management REST API. You create them from Settings → API Keys at the org level, not inside a project. For authentication details and the full list of management API endpoints, see the Authentication reference.