GET
/
referrals
curl --request GET \
  --url https://v2.firstpromoter.com/api/v2/company/referrals \
  --header 'Account-ID: <account-id>' \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "email": "[email protected]",
    "uid": "<string>",
    "state": "subscribed",
    "metadata": {},
    "entry_source": "api",
    "created_at": "2023-11-07T05:31:56Z",
    "customer_since": "2023-11-07T05:31:56Z",
    "promoter_campaign": {
      "id": 123,
      "campaign_id": 123,
      "promoter_id": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "promoter": {
        "id": 123,
        "email": "[email protected]",
        "name": "<string>"
      },
      "campaign": {
        "id": 123,
        "name": "<string>",
        "color": "<string>"
      }
    },
    "fraud_check": "no_suspicion",
    "created_by_user_email": "[email protected]"
  }
]

Authorizations

Authorization
string
header
required

Access token passed as a Bearer token in the Authorization header

Headers

Account-ID
string
required

Account identifier that specifies which account is making the request

Example:

"acc_123456"

Query Parameters

q
string

Search params. Searches by email, uid, username, website

ids[]
integer[]

Array of referral ids to get

filters[type]
enum<string>

Filter the referrals by type (lead or customer)

Available options:
lead,
customer
filters[promoter_id]
string

Filter the referrals by a promoter id

filters[state]
enum<string>

Filter the referrals by state

Available options:
subscribed,
signup,
active,
cancelled,
refunded,
denied,
pending,
moved

Response

200
application/json
List of referrals

The response is of type object[].