Subscribers
Get subscribers
GET
https://api.sparkloop.app/v2/campaigns/:campaign_uuid/subscribers
Subscribers are ordered in descending order by created_at, meaning the first page shows the latest subscribers.
Query Parameters
Name | Type | Description |
---|---|---|
type | string | Type of subscribers you want to get. Default is all, allowed values are all, referrals, advocates. |
campaign_uuid* | String | Referral campaign UUID, e.g. MF9a78983d1c. |
expand | String | If you pass "campaigns" the response will include referral_programs data |
Get a subscriber
GET
https://api.sparkloop.app/v2/campaigns/:campaign_uuid/subscribers/:uuid
Returns a single subscriber by email address or UUID
Path Parameters
Name | Type | Description |
---|---|---|
uuid* | string | Subscriber's UUID or email address |
campaign_uuid* | string | Referral campaign UUID, e.g. MF9a78983d1c. |
Query Parameters
Name | Type | Description |
---|---|---|
expand | String | If you pass "campaigns" the response will include referral_programs data |
Get referrals for a subscriber
GET
https://api.sparkloop.app/v2/campaigns/:campaign_uuid/subscribers/:uuid/referrals
Get the referrals of a specific subscriber.
Subscribers are ordered descendingly by created_at, meaning the first page shows the latest subscribers.
Path Parameters
Name | Type | Description |
---|---|---|
uuid* | String | Subscriber's UUID or email address |
campaign_uuid* | String | Referral campaign UUID, e.g. MF9a78983d1c. |
Query Parameters
Name | Type | Description |
---|---|---|
per_page | integer | Number of subscribers returned in a single request. Default is 50, max is 200 |
page | integer | The page you want to get. Default is 1 |
expand | String | If you pass "campaigns" the response will include referral_programs data |
Last updated