Secure your API requests with Bearer token authentication
Authorization
header.
sk_live_
+ 24 charactersUse for production. All actions affect real data and can’t be undone.Access API Settings
Create New Key
Copy Your Key
Authorization
header:
Use Environment Variables
Implement IP Restrictions
192.168.1.1
192.168.1.0/24
Rotate Keys Regularly
401 Unauthorized
response:
Code | Description | Solution |
---|---|---|
missing_api_key | No Authorization header | Include the header |
invalid_api_key | Key doesn’t exist | Check your key |
expired_api_key | Key has expired | Create a new key |
ip_restricted | Request from unauthorized IP | Update IP whitelist |
insufficient_permissions | Key lacks required scope | Update key permissions |
Headers Not Received
.htaccess
:CORS Issues