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
- 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 IDAccess levels
Each API key has an access level that you choose when you create or edit the key under Settings → Integrations → Manage API keys. New keys, and keys created before access levels existed, are Full access by default.
Every level except Full access follows these rules:
- The key can never list, create, edit or reveal API keys, and it can’t see or rotate the legacy v1 API key.
- Team members, groups and roles are read-only for the key, and it can’t read or change SSO settings.
- The tracking endpoints (
POST /api/v2/track/...andPOST /api/v1/track/...) need the “create referrals” permission, so Read-only and Manager keys can’t track. iframe_loginandiframe_logoutneed the impersonation permission.- The key is refused on the legacy v1 API, except v1 tracking, which follows the tracking rule above.
- The key can’t be used to connect the MCP server or the AI assistant.
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