API Documentation
Authentication
How to authenticate your API
Authentication
Obtaining Your Credentials
FirstPromoter uses two key credentials to authorize API requests:
- API Key: A unique token that authenticates your application
- Account ID: Identifies your specific FirstPromoter account
To locate these credentials:
- Log in to your FirstPromoter Dashboard
- Navigate to Settings → Integrations → Manage API Keys → Add new Key if you don’t have one already.
- Set a descriptive key name (e.g.,
My Application Key
) and click Create - Immediately copy and securely store your newly generated API key.
- You will find your Account ID in the same API integrations panel under Settings → Integrations
Making Authenticated Requests
All API requests must include both credentials in your request headers:
Example Request
You must replace {apikey}
with your account API key and {account_id}
with your account ID
Security Best Practices
- Keep your API key secure and never expose it in client-side code
- Consider implementing IP restrictions for API access
- Regularly audit your API usage and rotate keys if suspicious activity occurs
- Use HTTPS for all API communications