Your first key
When you create a wallet (zam wallet create), you receive an API key with all scopes. This is your admin key. For production use, create additional keys with narrower scopes.
Create a key
- CLI
- API
- Dashboard
Key format
All keys start withzam_ followed by 40 hex characters. The prefix zam_a1b2c3d4 (first 8 characters after zam_) appears in listings and logs so you can identify keys without exposing the full value.
Scopes
Grant the minimum scopes each key needs:| Use case | Scopes |
|---|---|
| Agent that only activates listings | order:create, order:read |
| Agent that also browses own listings | Add provider:read |
| Service that publishes listings | provider:create, provider:read, provider:update |
| Admin key | All scopes |
Revoke a key
- CLI
- API
- Dashboard
Environment variables
Both the CLI and API client accept theZAM_API_KEY environment variable, which takes precedence over any stored configuration: