Key format
Every Meterlane API key begins with the prefixbp_live_ followed by 48 hexadecimal characters, for example:
Creating an API key
1
Open API Keys settings
In the dashboard sidebar, navigate to Settings → API Keys.
2
Generate a new key
Click Create API Key, enter a descriptive name (for example,
production-worker or ci-pipeline), and confirm.3
Copy the key immediately
The full
bp_live_… key is shown only once. Copy it now and save it in your secrets manager. Once you close this dialog, the full key is gone from the dashboard.Using an API key in requests
Pass your API key as a Bearer token in theAuthorization header of every management API request:
Reading keys from the environment
Never hard-code your API key in source code. Load it from an environment variable at runtime:Revoking a compromised key
If you suspect a key has been exposed, revoke it immediately:1
Navigate to API Keys
Go to Settings → API Keys in the dashboard.
2
Revoke the key
Find the key by its name or prefix, click the Revoke button, and confirm. Revocation takes effect immediately — any in-flight requests using that key will receive a
401 Unauthorized response.3
Issue a replacement
Create a new API key and update your environment variables or secrets manager with the new value.
API keys vs. agent private keys
These two credential types serve different purposes and must never be confused:
Your agent’s private key is never stored in or managed by the Meterlane dashboard. It lives in your deployment environment as
AGENT_PRIVATE_KEY and is used exclusively by the x402 payment client. See the Security page for safe handling practices.