Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2026-07-15/reference/create_campaign.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/create_campaign.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-07-15

You're reading the reference for API revision 2026-07-15. The latest revision is 2026-10-15. See this page in the latest revision.

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

  • fields[campaign]#string[]

    For more information please visit API overview

    Show 26 allowed values
    • archived
    • audiences
    • audiences.excluded
    • audiences.included
    • created_at
    • id
    • name
    • scheduled_at
    • send_options
    • send_options.use_smart_sending
    • send_strategy
    • send_strategy.date
    • send_strategy.datetime
    • send_strategy.method
    • send_strategy.options
    • send_strategy.options.is_local
    • send_strategy.options.send_past_recipients_immediately
    • send_strategy.throttle_percentage
    • send_time
    • status
    • tracking_options
    • tracking_options.add_tracking_params
    • tracking_options.custom_tracking_params
    • tracking_options.is_tracking_clicks
    • tracking_options.is_tracking_opens
    • updated_at

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-07-15

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • campaign
    • attributes#objectrequired
      Show 6 fields
      • name#stringrequired

        The campaign name

        Example: My new campaign

      • audiences#objectrequired
        Show 2 fields
        • included#string[]required

          A list of included audiences

        • excluded#string[]nullable

          An optional list of excluded audiences

      • send_strategy#oneOfnullable

        The send strategy the campaign will send with. Defaults to 'Immediate' send strategy.

        One of:

        1. Option 1: StaticSendStrategy
          • method#stringrequired
            Allowed values:
            • static
          • datetime#string<date-time>required

            The time to send at

            Example: 2022-11-08T00:00:00+00:00

          • options#oneOfnullable

            If the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.

            One of:

            1. Option 1: LocalStaticSend
              • is_local#booleanrequired

                Whether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.

                Allowed values:
                • true
              • send_past_recipients_immediately#boolean

                Determines if we should send to local recipient timezone if the given time has passed. Only applicable to local sends.

                Default: false

            2. Option 2: NonLocalStaticSend
              • is_local#booleanrequired

                Whether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.

                Allowed values:
                • false
        2. Option 2: ThrottledSendStrategy
          • method#stringrequired
            Allowed values:
            • throttled
          • datetime#string<date-time>required

            The time to send at

          • throttle_percentage#integerrequired

            The percentage of recipients per hour to send to.

            Show 12 allowed values
            • 1
            • 2
            • 5
            • 10
            • 11
            • 13
            • 14
            • 17
            • 20
            • 25
            • 33
            • 50
        3. Option 3: ImmediateSendStrategy
          • method#stringrequired
            Allowed values:
            • immediate
        4. Option 4: SmartSendTimeStrategy
          • method#stringrequired
            Allowed values:
            • smart_send_time
          • date#string<date>required

            The day to send on

      • send_options#oneOfnullable

        Options to use when sending a campaign

        One of:

        1. Option 1: EmailSendOptions
          • use_smart_sending#booleannullable

            Use smart sending.

            Default: true

            Example: true

        2. Option 2: SMSSendOptions
          • use_smart_sending#booleannullable

            Use smart sending.

            Default: true

            Example: true

        3. Option 3: PushSendOptions
          • use_smart_sending#booleannullable

            Use smart sending.

            Default: true

            Example: true

      • tracking_options#oneOfnullable

        The tracking options associated with the campaign

        One of:

        1. Option 1: CampaignsEmailTrackingOptions
          • add_tracking_params#booleannullable

            Whether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.

          • custom_tracking_params#oneOf[]nullable

            A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.

            One of:

            1. Option 1: DynamicTrackingParam
              • type#stringrequired

                The type of the tracking parameter

                Allowed values:
                • dynamic
              • value#stringrequired

                The value of the tracking parameter

                Show 13 allowed values
                • campaign_id
                • campaign_name
                • campaign_name_id
                • campaign_name_send_day
                • email_subject
                • group_id
                • group_name
                • group_name_id
                • link_alt_text
                • message_type
                • profile_external_id
                • profile_id
                • variation_name
              • name#stringrequired

                Name of the tracking param

                Example: utm_medium

            2. Option 2: StaticTrackingParam
              • type#stringrequired

                The type of the tracking parameter

                Allowed values:
                • static
              • value#stringrequired

                The value of the tracking parameter

              • name#stringrequired

                Name of the tracking param

                Example: utm_medium

          • is_tracking_clicks#booleannullable

            Whether the campaign is tracking click events. If not specified, uses company defaults.

          • is_tracking_opens#booleannullable

            Whether the campaign is tracking open events. If not specified, uses company defaults.

        2. Option 2: CampaignsSMSTrackingOptions
          • add_tracking_params#booleannullable

            Whether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.

          • custom_tracking_params#oneOf[]nullable

            A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.

            One of:

            1. Option 1: DynamicTrackingParam

            2. Option 2: StaticTrackingParam

      • campaign-messages#objectrequired

        The message(s) associated with the campaign

        Show 1 field
        • data#object[]required
          Show 3 fields
          • type#stringrequired
            Allowed values:
            • campaign-message
          • attributes#objectrequired
            Show 1 field
            • definition#oneOfrequired

              One of:

              1. Option 1: EmailMessageDefinition
                • channel#stringrequired
                  Allowed values:
                  • email
                • label#stringnullable

                  The label or name on the message

                  Example: My message name

                • content#object
                  Show 7 fields
                  • subject#stringnullable

                    The subject of the message

                    Example: Buy our product!

                  • preview_text#stringnullable

                    Preview text associated with the message

                    Example: My preview text

                  • from_email#stringnullable

                    The email the message should be sent from

                    Example: store@my-company.com

                  • from_label#stringnullable

                    The label associated with the from_email

                    Example: My Company

                  • reply_to_email#stringnullable

                    Optional Reply-To email address

                    Example: reply-to@my-company.com

                  • cc_email#stringnullable

                    Optional CC email address

                    Example: cc@my-company.com

                  • bcc_email#stringnullable

                    Optional BCC email address

                    Example: bcc@my-company.com

              2. Option 2: SMSMessageDefinitionCreate
                • channel#stringrequired
                  Allowed values:
                  • sms
                • content#object
                  Show 1 field
                  • body#stringnullable

                    The message body

                    Example: My preview sms

                • render_options#object
                  Show 4 fields
                  • add_org_prefix#booleannullable

                    Default: true

                    Example: true

                  • add_opt_out_language#booleannullable

                    Default: false

              3. Option 3: MobilePushMessageStandardDefinitionCreate
                • channel#stringrequired
                  Allowed values:
                  • mobile_push
                • content#objectrequired
                  Show 4 fields
                  • title#stringnullable

                    The title of the message

                  • body#stringrequired

                    The message body

                    Example: My preview push notification

                  • dynamic_image#stringnullable

                    The dynamic image to be used in the push notification

                  • action_buttons#object[]nullable

                    Action buttons for the push notification (max 3, positions 0-indexed with no gaps)

                    Show 6 fields
                    • label#stringrequired

                      The button label (max 40 characters)

                    • action_type#stringrequired

                      The action type: open_app, deep_link, open_url, or dismiss

                    • position#integernullable

                      The display order of the button (0-indexed). If omitted, inferred from the button's order in the list.

                    • url#stringnullable

                      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.

                • kv_pairs#objectnullable

                  The key-value pairs to be sent with the push notification

                • options#object
                  Show 5 fields
                  • on_open#oneOfnullable

                    One of:

                    1. Option 1: PushOnOpenApp
                      • type#stringrequired
                        Allowed values:
                        • open_app
                    2. Option 2: PushOnOpenDeepLink
                      • type#stringrequired
                        Allowed values:
                        • deep_link
                    3. Option 3: PushOnOpenWebUrl
                      • type#stringrequired
                        Allowed values:
                        • open_web_url
                      • web_url#stringnullable

                        External url to open when push notification is triggered

                  • badge#oneOfnullable

                    Only supported on iOS.

                    One of:

                    1. Option 1: MobilePushBadge
                      • display#booleanrequired

                        Whether to display a badge on the app icon

                        Allowed values:
                        • true
                      • badge_options#oneOfnullable

                        Badge options

                        One of:

                        1. Option 1: CampaignMessageIncrement
                          • badge_config#stringrequired
                            Allowed values:
                            • increment_one
                        2. Option 2: CampaignMessageStaticCount
                          • badge_config#stringrequired
                            Allowed values:
                            • set_count
                          • value#stringrequired
                        3. Option 3: CampaignMessageProperty
                          • badge_config#stringrequired
                            Allowed values:
                            • set_property
                          • set_from_property#stringrequired
                    2. Option 2: MobilePushNoBadge
                      • display#booleanrequired

                        Whether to display a badge on the app icon

                        Allowed values:
                        • false
                  • play_sound#booleannullable

                    Only supported on iOS.

                    Default: false

                  • send_to_primary#booleannullable

                    Whether to send only to the profile's primary device.

                    Default: false

                  • push_platform_target#stringnullable

                    Which device platform(s) to send to: all, ios, or android.

                    Default: all

                    Example: all

                • notification_type#string

                  The type of notification to send

                  Allowed values:
                  • standard

                  Default: standard

                  Example: standard

              4. Option 4: MobilePushMessageSilentDefinitionCreate
                • channel#stringrequired
                  Allowed values:
                  • mobile_push
                • kv_pairs#objectnullable

                  The key-value pairs to be sent with the push notification

                • notification_type#string

                  The type of notification to send

                  Allowed values:
                  • silent

                  Default: silent

                  Example: silent

          • relationships#object
            Show 1 field
            • image#object
              Show 1 field
              • data#object
                Show 2 fields
                • type#stringrequired
                  Allowed values:
                  • image
                • id#stringrequired

                  The associated image for mobile_push or SMS messages

