Skip to content

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

KlaviyoKlaviyoDevelopers
v2026-10-15

Create Campaign

POSThttps://a.klaviyo.com/api/campaigns

Create a campaign with inline audiences, messages, and variations.

Revision header
revision: 2026-10-15required
Scopes
campaigns:write
Rate limits
Burst: 10/sSteady: 150/m

Query parameters

  • fields[campaign]#string[]

    For more information please visit API overview

    Show 15 allowed values
    • created_at
    • definition
    • definition.archived
    • definition.builder
    • definition.color
    • definition.description
    • definition.name
    • definition.send_settings
    • definition.send_settings.exit_condition_conversion_metric_id
    • definition.send_settings.exit_condition_enabled
    • definition.send_settings.send_passed_rltz_immediately
    • definition.send_settings.send_strategy
    • definition.send_settings.send_timezone
    • id
    • updated_at

Headers

  • revision#stringrequired

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

    2026-10-15

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • campaign
    • attributes#objectrequired
      Show 3 fields
      • definition#objectrequired
        Show 6 fields
        • name#stringnullable

          The campaign name

        • builder#stringnullable

          Builder type: canvas or wizard

          Example: canvas

        • archived#booleannullable

          Whether the campaign has been archived

        • color#stringnullable

          Campaign display color as a hex string (e.g. 'ff5733')

        • description#stringnullable

          A short description of the campaign

        • send_settings#object
          Show 5 fields
          • send_timezone#stringnullable

            Timezone for send scheduling (IANA format). Must be 'UTC' when send_strategy is 'timezone', because each recipient's local timezone is used at send time.

          • send_strategy#stringnullable

            Send strategy type. Writable values are 'timezone' and 'simple'; 'simple' requires send_timezone.

            Show 10 allowed values
            • content_variation
            • content_variation_local_timezone
            • personalized_send_time_optimization
            • send_time_optimization
            • simple
            • throttled
            • timezone
            • variation
            • variation_per_second_throttled
            • variation_send_time
          • send_passed_rltz_immediately#booleannullable

            Send to past-timezone recipients immediately

          • exit_condition_enabled#booleannullable

            Whether exit conditions are enabled for this campaign

          • exit_condition_conversion_metric_id#stringnullable

            The conversion metric ID used for exit conditions

      • messages#object[]nullable

        Messages to create on this campaign. Each references an audience via audience_temporary_id.

        Show 6 fields
        • audience_temporary_id#stringrequired

          Must match a temporary_id in the attributes.audiences array.

        • name#stringnullable

          Message display name

        • is_add_utm#booleannullable

          Whether to add UTM parameters to links in this message

        • tracking_params#oneOf[]nullable

          Custom UTM tracking parameters for this message. Each entry is a static or dynamic parameter. Requires at least one variation.

          One of:

          1. Option 1: StaticMessageTrackingParam
            • type#string
              Allowed values:
              • static

              Default: static

              Example: static

            • name#stringrequired
            • value#stringrequired
          2. Option 2: DynamicMessageTrackingParam
            • type#string
              Allowed values:
              • dynamic

              Default: dynamic

              Example: dynamic

            • name#stringrequired
            • value#stringrequired
        • throttling_type#stringnullable

          Smart sending throttling configuration for this message

          Allowed values:
          • FOR_CAMPAIGNS
          • FOR_CAMPAIGNS_AND_FLOWS
          • FOR_FLOWS
          • NONE
        • variations#object[]nullable

          Inline variations for this message. If omitted, the message has no variation; add one with the create campaign variation endpoint.

          Show 1 field
          • definition#objectrequired
            Show 2 fields
            • name#stringnullable

              The name of the variation

            • details#oneOfnullable

              The channel-specific content details for this variation

              One of:

              1. Option 1: EmailChannelDetails
                • channel#string
                  Allowed values:
                  • email

                  Default: email

                  Example: email

                • template_id#stringnullable
                • from_label#string

                  Default:

                • from_email#string

                  Default:

                • reply_to_email#string

                  Default:

                • cc_email#string

                  Default:

                • bcc_email#string

                  Default:

                • subject#string

                  Default:

                • preview_text#string

                  Default:

              2. Option 2: SMSChannelDetails
                • channel#string
                  Allowed values:
                  • sms

                  Default: sms

                  Example: sms

                • template_id#stringnullable
                • cost#numbernullable

                  Not allowed on create.

                • mms_static_image_asset_id#integernullable
                • include_contact_card#booleannullable
                • body#string

                  Default:

                • add_org_prefix#booleannullable
                • add_opt_out_language#booleannullable
                • mms_dynamic_image_template#stringnullable
                • text_message_type#string

                  A sms message variation's text message type.

                  Values match the Django OmniSMSTextMessageType (MESSAGE_FORMAT_*) constants.

                  Allowed values:
                  • MMS
                  • RCS
                  • SMS

                  Default: SMS

                  Example: SMS

                • message_hierarchy#oneOf[]nullable

                  One of:

                  1. Option 1: MessageHierarchyRcsItem
                    • message#string

                      The plain text message content. Often empty for RCS when rich_content is used.

                      Default:

                    • message_format#string

                      The format of this message (always 'RCS' for RCS entries).

                      Allowed values:
                      • RCS

                      Default: RCS

                      Example: RCS

                    • rich_content#object
                      Show 3 fields
                      • cards#object[]nullable

                        List of cards in this rich content. At most 10.

                        Show 7 fields
                        • id#stringrequired

                          Unique identifier for this card.

                          Example: 44214e8f-a2fb-43b1-a8e1-1170715ffcfa

                        • title#stringnullable

                          Optional title for the card. 200 characters is the rendered-length budget; the stored value may be longer because it is template-evaluated before it reaches the carrier.

                          Example: Special Offer

                        • text#stringnullable

                          The text content/description of the card. 2000 characters is the rendered-length budget; the stored value may be longer because it is template-evaluated before it reaches the carrier.

                          Example: Check out our new collection!

                        • extra#objectnullable

                          Additional card-specific metadata (e.g., product info). Optional.

                        • image#oneOfnullable

                          Optional image for this card.

                          One of:

                          1. Option 1: ImageAsset
                            • id#integerrequired

                              The unique identifier for this image asset. Not allowed on update.

                            • file_path#stringrequired

                              The file path of the image in Klaviyo's storage.

                              Example: images/aa1ee5c1-039e-4d20-9e98-345755214556.jpeg

                            • name#stringrequired

                              The human-readable name of the image.

                              Example: product-image

                            • format#stringrequired

                              The image file format.

                              Allowed values:
                              • gif
                              • jpeg
                              • jpg
                              • png
                              • webp
                            • file_size#integerrequired

                              The size of the image file in bytes.

                            • updated#string<date-time>required

                              Timestamp when the image was last updated.

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

                            • origin#stringnullable

                              The origin/source of the image (e.g., UI, API, AI, etc.).

                              Show 22 allowed values
                              • ADOPTION_SMS_FORM_FROM_EMAIL_FORM
                              • ADOPTION_SMS_MULTI_STEP_FORM_FROM_EMAIL_FORM
                              • AI
                              • API
                              • APPLICATION
                              • CLONED
                              • COMPOSER
                              • COMPOSER_AI_EDITED
                              • COMPOSER_AI_GENERATED
                              • COMPOSER_USED_IN_KLAVIYO_OBJECT
                              • COMPOSER_USER_UPLOADED
                              • COMPOSER_WEB_SCRAPED
                              • INTEGRATION
                              • KLAVIYO
                              • KVYO_GROW
                              • LIBRARY
                              • MARKETING_AGENT
                              • SANDBOX
                              • SOCIAL_INSTAGRAM
                              • SOCIAL_INSTAGRAM_OVERLAID
                              • UI
                              • WEB_SCRAPE
                            • url#stringrequired

                              The full URL to access the image.

                              Example: https://d3k81ch9hvuctc.cloudfront.net/company/RyGRiN/images/aa1ee5c1-039e-4d20-9e98-345755214556.jpeg

                            • image_type#stringrequired

                              The type of image (static or dynamic).

                              Allowed values:
                              • dynamic
                              • static
                            • l10n_key#stringnullable

                              Localization key for this image asset, if applicable.

                              Example: sms::01KAPBZTQBAJFD5RG9NYXBWHMR::mms_static_image_asset_id

                          2. Option 2: SlimImageReference
                            • static_image_asset_id#integernullable

                              ID of the static image asset when the card uses a library image.

                            • dynamic_image_template#stringnullable

                              Dynamic image template (e.g. Django tags) for the card image.

                            • rendered_asset_url#stringnullable

                              Pre-rendered image URL when available.

                        • video#oneOfnullable

                          Optional video for this card. May be a hydrated MediaAsset or a reference-style payload (e.g. static_asset_id), matching MMS MessageHierarchySmsItem.media behavior.

                          One of:

                          1. Option 1: MediaAsset
                            • id#stringrequired

                              The unique identifier for this media asset. Not allowed on update.

                            • company_id#stringrequired

                              The company ID that owns this media.

                              Example: RyGRiN

                            • url#stringrequired

                              The full URL to access the media.

                              Example: https://d3k81ch9hvuctc.cloudfront.net/company/RyGRiN/videos/01KG5BPQBSY8F12ZWTGYHPPRXC.mp4

                            • media_type#string

                              The media type (e.g., 'video' for video assets).

                              Default: video

                              Example: video

                            • name#stringrequired

                              The human-readable name of the media.

                              Example: demo video.1

                            • file_size#integerrequired

                              The size of the media file in bytes.

                            • thumbnail_url#stringnullable

                              Optional thumbnail URL for video previews in RCS cards.

                            • l10n_key#stringnullable

                              Localization key for this media asset, if applicable.

                          2. Option 2: MediaAssetReference
                            • static_asset_id#stringnullable

                              Reference to a static media asset.

                            • dynamic_template#stringnullable

                              Dynamic template (e.g. Django tags) resolving to the media URL.

                            • thumbnail#SlimImageReference

                              Same fields as the first SlimImageReference above.

                        • buttons#object[]nullable

                          Optional action buttons for this card. At most 4.

                          Show 5 fields
                          • id#stringrequired

                            Unique identifier for this suggestion/button.

                            Example: quick-action-1767105662671

                          • text#stringrequired

                            The display text for the suggestion button. 25 characters is the rendered-length budget; the stored value may be longer because it is template-evaluated before it reaches the carrier.

                            Example: Shop Now

                          • type#stringrequired

                            The type of action this suggestion performs.

                            Allowed values:
                            • OPEN_URL
                            • REPLY
                          • url#stringnullable

                            The URL to open (required for OPEN_URL type).

                            Example: https://www.example.com/shop

                          • open_mode#stringnullable

                            How the URL opens on the device for OPEN_URL suggestions (browser vs webview size). Emitted to Infobip as openIn. Absent means browser.

                            Allowed values:
                            • BROWSER
                            • WEBVIEW_FULL
                            • WEBVIEW_HALF
                            • WEBVIEW_TALL

                            Example: WEBVIEW_FULL

                      • suggestions#RCSSuggestion[]nullable

                        List of suggestion buttons for user interaction. At most 11.

                        Same fields as the first RCSSuggestion above.

                      • file#MediaAssetReference

                        Same fields as the first MediaAssetReference above.

                    • extra#objectnullable

                      Additional metadata for RCS messages. Legacy placement. This is typically used in rich_content.cards.extra.

                    • image#SlimImageReference

                      Same fields as the first SlimImageReference above.

                  2. Option 2: MessageHierarchySmsItem
                    • message#stringrequired

                      The plain text SMS message content.

                      Example: Check out our latest deals: https://example.com

                    • message_format#string

                      The format of this message (always 'SMS' for SMS entries).

                      Allowed values:
                      • SMS

                      Default: SMS

                      Example: SMS

                    • extra#objectnullable

                      Additional metadata for SMS messages (e.g., should_use_same_content flag).

                    • image#oneOfnullable

                      Image reference for MMS messages. Mutually exclusive with media.

                      One of:

                      1. Option 1: StaticSMSImage
                        • dynamic#booleannullable
                          Allowed values:
                          • false

                          Default: false

                        • static_image_asset_id#integerrequired

                          The ID of the static image asset to include.

                      2. Option 2: DynamicSMSImage
                        • dynamic#boolean
                          Allowed values:
                          • true

                          Default: true

                          Example: true

                        • dynamic_image_template#stringrequired

                          Dynamic image template URL (e.g., {{product.image_url}}).

                    • media#oneOfnullable

                      Video media for MMS messages as either a hydrated MediaAsset or a reference-style payload. Mutually exclusive with image.

                      One of:

                      1. Option 1: MediaAsset

                      2. Option 2: MediaAssetReference

              3. Option 3: PushChannelDetails
                • channel#string
                  Allowed values:
                  • push

                  Default: push

                  Example: push

                • title#string

                  Default:

                • body#string

                  Default:

                • badge#boolean

                  Default: false

                • badge_config#string

                  A push message variation's badge config.

                  Allowed values:
                  • increment-one
                  • set-count
                  • set-property

                  Default: increment-one

                  Example: increment-one

                • badge_value#string

                  Default: 1

                  Example: 1

                • sound_file_name#string

                  Default:

                • static_asset_id#integernullable
                • sound#boolean

                  Default: false

                • open_action#integer

                  Default: 0

                • dynamic_media_template#string

                  Default:

                • kv_pairs#objectnullable
                • push_type#string

                  A push message variation's push type.

                  Allowed values:
                  • silent
                  • standard

                  Default: standard

                  Example: standard

                • web_url#stringnullable
                • content_available#booleannullable
                • send_to_inbox#booleannullable
                • mutable_content#booleannullable
                • video_asset_id#stringnullable
                • action_buttons#object[]nullable
                  Show 7 fields
                  • label#stringrequired
                  • action_type#stringrequired

                    The action type for a push notification action button.

                    Allowed values:
                    • deep_link
                    • dismiss
                    • open_app
                    • open_url
                  • url#stringnullable
                  • icon#stringnullable
                  • custom_action_id#stringnullable
                • push_platform_target#integernullable
                • send_to_primary#booleannullable
              4. Option 4: WhatsappChannelDetails
                • channel#string
                  Allowed values:
                  • whatsapp

                  Default: whatsapp

                  Example: whatsapp

                • template_id#stringnullable
      • audiences#object[]nullable

        Audiences to create on this campaign. At least one is required. Each audience has a temporary_id that messages reference through audience_temporary_id.

        Show 4 fields
        • temporary_id#stringrequired

          Client-supplied temporary ID. Messages reference this value via audience_temporary_id to establish the audience-message relationship.

          Example: aud_01HTXYZ

        • name#stringnullable

          The name of the audience

          Example: My Audience

        • included#string[]nullable

          The list of included group IDs

        • excluded#string[]nullable

          The list of excluded group IDs

    • relationships#object
      Show 3 fields
      • campaign-audiences#object
        Show 1 field
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • campaign-audience
          • id#stringrequired

            The audiences associated with the campaign

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

            The messages associated with the campaign

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

            The tags associated with the campaign

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 3 fields
      • created_at#string<date-time>nullable

        The datetime when the campaign was created

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

      • updated_at#string<date-time>nullable

        The datetime when the campaign was last updated

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

      • definition#objectrequired
        Show 6 fields
        • name#stringnullable

          The campaign name

        • builder#stringnullable

          Builder type: canvas or wizard

          Example: canvas

        • archived#booleannullable

          Whether the campaign has been archived

        • color#stringnullable

          Campaign display color as a hex string (e.g. 'ff5733')

        • description#stringnullable

          A short description of the campaign

        • send_settings#object
          Show 5 fields
          • send_timezone#stringnullable

            Timezone for send scheduling (IANA format). Must be 'UTC' when send_strategy is 'timezone', because each recipient's local timezone is used at send time.

          • send_strategy#stringnullable

            Send strategy type. Writable values are 'timezone' and 'simple'; 'simple' requires send_timezone.

            Show 10 allowed values
            • content_variation
            • content_variation_local_timezone
            • personalized_send_time_optimization
            • send_time_optimization
            • simple
            • throttled
            • timezone
            • variation
            • variation_per_second_throttled
            • variation_send_time
          • send_passed_rltz_immediately#booleannullable

            Send to past-timezone recipients immediately

          • exit_condition_enabled#booleannullable

            Whether exit conditions are enabled for this campaign

          • exit_condition_conversion_metric_id#stringnullable

            The conversion metric ID used for exit conditions

    • relationships#object
      Show 3 fields
      • campaign-audiences#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • campaign-audience
          • id#stringrequired

            The audiences associated with the campaign

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

            The messages associated with the campaign

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

            The tags associated with the campaign

  • 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