Campaign Memberships
Campaign Memberships handle the relationship between subscribers and referral programs. For example, to add a subscriber to a referral program you must create a Campaign Membership relationship.
Create a campaign membership
POST
https://api.sparkloop.app/v2/campaigns/:campaign_uuid/campaign_memberships
Use to endpoint to add a subscriber to a referral program
Path Parameters
Name | Type | Description |
---|---|---|
:campaign_uuid* | String | Referral campaign UUID, e.g. MF9a78983d1c. |
Request Body
Name | Type | Description |
---|---|---|
subscriber_uuid* | string | Subscriber's UUID or email address |
Delete a campaign membership.
DELETE
https://api.sparkloop.app/v2/campaigns/:campaign_uuid/campaign_memberships/:uuid
Use this endpoint to remove a subscriber from a campaign.
Path Parameters
Name | Type | Description |
---|---|---|
:campaign_uuid* | string | Subscriber's Referral campaign UUID, e.g. MF9a78983d1c.UUID or email address |
:uuid* | String | Membership's UUID. |
Last updated