Skip to main content
Version: current

Referrals

Pureprofile has functionality to refer your friends for the panel. This will send emails to your friends to join the panel. The number of emails that can be referred at once are set during the panel setup. If you exceed the maximum limit you will get an error.

Refer friends

When using this endpoint a list of emails can be submitted. Pureprofile will automatically email to your friends to join the panel. Below is a sample:

curl --location --request POST 'https://api.sandbox.pureprofile.io/v1/panel/refer-friends' \--header 'Accept: application/json' \--header 'Authorization: Bearer <access_token>'--data-raw '{    "emails": [        "<email1>",        "<email2>"    ]}'

The response contains the invited and failed count as well as the emails that were successfull and the ones that failed. Below is a sample:

{  "message": "success",  "data": {    "invited_count": 1,    "invited": ["<email1>"],    "failed_count": 1,    "failed": ["<email2>"]  }}