EarlyParrot API – How to get Referral Code & Referral URL for any subscriber

You are able to retrieve the unique Referral Code for any email address that is subscribed to your campaign. The referral code uniquely distinguishes referrers from each other.

Method: GET

URL: https://admin.earlyparrot.com/api/share/[YOUR_CAMPAIGN_ID]/referral/getReferralUrlForEmail?email=johnsmith%40gmail.com

Please note that email must be encoded

If the email is a subscriber, you will get the following JSON response:

{
  hashId: "wzkfxAjaWV",
  referralUrl: "http://SHAREPAGE_URL/?rh=wzkfxAjaWV"
}