Skip to main content

Bearer Token

All Unwall API requests require a bearer token in the Authorization header. Tokens are project-scoped and prefixed with aw_live_.
Tokens are SHA-256 hashed before storage — the plaintext value is never saved on our servers. Each token belongs to exactly one project and can be revoked instantly from the dashboard.

Permissions

Tokens carry independent permission scopes. Only grant the permissions your agent actually needs. When creating a token, select only the permissions required:
If a token lacks the required permission for an endpoint, the API returns 403 Forbidden with a message indicating which permission is missing.

Rate Limits

Agent API tokens are rate-limited to 100 requests per minute using a sliding window. When the limit is exceeded, the API returns a 429 Too Many Requests response with a Retry-After header indicating how many seconds to wait.

Error Responses

Example error response

Security Best Practices

Never hard-code tokens in source code or commit them to version control. Use environment variables or a secrets manager like AWS Secrets Manager, HashiCorp Vault, or your platform’s built-in secret store.
Only grant the permissions your agent actually needs. A monitoring agent should have read only. A payment agent might need read + pay. Only grant x402 to agents that call x402-enabled APIs.
Create new tokens and revoke old ones on a regular cadence. You can have multiple active tokens per project, making zero-downtime rotation straightforward.
When creating tokens, set an expiration date for short-lived use cases. Expired tokens are automatically rejected without needing manual revocation.