Authentication
API Key authentication and permission management
Last updated
API Key authentication and permission management
The BaseVol API uses API Key authentication via the X-API-Key HTTP header. All authenticated endpoints require a valid API key.
API keys follow a specific format depending on the environment:
Production
bvk_live_
bvk_live_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345
Testnet
bvk_test_
bvk_test_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345
Include the API key in the X-API-Key header with every authenticated request:
curl -H "X-API-Key: bvk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
https://api.basevol.com/api/v1/accountThe full API key is only shown once at creation. Store it securely. If lost, you must regenerate the key.
Log in to basevol.com and connect your wallet
Navigate to Settings > API Keys
Click Create API Key
Enter a descriptive name
Select permissions: READ, TRADE, or both
Optionally add IP whitelist entries
Click Create and copy the key immediately
Each API key can have one or more permissions:
READ
View account info, balances, positions, and orders
TRADE
Place orders, cancel orders, and close positions
A key with only READ permission cannot place or cancel orders. Use TRADE permission for trading bots.
You can restrict API key usage to specific IP addresses for additional security.
Up to 10 IP addresses per key
Supports individual IPs and CIDR notation
If no IPs are configured, the key works from any IP address
The number of API keys you can create depends on your tier:
Basic
3
Pro
10
Enterprise
50
From the dashboard, you can:
Update — Change name, permissions, or IP whitelist
Regenerate — Generate a new key value (old key is immediately invalidated)
Revoke — Permanently deactivate a key
Never expose API keys in client-side code or public repositories
Use environment variables to store keys in your applications
Enable IP whitelisting for production trading bots
Use the minimum required permissions — use READ only if you don't need trading
Rotate keys regularly and revoke unused keys
Monitor API usage via the /api/v1/account/api-usage endpoint
Last updated