---
title: "Get Campaign Message Campaign"
description: "How to call Get Campaign Message Campaign (GET /api/campaign-messages/{id}/campaign/) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_message_campaign"
revision: "2023-10-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_campaign_for_campaign_message"
operationId: "get_campaign_message_campaign"
method: "GET"
endpoint: "https://a.klaviyo.com/api/campaign-messages/{id}/campaign/"
authentication: "privateKey"
scopes: ["campaigns:read"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
jsonApi: {"fields":{"campaign-message":["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"]}}
related: ["https://developers.klaviyo.com/en/v2023-10-15/reference/campaigns/llms.txt","https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaigns.md","https://developers.klaviyo.com/en/v2023-10-15/reference/create_campaign.md","https://developers.klaviyo.com/en/v2023-10-15/reference/create_campaign_clone.md","https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign.md","https://developers.klaviyo.com/en/v2023-10-15/reference/update_campaign.md","https://developers.klaviyo.com/en/v2023-10-15/reference/delete_campaign.md","https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_tags.md","https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_campaign_messages.md","https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_message_template.md","https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_recipient_estimation.md"]
---

# Get Campaign Message Campaign

> This is the Markdown version of https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_message_campaign

```http
GET https://a.klaviyo.com/api/campaign-messages/{id}/campaign/
```

Return the related campaign

- Revision header: `revision: 2023-10-15` (required)
- Scopes: `campaigns:read`
- Rate limits: Burst: `10/s`, Steady: `150/m`

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/campaign-messages/id/campaign/' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/json' \
     --header 'revision: 2023-10-15'
```

## Path parameters

- `id` (string, required)

## Query parameters

- `fields[campaign-message]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-10-15/reference.md) 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` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2023-10-15`

## Responses

### 200: Success

Content type: `application/json`

- `data` (object, required)
  - `relationships` (object)
    - `campaign` (object)
      - `data` (object, required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `template` (object)
      - `data` (object, required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `type` (string, required): Allowed values: `campaign-message`
  - `id` (string, required): The message ID
  - `attributes` (object, required)
    - `label` (string, required): The label or name on the message
    - `channel` (string, required): The channel the message is to be sent on
    - `content` (oneOf, required): Additional attributes relating to the content of the message
      - One of:
        - Option 1: `EmailContentSubObject` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `SMSContentSubObject` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `send_times` (object[]): The list of appropriate Send Time Sub-objects associated with the message
      - `datetime` (string<date-time>, required): The datetime that the message is to be sent Example: `2022-11-08T00:00:00`
      - `is_local` (boolean, required): Whether that datetime is to be a local datetime for the recipient
    - `render_options` (object)
      - `shorten_links` (boolean): Default: `true` Example: `true`
      - `add_org_prefix` (boolean): Default: `true` Example: `true`
      - `add_info_link` (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`
  - `links` (object, required)
    - `self` (string<uri>, required)

#### Example response body

```json
{
  "data": {
    "relationships": {
      "campaign": {
        "data": {
          "type": "campaign",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "template": {
        "data": {
          "type": "template",
          "id": "string"
        },
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "type": "campaign-message",
    "id": "string",
    "attributes": {
      "label": "string",
      "channel": "string",
      "content": {
        "subject": "Buy our product!",
        "preview_text": "My preview text",
        "from_email": "store@my-company.com",
        "from_label": "My Company",
        "reply_to_email": "reply-to@my-company.com",
        "cc_email": "cc@my-company.com",
        "bcc_email": "bcc@my-company.com"
      },
      "send_times": [
        {
          "datetime": "2022-11-08T00:00:00",
          "is_local": true
        }
      ],
      "render_options": {
        "shorten_links": true,
        "add_org_prefix": true,
        "add_info_link": true,
        "add_opt_out_language": false
      },
      "created_at": "2022-11-08T00:00:00",
      "updated_at": "2022-11-08T00:00:00"
    },
    "links": {
      "self": "https://www.example.com"
    }
  }
}
```

### 4XX: Client Error

Content type: `application/json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
