get https://a.klaviyo.com/api/v1/campaigns
Returns a list of all the campaigns you've created. The campaigns are returned in reverse sorted order by the time they were created.
Response
Returns a list of all the campaigns you've created. The campaigns are returned in reverse sorted order by the time they were created.
xxxxxxxxxx
curl --request GET \
--url 'https://a.klaviyo.com/api/v1/campaigns?page=0&count=50&api_key=PRIVATE_API_KEY' \
--header 'accept: application/json'
xxxxxxxxxx
54}
{
"object": "$list",
"data": [
{
"object": "campaign",
"id": "CAMPAIGN_ID",
"name": "Campaign Name",
"subject": "Company Monthly Newsletter",
"from_email": "george.washington@klaviyo.com",
"from_name": "George Washington",
"lists": [
{
"object": "list",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"list_type": "list",
"folder": "string",
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z",
"person_count": 0
}
],
"excluded_lists": [
{
"object": "list",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"list_type": "list",
"folder": "string",
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z",
"person_count": 0
}
],