Skip to main content
Every API key in Tribridge is named, mode-specific and scoped. Create one key per integration, worker or AI agent instead of sharing a single all-powerful key.
Existing keys created before scopes were introduced keep working exactly as before: they are migrated to all permissions and MCP disabled. You can rotate them at your own pace.

Permission model

Scopes use resource:action. A key must have the exact scope a request needs. API keys can never manage other API keys, refund money, create payouts, sweep wallets or touch treasury operations. Those actions require a dashboard session with the relevant role.

Presets

Prefer a custom selection when a worker only needs one capability (e.g. webhooks:replay on a debugging job).

Caps and expiry

Each key can optionally set:
  • Max per payment — rejects a single payment above the amount.
  • Daily cap — rejects new payments once today’s (UTC) total would exceed the cap. Cancelled and expired payments do not count.
  • Expiry — the key stops authenticating after the date. Maximum two years out.
Cap failures are explicit and machine-readable:

MCP access

allow_mcp is off by default. A key with MCP disabled cannot authenticate MCP requests and receives:
Enable Allow MCP access only on keys used by an assistant. Scopes and caps still apply to every MCP call; MCP access is an additional opt-in, not a replacement for least privilege.

Creating and rotating keys

1

Open API keys

Dashboard → API keys → Create key.
2

Name it

Use the integration name, e.g. Production backend, Webhook debugger, Claude agent.
3

Choose test or live

Live keys require completed business verification. Start in test mode.
4

Pick scopes, caps and expiry

Choose a preset or build a custom list. Set caps for anything automated.
5

Copy the secret once

The full key (tri_test_... / tri_live_...) is shown exactly once. Tribridge stores only a SHA-256 hash. Store it in your environment or secret manager.
To rotate safely: create the new key, deploy it, verify traffic in Logs → API requests, then revoke the old key. Revocation takes effect immediately.

Error codes

Every failed request is visible in Logs → API requests with the key id, request source (api or mcp) and required scope.