API Key Authentication
All API requests must include an API key in thex-api-key header.
Creating an API Key
- Log in to your bitbybit dashboard
- Navigate to Settings > Developer
- Click Create API Key
- Give it a name and select the scopes (permissions) it needs
- Click Create and copy the key immediately
Key Format
Scopes
API keys are scoped to specific resources and actions. Available scopes:
A key with
READ access to customers can list and get customers, but cannot create or update them.
Key Rotation
To rotate an API key without downtime:- Go to Settings > Developer
- Click the menu on your active key and select Rotate
- A new key is created and the old key gets a 24-hour grace period
- Update your application with the new key
- The old key automatically stops working after the grace period
IP Whitelisting
You can restrict an API key to specific IP addresses or CIDR ranges. When configured, only requests from those IPs are accepted — all others receive a403 error.
See IP Whitelisting for setup instructions and supported formats.

