x-api-key header.
API key authentication
Every request to a business-facing endpoint (quotes, deposits, transactions, wallet, banks, payouts) must include:live_ in production and test_ in staging, so you can tell environments apart at a glance.
403 with api key header is needed to access this resources. If the key is invalid, you’ll get a 401 with Invalid api key. If your business hasn’t been granted API access yet, you’ll get a 401 with You are not allowed to access this resource, contact support for more info [email protected].
Generating a key
Generate and manage your API key from the Tradevu Dashboard — key creation, rotation, and revocation are dashboard-only actions and aren’t exposed through the API.A business can only hold one active API key at a time. To rotate, revoke the existing key from the dashboard first, then generate a new one. There’s a brief window where no key is valid, so coordinate rotation during low-traffic periods.
401 Invalid api key. Generate a new key and roll it out to your systems before revoking the old one if you need zero downtime.
Response envelope
Most successful responses share this shape:A handful of endpoints (
PUT /api/set-webhook, GET /api/bank-list/:fromCurrency/:toCurrency, POST /api/simulate-funding, POST /api/payout) return a lighter shape without the error field, and in some cases without data. The API Reference shows the exact response schema per endpoint — check it rather than assuming the envelope above.