post https://a.klaviyo.com/api/campaigns/
Creates a campaign given a set of parameters, then returns it.
Rate limits:
Burst: 10/s
Steady: 150/m
Scopes:
campaigns:write
Responses
Creates a campaign given a set of parameters, then returns it.
Rate limits:
Burst: 10/s
Steady: 150/m
Scopes:
campaigns:write
xxxxxxxxxx
30curl --request POST \
--url https://a.klaviyo.com/api/campaigns/ \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'revision: 2024-02-15' \
--data '
{
"data": {
"type": "campaign",
"attributes": {
"name": "My new campaign",
"send_strategy": {
"method": "static",
"options_static": {
"datetime": "2022-11-08T00:00:00+00:00"
}
},
"tracking_options": {
"utm_params": [
{
"name": "utm_medium",
"value": "campaign"
}
xxxxxxxxxx
81}
{
"data": {
"type": "campaign",
"id": "string",
"attributes": {
"name": "string",
"status": "string",
"archived": true,
"audiences": {
"included": [
"Y6nRLr"
],
"excluded": [
"UTd5ui"
]
},
"send_options": {
"use_smart_sending": true
},
"tracking_options": {
"is_add_utm": true,
"utm_params": [