API Authentication
All API requests require authentication using your API key in the Authorization header.Using Your API Key
Include your API key in theAuthorization header with the Bearer prefix:
Example Request
Best Practices
Store Keys Securely
Always use environment variables to store your API credentials:Use Different Keys for Each Environment
You’ll receive separate API keys for:- Sandbox - For testing and development
- Production - For live payments
Rotate Keys Regularly
For security, periodically rotate your API keys:- Generate a new key in your dashboard
- Update your application with the new key
- Test thoroughly
- Deactivate the old key
Getting Your API Keys
- Sign up for a Cheqpay account
- Navigate to your dashboard
- Go to Settings → API Keys
- Copy your keys for sandbox and production
Contact our support team at [email protected] if you need help setting up your API keys.