Campaigns

Endpoints that allow you to work with your campaign.

Get Campaigns

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

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

Headers

NameTypeDescription

X-Api-Key*

string

API key

{ 
  "campaigns": [
    { 
      "uuid": "MF9a78983d1c",
      "name": "My cool newsletter"
    }
  ]
}

Get Campaign

GET https://api.sparkloop.app/v1/campaigns/:uuid

Returns a campaign.

Path Parameters

NameTypeDescription

uuid*

string

Campaign's UUID, for example MF9a78983d1c

Headers

NameTypeDescription

X-Api-Key*

string

API key

{ 
  "campaign": { 
    "uuid": "MF9a78983d1c",
    "name": "My cool newsletter"
  }
}

Update Campaign

PUT https://api.sparkloop.app/v1/campaigns/:uuid

Updates the campaign

Path Parameters

NameTypeDescription

uuid*

string

Campaign's UUID, for example MF9a78983d1c

Headers

NameTypeDescription

X-Api-Key*

string

API key

Request Body

NameTypeDescription

name

string

Campaign's name

{
  "campaign": {
    "uuid": "MF9a78983d1c",
    "name": "Even better campaign name!"
  }
}

Last updated