---
title: "Get Campaigns"
description: "How to call Get Campaigns (GET /api/campaigns/) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaigns"
revision: "2023-09-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_campaigns"
operationId: "get_campaigns"
method: "GET"
endpoint: "https://a.klaviyo.com/api/campaigns/"
authentication: "privateKey"
scopes: ["campaigns:read"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
jsonApi: {"include":["campaign-messages","tags"],"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"],"campaign":["name","status","archived","audiences","audiences.included","audiences.excluded","send_options","tracking_options","send_strategy","send_strategy.method","send_strategy.options_static","send_strategy.options_static.datetime","send_strategy.options_static.is_local","send_strategy.options_static.send_past_recipients_immediately","send_strategy.options_throttled","send_strategy.options_throttled.datetime","send_strategy.options_throttled.throttle_percentage","send_strategy.options_sto","send_strategy.options_sto.date","created_at","scheduled_at","updated_at","send_time"],"tag":["name"]},"sort":["created_at","-created_at","id","-id","name","-name","scheduled_at","-scheduled_at","updated_at","-updated_at"],"pagination":{"style":"cursor"}}
related: ["https://developers.klaviyo.com/en/v2023-09-15/reference/campaigns/llms.txt","https://developers.klaviyo.com/en/v2023-09-15/reference/create_campaign.md","https://developers.klaviyo.com/en/v2023-09-15/reference/create_campaign_clone.md","https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign.md","https://developers.klaviyo.com/en/v2023-09-15/reference/update_campaign.md","https://developers.klaviyo.com/en/v2023-09-15/reference/delete_campaign.md","https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_tags.md","https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_campaign_messages.md","https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_message_campaign.md","https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_message_template.md","https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_recipient_estimation.md"]
---

# Get Campaigns

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

```http
GET https://a.klaviyo.com/api/campaigns/
```

Returns some or all campaigns based on filters.

A channel filter is required to list campaigns. Please provide either:
`?filter=equals(messages.channel,'email')` to list email campaigns, or
`?filter=equals(messages.channel,'sms')` to list SMS campaigns.

- Revision header: `revision: 2023-09-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/campaigns/?filter=equals(messages.channel%2C'\''sms'\'')' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/json' \
     --header 'revision: 2023-09-15'
```

## Query parameters

- `filter` (string, required): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-09-15/reference.md)\
  Allowed field(s)/operator(s):\
  `messages.channel`: `equals`\
  `name`: `contains`\
  `status`: `any`, `equals`\
  `archived`: `equals`\
  `created_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`\
  `scheduled_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`\
  `updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` Example: `equals(messages.channel,'sms')`
- `fields[campaign-message]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-09-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`
- `fields[campaign]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-09-15/reference.md) Allowed values: `name`, `status`, `archived`, `audiences`, `audiences.included`, `audiences.excluded`, `send_options`, `tracking_options`, `send_strategy`, `send_strategy.method`, `send_strategy.options_static`, `send_strategy.options_static.datetime`, `send_strategy.options_static.is_local`, `send_strategy.options_static.send_past_recipients_immediately`, `send_strategy.options_throttled`, `send_strategy.options_throttled.datetime`, `send_strategy.options_throttled.throttle_percentage`, `send_strategy.options_sto`, `send_strategy.options_sto.date`, `created_at`, `scheduled_at`, `updated_at`, `send_time`
- `fields[tag]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-09-15/reference.md) Allowed values: `name`
- `include` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-09-15/reference.md) Allowed values: `campaign-messages`, `tags`
- `page[cursor]` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-09-15/reference.md)
- `sort` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-09-15/reference.md) Allowed values: `created_at`, `-created_at`, `id`, `-id`, `name`, `-name`, `scheduled_at`, `-scheduled_at`, `updated_at`, `-updated_at`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2023-09-15`

## Responses

### 200: 

Content type: `application/json`

- `data` (object[], required)
  - `relationships` (object)
    - `campaign-messages` (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.
    - `tags` (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`
  - `id` (string, required): The campaign ID
  - `attributes` (object, required)
    - `name` (string, required): The campaign name
    - `status` (string, required): The current status of the campaign
    - `archived` (boolean, required): Whether the campaign has been archived or not
    - `audiences` (object, required)
      - `included` (string[]): A list of included audiences
      - `excluded` (string[]): An optional list of excluded audiences
    - `send_options` (oneOf, required): Options to use when sending a campaign
      - One of:
        - Option 1: `EmailSendOptionsSubObject` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `SMSSendOptionsSubObject` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `tracking_options` (oneOf, required): The tracking options associated with the campaign
      - One of:
        - Option 1: `EmailTrackingOptionsSubObject` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `SMSTrackingOptionsSubObject` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `send_strategy` (object, required)
      - `method` (string, required): Describes the shape of the options object. Allowed values: ['static', 'throttled', 'immediate', 'smart_send_time'] Example: `static`
      - `options_static` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `options_throttled` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `options_sto` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `created_at` (string<date-time>, required): The datetime when the campaign was created Example: `2022-11-08T00:00:00`
    - `scheduled_at` (string<date-time>, required): The datetime when the campaign was scheduled for future sending Example: `2022-11-08T00:00:00`
    - `updated_at` (string<date-time>, required): The datetime when the campaign was last updated by a user or the system Example: `2022-11-08T00:00:00`
    - `send_time` (string<date-time>, required): The datetime when the campaign will be / was sent or None if not yet scheduled by a send_job. Example: `2022-11-08T00:00:00`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object, required)
  - `self` (string<uri>, required)
  - `first` (string<uri>)
  - `last` (string<uri>)
  - `prev` (string<uri>)
  - `next` (string<uri>)
- `included` (oneOf[])
  - One of:
    - Option 1: `CampaignMessageResponseObjectResource`
      - `type` (string, required): Allowed values: `campaign-message`
      - `id` (string, required): The message ID
      - `attributes` (object, required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.
    - Option 2: `TagResponseObjectResource`
      - `type` (string, required): Allowed values: `tag`
      - `id` (string, required): The Tag ID Example: `abcd1234-ef56-gh78-ij90-abcdef123456`
      - `attributes` (object, required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": [
    {
      "relationships": {
        "campaign-messages": {
          "data": [
            {
              "type": "campaign-message",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        },
        "tags": {
          "data": [
            {
              "type": "tag",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        }
      },
      "type": "campaign",
      "id": "string",
      "attributes": {
        "name": "string",
        "status": "string",
        "archived": true,
        "audiences": {
          "included": [
            "Y6nRLr"
          ],
          "excluded": [
            "UTd5ui"
          ]
        },
        "send_options": {
          "use_smart_sending": true
        },
        "tracking_options": {
          "is_add_utm": true,
          "utm_params": [
            {
              "name": "utm_medium",
              "value": "campaign"
            }
          ],
          "is_tracking_clicks": true,
          "is_tracking_opens": true
        },
        "send_strategy": {
          "method": "static",
          "options_static": {
            "datetime": "2022-11-08T00:00:00",
            "is_local": true,
            "send_past_recipients_immediately": true
          },
          "options_throttled": {
            "datetime": "2026-01-01T00:00:00+00:00",
            "throttle_percentage": 0
          },
          "options_sto": {
            "date": "2026-01-01"
          }
        },
        "created_at": "2022-11-08T00:00:00",
        "scheduled_at": "2022-11-08T00:00:00",
        "updated_at": "2022-11-08T00:00:00",
        "send_time": "2022-11-08T00:00:00"
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "first": "https://www.example.com",
    "last": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  },
  "included": [
    {
      "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"
      }
    }
  ]
}
```
