cURL
curl --request GET \ --url https://v2.firstpromoter.com/api/v2/affiliate/email_settings \ --header 'Account-ID: <account-id>' \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": 123, "company_domain": "<string>", "emails_opt_drip": true, "emails_opt_new_commission": true, "emails_opt_new_referral": true, "emails_opt_payout": true, "company_name": "<string>", "marketing_consent": true } ], "meta": { "email": "<string>" } }
Access token passed as a Bearer token in the Authorization header
Account identifier that specifies which account is making the request
"acc_123456"
Encrypted email
Email settings retrieved successfully
The response is of type object.
object