Responses

201Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 5 fields
    • type#stringrequired
      Allowed values:
      • campaign
    • id#stringrequired

      The campaign ID

    • attributes#objectrequired
      Show 11 fields
      • name#stringrequired

        The campaign name

      • status#stringrequired

        The current status of the campaign

        Show 18 allowed values
        • Adding Recipients
        • Cancelled
        • Cancelled: Account Disabled
        • Cancelled: Billing Limit
        • Cancelled: Internal Error
        • Cancelled: Misconfigured
        • Cancelled: No Recipients
        • Cancelled: Smart Sending
        • Draft
        • Preparing to schedule
        • Preparing to send
        • Queued without Recipients
        • Scheduled
        • Sending
        • Sending Segments
        • Sent
        • Unknown
        • Variations Sent
      • archived#booleanrequired

        Whether the campaign has been archived or not

      • audiences#objectrequired
        Show 2 fields
        • included#string[]required

          A list of included audiences

        • excluded#string[]nullable

          An optional list of excluded audiences

      • send_options#oneOfrequired

        Options to use when sending a campaign

        One of:

        1. Option 1: EmailSendOptions
          • use_smart_sending#booleannullable

            Use smart sending.

            Default: true

            Example: true

        2. Option 2: SMSSendOptions
          • use_smart_sending#booleannullable

            Use smart sending.

            Default: true

            Example: true

        3. Option 3: PushSendOptions
          • use_smart_sending#booleannullable

            Use smart sending.

            Default: true

            Example: true

      • tracking_options#oneOfnullable

        The tracking options associated with the campaign

        One of:

        1. Option 1: CampaignsEmailTrackingOptions
          • add_tracking_params#booleannullable

            Whether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.

          • custom_tracking_params#oneOf[]nullable

            A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.

            One of:

            1. Option 1: DynamicTrackingParam
              • type#stringrequired

                The type of the tracking parameter

                Allowed values:
                • dynamic
              • value#stringrequired

                The value of the tracking parameter

                Show 13 allowed values
                • campaign_id
                • campaign_name
                • campaign_name_id
                • campaign_name_send_day
                • email_subject
                • group_id
                • group_name
                • group_name_id
                • link_alt_text
                • message_type
                • profile_external_id
                • profile_id
                • variation_name
              • name#stringrequired

                Name of the tracking param

                Example: utm_medium

            2. Option 2: StaticTrackingParam
              • type#stringrequired

                The type of the tracking parameter

                Allowed values:
                • static
              • value#stringrequired

                The value of the tracking parameter

              • name#stringrequired

                Name of the tracking param

                Example: utm_medium

          • is_tracking_clicks#booleannullable

            Whether the campaign is tracking click events. If not specified, uses company defaults.

          • is_tracking_opens#booleannullable

            Whether the campaign is tracking open events. If not specified, uses company defaults.

        2. Option 2: CampaignsSMSTrackingOptions
          • add_tracking_params#booleannullable

            Whether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.

          • custom_tracking_params#oneOf[]nullable

            A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.

            One of:

            1. Option 1: DynamicTrackingParam

            2. Option 2: StaticTrackingParam

      • send_strategy#oneOfrequired

        The send strategy the campaign will send with

        One of:

        1. Option 1: StaticSendStrategy
          • method#stringrequired
            Allowed values:
            • static
          • datetime#string<date-time>required

            The time to send at

            Example: 2022-11-08T00:00:00+00:00

          • options#oneOfnullable

            If the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.

            One of:

            1. Option 1: LocalStaticSend
              • is_local#booleanrequired

                Whether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.

                Allowed values:
                • true
              • send_past_recipients_immediately#boolean

                Determines if we should send to local recipient timezone if the given time has passed. Only applicable to local sends.

                Default: false

            2. Option 2: NonLocalStaticSend
              • is_local#booleanrequired

                Whether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.

                Allowed values:
                • false
        2. Option 2: SmartSendTimeStrategy
          • method#stringrequired
            Allowed values:
            • smart_send_time
          • date#string<date>required

            The day to send on

        3. Option 3: ThrottledSendStrategy
          • method#stringrequired
            Allowed values:
            • throttled
          • datetime#string<date-time>required

            The time to send at

          • throttle_percentage#integerrequired

            The percentage of recipients per hour to send to.

            Show 12 allowed values
            • 1
            • 2
            • 5
            • 10
            • 11
            • 13
            • 14
            • 17
            • 20
            • 25
            • 33
            • 50
        4. Option 4: ImmediateSendStrategy
          • method#stringrequired
            Allowed values:
            • immediate
        5. Option 5: ABTestSendStrategy
          • method#stringrequired
            Allowed values:
            • ab_test_campaign
        6. Option 6: UnsupportedSendStrategy
          • method#stringrequired
            Allowed values:
            • unsupported
      • created_at#string<date-time>required

        The datetime when the campaign was created

        Example: 2022-11-08T00:00:00+00:00

      • scheduled_at#string<date-time>nullable

        The datetime when the campaign was scheduled for future sending

        Example: 2022-11-08T00:00:00+00:00

      • updated_at#string<date-time>required

        The datetime when the campaign was last updated by a user or the system

        Example: 2022-11-08T00:00:00+00:00

      • send_time#string<date-time>nullable

        The datetime when the campaign will be / was sent or None if not yet scheduled by a send_job.

        Example: 2022-11-08T00:00:00+00:00

    • relationships#object
      Show 2 fields
      • campaign-messages#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • campaign-message
          • id#stringrequired

            The message(s) associated with the campaign

      • tags#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • tag
          • id#stringrequired
  • meta#object

    Response-level metadata

    Show 1 field
    • agent_hints#object

      Optional hints emitted by the API for agent callers

      Show 1 field
      • next_steps#string[]

        Suggested follow-up actions for agents to take after this response

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string