Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_message_campaign.md. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2023-10-15

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

Get Campaign Message Campaign

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

Return the related campaign

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

Path parameters

  • id#stringrequired

Query parameters

  • fields[campaign-message]#string[]

    For more information please visit API overview

    Show 11 allowed values
    • label
    • channel
    • content
    • send_times
    • render_options
    • render_options.shorten_links
    • render_options.add_org_prefix
    • render_options.add_info_link
    • render_options.add_opt_out_language
    • created_at
    • updated_at

Headers

  • revision#stringrequired

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

    2023-10-15

Responses

200Success

Content type: application/json

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

            The parent campaign id

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

            The associated template id

    • type#stringrequired
      Allowed values:
      • campaign-message
    • id#stringrequired

      The message ID

    • attributes#objectrequired
      Show 7 fields
      • label#stringrequired

        The label or name on the message

      • channel#stringrequired

        The channel the message is to be sent on

      • content#oneOfrequired

        Additional attributes relating to the content of the message

        One of:

        1. Option 1: EmailContentSubObject
          • subject#string

            The subject of the message

            Example: Buy our product!

          • preview_text#string

            Preview text associated with the message

            Example: My preview text

          • from_email#string

            The email the message should be sent from

            Example: store@my-company.com

          • from_label#string

            The label associated with the from_email

            Example: My Company

          • reply_to_email#string

            Optional Reply-To email address

            Example: reply-to@my-company.com

          • cc_email#string

            Optional CC email address

            Example: cc@my-company.com

          • bcc_email#string

            Optional BCC email address

            Example: bcc@my-company.com

        2. Option 2: SMSContentSubObject
          • body#string

            The message body

            Example: My preview sms

          • media_url#string

            URL for included media

      • send_times#object[]

        The list of appropriate Send Time Sub-objects associated with the message

        Show 2 fields
        • datetime#string<date-time>required

          The datetime that the message is to be sent

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

        • is_local#booleanrequired

          Whether that datetime is to be a local datetime for the recipient

      • render_options#object
        Show 4 fields
        • add_org_prefix#boolean

          Default: true

          Example: true

        • add_opt_out_language#boolean

          Default: false

      • created_at#string<date-time>

        The datetime when the message was created

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

      • updated_at#string<date-time>

        The datetime when the message was last updated

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

4XXClient Error

Content type: application/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/json

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