Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2026-07-15/reference/get_message_ids_for_campaign.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_message_ids_for_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.

Get Message IDs for Campaign

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

Returns the IDs of all messages associated with the given campaign.

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

Path parameters

  • id#stringrequired

Headers

  • revision#stringrequired

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

    2026-07-15

Responses

200Success

Content type: application/vnd.api+json

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

      The message ID

  • 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