Visitar URL original
Get Campaign Message | Klaviyo API ReferenceSkip to content

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

KlaviyoKlaviyoDevelopers

GEThttps://a.klaviyo.com/api/campaign-messages/{id}

Get a campaign message by ID.

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

Path parameters

  • id#stringrequired

    The ID of the message

Query parameters

  • fields[campaign-message]#string[]

    For more information please visit API overview

    Show 23 allowed values
    • created
    • definition
    • definition.ab_test
    • definition.ab_test.winner_metric
    • definition.ab_test.winner_percentage
    • definition.ab_test.winner_wait_hours
    • definition.name
    • definition.send_options
    • definition.send_options.is_ignoring_unsubscribes
    • definition.send_options.recipient_percentage
    • definition.send_options.send_strategy
    • definition.send_options.send_time
    • definition.send_options.send_times
    • definition.send_options.throttle_unit
    • definition.send_options.throttling_type
    • definition.status
    • definition.tracking_options
    • definition.tracking_options.is_add_utm
    • definition.tracking_options.is_tracking_clicks
    • definition.tracking_options.is_tracking_opens
    • definition.tracking_options.tracking_params
    • id
    • updated
  • fields[campaign-variation]#string[]

    For more information please visit API overview

    Show 47 allowed values
    • created
    • definition
    • definition.details
    • definition.details.action_buttons
    • definition.details.add_info_link
    • definition.details.add_opt_out_language
    • definition.details.add_org_prefix
    • definition.details.android_deep_link
    • definition.details.badge
    • definition.details.badge_config
    • definition.details.badge_value
    • definition.details.bcc_email
    • definition.details.body
    • definition.details.cc_email
    • definition.details.channel
    • definition.details.content_available
    • definition.details.cost
    • definition.details.dynamic_media_template
    • definition.details.from_email
    • definition.details.from_label
    • definition.details.include_contact_card
    • definition.details.ios_deep_link
    • definition.details.kv_pairs
    • definition.details.message_hierarchy
    • definition.details.mms_dynamic_image_template
    • definition.details.mms_static_image_asset_id
    • definition.details.mutable_content
    • definition.details.open_action
    • definition.details.preview_text
    • definition.details.push_platform_target
    • definition.details.push_type
    • definition.details.reply_to_email
    • definition.details.send_to_inbox
    • definition.details.send_to_primary
    • definition.details.shorten_links
    • definition.details.sound
    • definition.details.sound_file_name
    • definition.details.static_asset_id
    • definition.details.subject
    • definition.details.template_id
    • definition.details.text_message_type
    • definition.details.title
    • definition.details.video_asset_id
    • definition.details.web_url
    • definition.name
    • id
    • updated
  • 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
  • include#string[]

    For more information please visit API overview

    Allowed values:
    • campaign
    • campaign-variations

Headers

  • revision#stringrequired

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

    2026-10-15

Responses

200Success

Content type: application/vnd.api+json

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

      The ID of the message

    • attributes#objectrequired
      Show 3 fields
      • created#string<date-time>required

        The datetime when this message was created

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

      • updated#string<date-time>required

        The datetime when this message was updated

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

      • definition#objectrequired
        Show 5 fields
        • name#stringnullable

          The name of the message

        • status#stringnullable

          The status of the message

          Allowed values:
          • cancelled
          • draft
          • scheduled
          • sending
          • sent
        • tracking_options#object
          Show 4 fields
          • is_add_utm#booleannullable
          • is_tracking_clicks#booleannullable
          • is_tracking_opens#booleannullable
          • tracking_params#oneOf[]nullable

            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
        • send_options#object
          Show 7 fields
          • send_time#string<date-time>nullable

            The UTC send time for this message

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

          • send_times#objectnullable

            Per-variation send times, keyed by variation ID. Populated for send-time optimization and AB send time test strategies.

          • send_strategy#stringnullable

            The scheduling strategy for this message.

            Show 9 allowed values
            • ab_send_time_test
            • content_variation
            • content_variation_local_timezone
            • local_timezone
            • personalized_send_time_optimization
            • send_time_optimization
            • static
            • throttled
            • variation_per_second_throttled
          • recipient_percentage#integernullable

            The percentage of recipients to send this message to

          • throttling_type#stringnullable

            The throttling type for this message

            Allowed values:
            • none
            • throttle-for-campaigns
            • throttle-for-campaigns-and-flows
            • throttle-for-flows
          • throttle_unit#stringnullable

            The time unit each batch of recipients is sent over for throttled sends.

            Allowed values:
            • hour
            • minute
          • is_ignoring_unsubscribes#booleannullable

            Whether to ignore unsubscribes for this message

        • ab_test#object
          Show 3 fields
          • winner_metric#stringnullable

            The metric used to pick the winning variation.

            Allowed values:
            • clicks_unique
            • opens_unique
            • placed_orders_unique
          • winner_percentage#integernullable

            The percentage of the audience that receives the winning variation. The remainder is split evenly across the variations under test.

          • winner_wait_hours#integernullable

            How long to collect results before picking a winner, in hours. New values may be at most 264 (11 days). Returned as null when no wait is set or the saved wait is outside 1-720 hours.

    • relationships#object
      Show 3 fields
      • campaign#object
        Show 2 fields
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • campaign
          • id#stringrequired

            The parent campaign

      • campaign-audience#object
        Show 2 fields
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • campaign-audience
          • id#stringrequired

            The audience this message targets

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

            The content variations for this message

  • included#oneOf[]

    One of:

    1. Option 1: OmniCampaignResponseObjectResource
      • 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

    2. Option 2: VariationResponseObjectResource
      • type#stringrequired
        Allowed values:
        • campaign-variation
      • id#stringrequired

        The ID of the variation

        Example: 925e385b52fb405715f3616c337cc65c

      • attributes#objectrequired
        Show 3 fields
        • created#string<date-time>required

          The datetime when this variation was created

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

        • updated#string<date-time>required

          The datetime when this variation was updated

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

        • 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
      • relationships#object
        Show 3 fields
        • campaign-message#object
          Show 2 fields
          • data#object
            Show 2 fields
            • type#stringrequired
              Allowed values:
              • campaign-message
            • id#stringrequired

              Related Campaign Message

        • translation#object
          Show 2 fields
          • data#object
            Show 2 fields
            • type#stringrequired
              Allowed values:
              • translation
            • id#stringrequired

              Related Translation

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

              The associated static image for mobile push variations

  • 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