Friend Email Gating Webhook

The Talkable Friend Email Gating Webhook notifies your endpoint that a Friend Email Gating form was submitted (on Friend Claim Page).

Use cases for the Friend Email Gating Webhook include:

  • Tracking when users select the checkbox to opt into your email newsletter

  • Collection of data for Business Intelligence and analytics systems to track users who become Friends

  • Sending automated ‘Thank You’ or ‘Don’t forget to shop’ emails after a Friend passes the email gating form

When does Talkable call the Friend Email Gating Webhook?

Talkable Friend Email Gating Webhook is triggered any time an Friend Email Gating form is submitted. This is the form a Friend completes after receiving a share from an Advocate, and before receiving their discount code.

Friend Email Gating form example:

Friend Email Gating Form

Payload parameters provided

  • offer — subhash of parameters describing the offer

    • emailAdvocate’s (referrer) email address

    • short_url_code

    • ip_address

  • campaign — subhash of parameters describing the campaign

    • id — unique campaign ID

    • cached_slug — unique SEO friendly ID

    • type — either “StandaloneCampaign” or “DoubleSidedDealCampaign”

    • tag_names — array of campaign’s tags

    • origin_min_age — The timeframe from first site visit when an offer is available to Advocate

    • origin_max_age — The timeframe from first site visit when an offer is available to Advocate

    • new_customer — either null - there is no criteria, true - only new customers could join into campaign and see advocate offer, or false - the same but for existing customers

  • email — friend’s email address

  • first_name — friend’s first name

  • last_name — friend’s last name

  • ip_address — friend’s IP address

  • sub_choice — subscription choice (optional, present only if the form included subscription checkbox)

  • subscribed_at — date friend has subscribed (deprecated; use opted_in_at instead)

  • opted_in_at — date friend has subscribed (optional)

  • unsubscribed_at — date friend has unsubscribed (optional)

  • referral_counts - subhash of Advocate’s referral counts

    • total — created referrals count

    • approved — approved referrals count

    • pending — count of waiting for approval referrals

Sample payload

  "offer": {
    "email": "",
    "short_url_code": "1a2PV",
    "ip_address": ""
  "campaign": {
    "id": 465427859,
    "type": "StandaloneCampaign",
    "cached_slug": 465427859,
    "tag_names": ["default"],
    "origin_min_age": null,
    "origin_max_age": null,
    "new_customer": null
  "email": "",
  "first_name": null,
  "last_name": null,
  "ip_address": "",
  "sub_choice": true,
  "subscribed_at": "2018-09-27T22:54:28.345+03:00",
  "opted_in_at": "2018-09-27T22:54:28.345+03:00",
  "unsubscribed_at": null,
  "referral_counts": {
    "total": 0,
    "approved": 0,
    "pending": 0
  "is_loyalty_member": false,
  "loyalty_member": null

cURL example

curl --data 'key=<key>&site=<site>&type=claim_signup_web_hook&payload={"offer":{"email":"","short_url_code":"1a2PV","ip_address":""},"campaign":{"id":465427859,"type":"StandaloneCampaign","cached_slug":465427859,"tag_names":["default"],"origin_min_age":null,"origin_max_age":null,"new_customer":null},"email":"","first_name":null,"last_name":null,"ip_address":"","sub_choice":true,"subscribed_at":"2018-09-27T22:54:28.345+03:00","opted_in_at":"2018-09-27T22:54:28.345+03:00","unsubscribed_at":null,"referral_counts":{"total":0,"approved":0,"pending":0}}' <url>