Create Campaign
POSThttps://a.klaviyo.com/api/campaigns
Creates a campaign given a set of parameters, then returns it.
- Revision header
revision: 2026-07-15required- Scopes
campaigns:write- Rate limits
- Burst:
10/sSteady:150/m
Query parameters
For more information please visit API overview
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2026-07-15
Request body
Content type: application/vnd.api+jsonrequired
Show 2 fields
Show 6 fields
The campaign name
The send strategy the campaign will send with. Defaults to 'Immediate' send strategy.
Option 1:
StaticSendStrategyThe time to send at
If the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.
Option 1:
LocalStaticSendWhether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.
Determines if we should send to local recipient timezone if the given time has passed. Only applicable to local sends.
Option 2:
NonLocalStaticSendWhether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.
Option 3:
ImmediateSendStrategy
Options to use when sending a campaign
The tracking options associated with the campaign
Option 1:
CampaignsEmailTrackingOptionsWhether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.
A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.
Whether the campaign is tracking click events. If not specified, uses company defaults.
Whether the campaign is tracking open events. If not specified, uses company defaults.
Option 2:
CampaignsSMSTrackingOptionsWhether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.
A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.
Option 1:
DynamicTrackingParamEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StaticTrackingParamEnter valid JSON. Until you do, the example request uses the example value.
The message(s) associated with the campaign
Show 1 field
Show 3 fields
Show 1 field
Option 1:
EmailMessageDefinitionThe label or name on the message
Show 7 fields
The subject of the message
Preview text associated with the message
The email the message should be sent from
The label associated with the from_email
Optional Reply-To email address
Optional CC email address
Optional BCC email address
Option 3:
MobilePushMessageStandardDefinitionCreateShow 4 fields
The title of the message
The message body
The dynamic image to be used in the push notification
Action buttons for the push notification (max 3, positions 0-indexed with no gaps)
Show 6 fields
The button label (max 40 characters)
The action type: open_app, deep_link, open_url, or dismiss
The display order of the button (0-indexed). If omitted, inferred from the button's order in the list.
Enter a whole number. Until you do, the example request uses the example value.
URL for deep_link or open_url action types (max 2048 characters). Used as a fallback on platforms without a more specific ios_deep_link or android_deep_link.
iOS-specific URL for deep_link or open_url action types (max 2048 characters). Overrides url on iOS.
Android-specific URL for deep_link or open_url action types (max 2048 characters). Overrides url on Android.
The key-value pairs to be sent with the push notification
Enter valid JSON. Until you do, the example request uses the example value.
Show 5 fields
Option 1:
PushOnOpenApp
Only supported on iOS.
Option 1:
MobilePushBadgeWhether to display a badge on the app icon
Badge options
Option 2:
MobilePushNoBadgeWhether to display a badge on the app icon
Only supported on iOS.
Whether to send only to the profile's primary device.
Which device platform(s) to send to: all, ios, or android.
The type of notification to send
Responses
201Success
Content type: application/vnd.api+json
Show 5 fields
The campaign ID
Show 11 fields
The campaign name
The current status of the campaign
Whether the campaign has been archived or not
Options to use when sending a campaign
The tracking options associated with the campaign
Option 1:
CampaignsEmailTrackingOptionsWhether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.
A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.
Whether the campaign is tracking click events. If not specified, uses company defaults.
Whether the campaign is tracking open events. If not specified, uses company defaults.
Option 2:
CampaignsSMSTrackingOptionsWhether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.
A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.
Option 1:
DynamicTrackingParamOption 2:
StaticTrackingParam
The send strategy the campaign will send with
Option 1:
StaticSendStrategyThe time to send at
If the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.
Option 1:
LocalStaticSendWhether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.
Determines if we should send to local recipient timezone if the given time has passed. Only applicable to local sends.
Option 2:
NonLocalStaticSendWhether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.
Option 4:
ImmediateSendStrategyOption 5:
ABTestSendStrategyOption 6:
UnsupportedSendStrategy
The datetime when the campaign was created
The datetime when the campaign was scheduled for future sending
The datetime when the campaign was last updated by a user or the system
The datetime when the campaign will be / was sent or None if not yet scheduled by a send_job.
Show 2 fields
Show 1 field
Response-level metadata
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json