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
Sign in
Access the Taxo Dashboard with your business account
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 |