ODOCK.AI
ManagementVirtual API Keys

Virtual API Keys

Runtime credentials for applications that call Odock.

Virtual API Keys

Virtual API keys are the credentials your applications use to call Odock. They are separate from upstream provider keys. Your application sends the virtual key to the gateway; Odock resolves the configured model or MCP server and uses its internal provider configuration to call upstream systems.

This separation gives you one runtime identity for governance:

  • explicit model and MCP access grants,
  • owner attribution by organisation, team, user, and key,
  • budgets and quotas,
  • IP and rate-limit policies,
  • routing policies,
  • usage records for audit and billing.

For provider credentials and model setup, see Providers, Models, and MCP Servers.

Runtime Flow

Applications should only receive virtual API keys. Provider keys should stay in Odock.

What You Manage On A Key

AreaWhat it controls
Key detailsType, owner, expiry, timezone, revoked state, reveal state, and rotation count.
Model AccessWhich model names the key can call.
MCP AccessWhich MCP servers the key can call.
PoliciesIP allow/block lists, request/token limits, payload limits, concurrency.
RoutingCandidate models and fallback behavior for this key.
Rotation HistoryPrevious masked secret values, previous expiry, new expiry, rotating user, and rotation date.
BudgetsSpend ceilings attached to this key.
QuotasUsage ceilings attached to this key.
Usage RecordsRequest-level evidence of what the key did.

Reveal, Rotate, And Revoke

API key secrets are reveal-once. After the first reveal, later reads return a masked value. When you rotate a key, Odock generates a new secret on the same API key record and resets the reveal state, so the new secret can be revealed once.

Rotation is in-place. The API key ID stays the same, so model access, MCP access, routing policies, budgets, quotas, usage attribution, and detail page references remain attached to the key.

Revocation does not change the secret. It sets the key to revoked and the gateway rejects future requests that present that secret.

Pages In This Submenu

On this page