Overview
The Agentic Wallet API uses API key-based authentication with scope-based access control. All requests must include a valid API key in the request headers.API Key Header
Include your API key in every request:string
required
Your API key for authentication
Tenant Header
For multi-tenant deployments, specify the tenant:string
Tenant identifier. Use
* for wildcard access (if permitted by your API key).Configuration
API keys are configured via environment variables:Enable/Disable Authentication
API Key Format
API keys follow the format:key: The actual API key stringtenant: Tenant ID or*for all tenantsscopes: Comma-separated list of scopes orallfor full access
Scopes
The following scopes control access to API resources:- Resource Scopes
- Examples
Example Configurations
Development Setup
Production Multi-Tenant
Rate Limiting
Rate limits are applied per API key:Error Responses
Missing API Key
Invalid API Key
Insufficient Scope
Rate Limit Exceeded
Response (429 Too Many Requests):Security Best Practices
Recommendations:- Use separate API keys for different environments (dev, staging, production)
- Apply principle of least privilege - grant only required scopes
- Rotate API keys regularly
- Monitor API key usage via audit logs
- Use tenant-specific keys for multi-tenant deployments
- Set appropriate rate limits based on usage patterns