Outcron Plain HTML

API Keys

API keys provide programmatic access to the Outcron API without requiring a user login. Each key is scoped to a single organization and carries its own set of permission tags.

Key Format

API keys use the outk_ prefix for easy identification:

outk_a1b2c3d4e5f6...
    

The full key is only shown once at creation time. After that, only the prefix is visible.

Creating an API Key

When creating a key, you specify:

Permission Scoping

API keys use the same permission tag system as roles. A key can only access resources allowed by its permission tags. This means you can create narrowly-scoped keys — for example, a key with only executions:read for a monitoring dashboard.

Omitted or empty permissions deny org-member routes. API keys cannot access support ticket routes, platform-admin routes, or org-admin-only actions even when the key has every org permission.

Usage Tracking

Each API key tracks:

Rotating an API Key

Rotation issues a new secret value for an existing key. The key's ID, name, permissions, and usage history are preserved — only the secret changes.

To rotate, open the API Keys page and click the rotate action on the row for the key you want to roll. The dialog asks for a grace period — how long the previous secret should remain valid so callers can migrate without downtime.

The new secret is shown once after rotation — copy it immediately. The rotation response also exposes previous_key_prefix and previous_expires_at so callers can confirm which older secret is still accepted and when it stops working.

Security

API Authentication

Include the key in the Authorization header:

Authorization: Bearer outk_a1b2c3d4e5f6...
    

The API responds with 401 Unauthorized if the key is invalid, expired, or revoked.