Subscribers
Get subscribers
GET
https://api.sparkloop.app/v2/campaigns/:identifier/subscribers
Subscribers are ordered in descending order by created_at, meaning the first page shows the latest subscribers.
Path Parameters
identifier*
String
Referral campaign UUID, e.g. MF9a78983d1c.
Query Parameters
type
string
Type of subscribers you want to get. Default is all, allowed values are all, referrals, advocates.
expand
String
If you pass "campaigns" the response will include referral_programs data
Get a subscriber
GET
https://api.sparkloop.app/v2/campaigns/:identifier/subscribers/:subscriber_identifier
Returns a single subscriber by email address or UUID
Path Parameters
subscriber_identifier*
string
Subscriber's UUID or email address
identifier*
string
Referral campaign UUID, e.g. MF9a78983d1c.
Query Parameters
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/:
identifier/subscribers/:subscriber_identifier/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
subscriber_identifier*
String
Subscriber's UUID or email address
identifier*
String
Referral campaign UUID, e.g. MF9a78983d1c.
Query Parameters
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