Event Tracking API

You can build your own referral system by using our event tracking API. After generating a referral code with our Referral Code Generation API endpoint, you can use this API endpoint to track events for the invitees.

Don't forget to replace the following placeholders with your own values when running the commands:

curl -X POST \\
    -H "Accept: application/json" \\
    -H "Content-Type: application/json" \\
    -H "Authorization: Bearer __API_KEY__" \\
    -d '{"person_email":"__EMAIL_ADDRESS__","person_name":"__NAME__"}' \\
    "<http://api.referralmagic.co/referrals/__REFERRAL_CODE__/events/__EVENT_NAME__>"