API keys

API keys are the credentials agents use to authenticate with Openavail.

Key format

Keys are prefixed with ak_ followed by a fixed-length unique identifier:

ak_01HX7QQMR5VKWZ3P9NDTF8KE2

The prefix makes them easy to identify in logs and secret scanners.

Creating a key

From the dashboard: Agents → [agent name] → API keys → New key.

You can create multiple keys per agent — for example, one per deployment environment or one per integration. Each key appears independently in audit logs so you can trace exactly which key made a given request.

The key is shown once at creation. Copy it to your secret manager immediately.

Rotating keys

To rotate a key:

  1. Create a new key for the agent
  2. Update your secret manager with the new key
  3. Deploy the updated configuration
  4. Confirm traffic is flowing through the new key (check the audit log)
  5. Revoke the old key

Openavail does not enforce key expiry, but your security policy should.

Revoking a key

Agents → [agent name] → API keys → [key] → Revoke. Revocation is immediate and irreversible. In-flight requests using the key will fail with 401 Unauthorized.

Active holds held by the revoked key are not automatically cancelled — they expire normally per their TTL.

Key security

  • Store keys in a secrets manager (Infisical, AWS Secrets Manager, Vault, etc.)
  • Never commit keys to source control
  • Rotate keys if a deployment is decommissioned or a team member leaves
  • Use separate keys per environment (dev/staging/prod) so you can revoke one without affecting others