Skip to main content

Authentication

Obtaining Your Credentials

FirstPromoter uses two key credentials to authorize API requests:
  1. API Key: A unique token that authenticates your application
  2. Account ID: Identifies your specific FirstPromoter account
To locate these credentials:
  1. Log in to your FirstPromoter Dashboard
  2. Navigate to Settings → Integrations → Manage API Keys → Add new Key if you don’t have one already.
  3. Set a descriptive key name (e.g., My Application Key) and click Create
  4. Immediately copy and securely store your newly generated API key.
  5. 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

Access 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/... and POST /api/v1/track/...) need the “create referrals” permission, so Read-only and Manager keys can’t track.
  • iframe_login and iframe_logout need 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.
When a key’s access level doesn’t allow a request, the API returns HTTP 403. The name in brackets is the key’s access level:
On the legacy v1 API, a key with an access level other than Full access gets HTTP 403 with this body:
Changing a key’s access level takes effect on its next request. The key itself doesn’t change, so you don’t need to update your integration.

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