Bearer Token
Provide your API key in theAuthorization HTTP header using the Bearer scheme.
Example Request
Key Scoping
- Project Isolation: Every API key is scoped to a specific project. An API key created in Project A cannot access customers or ledgers in Project B.
- Roll and Revoke: You can revoke an API key at any time from the dashboard if you suspect it has been compromised. Requests using a revoked key will immediately start failing with an
api_key_revokederror.
Authentication Errors
If your request cannot be authenticated, Velobase returns a401 Unauthorized status code.
| Error Code | Reason |
|---|---|
missing_api_key | The Authorization header is missing. |
invalid_api_key | The provided key is malformed, incorrect, or belongs to a deleted project. |
api_key_revoked | The key has been manually revoked in the dashboard. |