API Keys
All API requests must include an API key in the Authorization header.Generating API Keys
1
Navigate to API Keys
2
Create New Key
Click “Generate New API Key” and give it a name
3
Copy the Key
The key is only shown once! Store it securely.
Using API Keys
cURL Example
JavaScript Example
Python Example
Key Types
| Type | Prefix | Environment | Use Case |
|---|---|---|---|
| Live | ct_live_ | Production | Production applications |
| Test | ct_test_ | Development | Testing and development |
Test keys only work with test mode data and won’t affect your production wallets.
Security Best Practices
Keep Keys Secret
Keep Keys Secret
Never commit API keys to version control or expose them in client-side code.
Use Environment Variables
Use Environment Variables
Store API keys in environment variables or secret management systems.
Rotate Keys Regularly
Rotate Keys Regularly
Generate new keys periodically and revoke old ones.
Use Minimal Permissions
Use Minimal Permissions
Create separate keys for different applications with appropriate scopes.
Key Permissions
Configure what each API key can access:- Read-only: View wallets and transactions (recommended for dashboards)
- Read-Write: View and modify tags, notes, attachments
- Full Access: All operations including exports and webhooks
Revoking Keys
If a key is compromised:- Go to API Keys page
- Click the 🗑️ icon next to the key
- Confirm revocation
- Update your applications with a new key
Revoking a key immediately invalidates all requests using that key.