API Keys
All requests to the Taxo API require authentication using an API key. This must be included in theAuthorization header of each request.
Getting your API Key
1
Sign in
Access the Taxo Dashboard with your business account
2
Go to settings
Navigate to Settings → API Keys in the sidebar menu
3
Create new API Key
Click on “Create API Key” and assign a descriptive name
4
Configure permissions
Select the necessary permissions for your integration
5
Copy and save
Copy the generated API key and store it securely
Environments
Taxo provides two environments for development and production:- Production
- Staging
Base URL:
https://api.taxo.co- Use for production applications
- Real SAT data
- 99.9% availability SLA
- Production rate limits applied
Security best practices
Environment variables
Environment variables
Never hardcode your API key in source code. Use environment variables:
Key rotation
Key rotation
- Rotate your API keys regularly (recommended: every 90 days)
- Create new keys before revoking old ones
- Use multiple keys for different services when possible
- Monitor key usage from the dashboard
IP restrictions
IP restrictions
For additional security, you can restrict API key usage to specific IPs:
- Go to Settings → API Keys in the dashboard
- Select the key you want to restrict
- Add allowed IPs in IP Restrictions
- Save changes
Monitoring and alerts
Monitoring and alerts
Configure alerts to detect anomalous usage:
- Requests from unauthorized IPs
- Unusual spikes in API usage
- Multiple authentication errors
- Usage exceeding normal limits
Handling authentication errors
Common error codes
| Code | Error | Description |
|---|---|---|
401 | Unauthorized | Missing, invalid, or expired API key |
403 | Forbidden | Valid API key but insufficient permissions for the resource |
429 | Too Many Requests | You have exceeded your plan’s rate limit |