Authentication
All PromoStack API requests require authentication using an API key.Getting Your API Key
- Log in to PromoStack Dashboard
- Navigate to your app settings
- Copy your API key from the “API Keys” section
Using Your API Key
Include your API key in thex-api-key header of every request:
Security Best Practices
Store Keys Securely
Store Keys Securely
Use environment variables or secure key management systems. Never hardcode keys in your app.
Rotate Keys Regularly
Rotate Keys Regularly
Generate new API keys periodically and update your app. Old keys can be revoked in the dashboard.
Monitor Usage
Monitor Usage
Track API usage in the dashboard to detect unusual patterns or potential key leaks.
Error Responses
401 Unauthorized
Missing or invalid API key:403 Forbidden
Valid key but insufficient permissions:API Key Scopes
All API keys have full access to:- Referrer endpoints (
/referrer,/referrer-claim) - Referee endpoints (
/referee-redeem) - Webhook endpoints (read-only)
Custom scopes and read-only keys are available on Pro and Enterprise plans.

