Authentication Methods
Bearer Tokens
Standard Method: For both production and sandbox
API Keys
Sandbox Convenience: Additional option for quick testing
Bearer Token Authentication
1
Obtain Bearer tokens
2
Use in requests
3
Refresh when needed
API Key Authentication (Sandbox)
Get API keys from dashboard.prezio.eu or contact support@prezio.eu.API keys are a sandbox convenience feature. Bearer tokens are the standard method for both environments.
Example Usage
Security Best Practices
- Store tokens securely, never expose in client-side code
- Implement token refresh logic before expiration
- Use HTTPS for all requests
- Rotate API keys periodically
Common Errors
Status | Error | Solution |
---|---|---|
401 | Invalid token | Refresh your Bearer token or check API key |
403 | Permission denied | Contact support for access permissions |
Authentication failures count toward rate limits. Implement proper error handling.