SparkLoop
  • API v2
    • Endpoints
      • Subscribers
        • Events
      • Referral Campaigns
        • Campaign Memberships
        • Subscribers
      • Partner Profile
        • Recommendations
        • Payouts
      • Publications
      • Upscribe
        • Recommendations
      • Partner Programs
      • Partner Network
        • Publications
        • Partner Programs
      • Webhooks
    • Schemas
      • Partner Profile Object
      • Partner Program Object
      • Publication Object
      • Subscriber Object
      • Campaign Object
      • Upscribe Object
      • Recommendation Object
    • Guides
      • How to use Upscribe via API
  • API v1
    • Campaigns
    • Subscribers
    • Events
    • Webhooks
  • Webhooks
  • Changelog
Powered by GitBook
On this page
  • Get Campaigns
  • Get Campaign
  • Update Campaign

Was this helpful?

  1. API v2
  2. Endpoints

Referral Campaigns

Endpoints that allow you to work with your referral campaigns.

Get Campaigns

GET https://api.sparkloop.app/v2/campaigns

Returns all of your campaigns. At the moment you're only allowed to have one campaign per Sparkloop account.

{ 
  "campaigns": [
    <Campaign Object>,
    <Campaign Object>,
    <Campaign Object>
  ]
}
{ "error": "API key is missing!" }
{ "error": "User not found!" }

Get Campaign

GET https://api.sparkloop.app/v2/campaigns/:identifier

Returns a campaign.

Path Parameters

Name
Type
Description

identifier*

string

Campaign's UUID, for example MF9a78983d1c

Headers

Name
Type
Description

X-Api-Key*

string

API key

{ 
  "campaign": <Campaign Object>
}
{ "error": "API key is missing!" }
{ "error": "User not found!" }
{ "error": "Campaign MF9a78983d1c not found!"}

Update Campaign

PUT https://api.sparkloop.app/v2/campaigns/:identifier

Updates the campaign

Path Parameters

Name
Type
Description

identifier*

string

Campaign's UUID, for example MF9a78983d1c

Headers

Name
Type
Description

X-Api-Key*

string

API key

Request Body

Name
Type
Description

name

string

Campaign's name

{
  "campaign": <Campaign Object>
}
{ "error": "API key is missing!" }
{ "error": "User not found!" }
{ "error": "Campaign MF9a78983d1c not found!"}
PreviousEventsNextCampaign Memberships

Last updated 8 months ago

Was this helpful?