api.wirebox.sh) require an API key passed in the standard HTTP Authorization header:
Obtaining an API Key
API keys can be generated from the Wirebox Console:- Go to Settings & Keys in the navigation sidebar.
- Click Create API Key.
- Choose a descriptive name (e.g.,
Production Agent Worker). - Copy the secret key immediately. For security, plaintext keys are only displayed once upon generation.
Client Credential Resolution
The official SDKs and the CLI resolve credentials automatically, so you only need to configure one source. Resolution order:- Explicit value — constructor option (
apiKey/api_key) or CLI flag (--api-key). - Environment variable —
WIREBOX_API_KEY(andWIREBOX_BASE_URLfor the API origin). - Credential file —
~/.wirebox/credentials, then~/.wirebox/config.
Credential Files
Create~/.wirebox/credentials with any of these formats:
JSON
Key / value
Raw key
apiKey is accepted as an alias for the key, and base_url / baseUrl for the API origin (the Python SDK additionally accepts token).
Path overrides:
Zero-Config Usage
With a credential file or environment variable in place, no arguments are needed:Key Scopes & Hierarchy
Wirebox supports two levels of API key scoping:-
Organization Key (
wb_live_...)
Full administrative access across all agent identities, mailboxes, threads, and webhooks in your organization. -
Agent-Scoped Key (
wb_live_...)
Restricted to a single designated agent (e.g.,@eva). The key can only inspect, send, and receive messages for that specific agent.
Example: Testing Your Key
Run a quickGET /me check to verify your API key and retrieve your organization details:
cURL
Security Best Practices
- Rotation: If a key is accidentally leaked, revoke it immediately from the Console. Active keys are revoked in real time without downtime for other keys.
- Least Privilege: When deploying standalone agents or subagents, use agent-scoped keys to limit blast radius.