HTTPS Requirement
HTTPS Only: All API requests must be made over HTTPS. HTTP requests will be rejected with a 400 Bad Request error.
The API enforces HTTPS for all communications to ensure:
- Data encryption in transit
- Authentication token protection
- Request and response integrity
- Protection against man-in-the-middle attacks
TLS Requirements
Supported TLS Versions
Authentication Security
Token Storage
- Server-side storage: Store tokens securely on your backend
- Environment variables: Use environment variables, not hardcoded values
- Avoid client-side storage: Never store tokens in browsers or mobile app storage
Token Transmission
IP Allowlisting
For enhanced security, you can configure IP allowlists for your API keys:
- Log in to your dashboard
- Navigate to API keys
- Configure allowed IP addresses
- Save your configuration
Vulnerability Reporting
If you discover a security vulnerability:
- DO NOT disclose it publicly
- Email security@caspen.com with details
- Include steps to reproduce the issue
- We’ll respond within 24 hours
Enable security notifications in your dashboard to receive alerts about important security updates and maintenance windows.
Authentication best practices
- Never expose credentials in client-side code - Keep tokens in server-side environments.
- Use environment variables - Store credentials outside of source control.
- Rotate credentials regularly - Regenerate tokens periodically and revoke unused ones.
- Use HTTPS only - Always make requests over HTTPS to protect credentials in transit.
- Implement proper error handling - Avoid logging tokens or sensitive data.