---
updatedAt: 2026-10-30T10:36:55.000Z
agentTools:
  projectIndex: https://docs.whippy.ai/llms.txt
---

# List Campaigns

Lists campaigns for an organization based on filters.

Supports two pagination methods. **Cursor-based** (`cursor`/`limit`) is stable and performant on large
datasets; it is triggered automatically when a `cursor` parameter is provided, and `cursor` and `offset`
cannot be combined. **Offset-based** (`offset`/`limit`) remains supported. Both methods return a
`metadata` object with a `next_cursor` field — pass it back as `cursor` to fetch the next page; when
`next_cursor` is `null`, there are no more results. Filters are not encoded in the cursor, so include them
on every request.


# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "NotAuthenticatedErrorResponse": {
        "description": "Not Authenticated Error Response schema",
        "example": {
          "errors": [
            {
              "description": "Not authenticated"
            }
          ],
          "status": 401
        },
        "properties": {
          "errors": {
            "description": "Not authenticated error",
            "items": {
              "properties": {
                "description": {
                  "enum": [
                    "Not authenticated"
                  ],
                  "type": "string",
                  "x-struct": null,
                  "x-validate": null
                }
              },
              "type": "object",
              "x-struct": null,
              "x-validate": null
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          "status": {
            "enum": [
              401
            ],
            "type": "integer",
            "x-struct": null,
            "x-validate": null
          }
        },
        "title": "NotAuthenticatedErrorResponse",
        "type": "object",
        "x-struct": "Elixir.DashboardApiWeb.Public.V1.Documentation.Errors.NotAuthenticated",
        "x-validate": null
      },
      "CampaignListUnprocessableContentErrorResponse": {
        "description": "List of error responses for invalid Campaign index (list) pagination params.\n",
        "example": {
          "errors": [
            {
              "description": "Offset parameter is not compatible with cursor-based pagination"
            }
          ],
          "status": 422
        },
        "properties": {
          "errors": {
            "description": "Campaign list 422 errors",
            "items": {
              "description": "Single 422 error",
              "properties": {
                "description": {
                  "enum": [
                    "Invalid cursor format",
                    "Limit must be greater than 0",
                    "Limit must be 500 or less",
                    "Offset parameter is not compatible with cursor-based pagination",
                    "Offset must be greater than or equal to 0",
                    "Offset must be an integer greater than or equal to 0"
                  ],
                  "type": "string",
                  "x-struct": null,
                  "x-validate": null
                }
              },
              "type": "object",
              "x-struct": null,
              "x-validate": null
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          "status": {
            "enum": [
              422
            ],
            "type": "integer",
            "x-struct": null,
            "x-validate": null
          }
        },
        "title": "CampaignListUnprocessableContentErrorResponse",
        "type": "object",
        "x-struct": "Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.Errors.ListUnprocessableContent",
        "x-validate": null
      },
      "ListCampaignsResponse": {
        "description": "Response schema for listing campaigns",
        "example": {
          "data": [
            {
              "campaign_id": "53ee0947-70cf-44da-a101-c9c1838afb83",
              "campaign_title": "Festive Campaign",
              "failed_deliveries": 4,
              "link_clicks": 35,
              "responses": 282,
              "sent_messages": 300,
              "slated_messages": 300,
              "unsubscribes": 5
            },
            {
              "campaign_id": "63efe292-36be-4d80-940f-9c361c1fc548",
              "campaign_title": "Jubilant Campaign",
              "failed_deliveries": 2,
              "link_clicks": 17,
              "responses": 164,
              "sent_messages": 159,
              "slated_messages": 159,
              "unsubscribes": 8
            }
          ],
          "total": 2
        },
        "properties": {
          "data": {
            "description": "List of campaigns with analytics.",
            "items": {
              "description": "Data for a specific campaign with analytics.",
              "properties": {
                "campaign_id": {
                  "description": "Campaign ID",
                  "format": "uuid",
                  "type": "string",
                  "x-struct": null,
                  "x-validate": null
                },
                "campaign_title": {
                  "description": "Campaign title",
                  "type": "string",
                  "x-struct": null,
                  "x-validate": null
                },
                "failed_deliveries": {
                  "description": "Messages that failed to deliver",
                  "type": "integer",
                  "x-struct": null,
                  "x-validate": null
                },
                "link_clicks": {
                  "description": "Contacts that clicked on a link in the campaign message",
                  "type": "integer",
                  "x-struct": null,
                  "x-validate": null
                },
                "responses": {
                  "description": "Contacts that responded to the campaign",
                  "type": "integer",
                  "x-struct": null,
                  "x-validate": null
                },
                "sent_messages": {
                  "description": "Campaign messages that were successfully sent",
                  "type": "integer",
                  "x-struct": null,
                  "x-validate": null
                },
                "slated_messages": {
                  "description": "Campaign messages that were slated to be sent",
                  "type": "integer",
                  "x-struct": null,
                  "x-validate": null
                },
                "unsubscribes": {
                  "description": "Contacts that unsubscribed after receiving the campaign",
                  "type": "integer",
                  "x-struct": null,
                  "x-validate": null
                }
              },
              "type": "object",
              "x-struct": null,
              "x-validate": null
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          "metadata": {
            "description": "Metadata for cursor-based pagination. Present only on cursor-paginated responses.",
            "nullable": true,
            "properties": {
              "cursor_reset": {
                "description": "`true` when the supplied cursor was unusable as a position (tampered, or carrying a value the sort column can't cast) and this page was reset to the first page; `false` otherwise. A well-formed cursor whose row no longer exists is not a reset.",
                "type": "boolean",
                "x-struct": null,
                "x-validate": null
              },
              "next_cursor": {
                "description": "Cursor for the next page of results. The value is null when there are no more results.",
                "nullable": true,
                "type": "string",
                "x-struct": null,
                "x-validate": null
              }
            },
            "type": "object",
            "x-struct": null,
            "x-validate": null
          },
          "total": {
            "description": "Total count without limit of campaigns based on the passed filters.",
            "type": "integer",
            "x-struct": null,
            "x-validate": null
          }
        },
        "title": "ListCampaignsResponse",
        "type": "object",
        "x-struct": "Elixir.DashboardApiWeb.Public.V1.Documentation.Campaigns.Campaign.ListResponse",
        "x-validate": null
      }
    },
    "securitySchemes": {
      "authorization": {
        "in": "header",
        "name": "X-WHIPPY-KEY",
        "type": "apiKey"
      },
      "bearer": {
        "description": "OAuth Access token",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Marketing Platform endpoints in the Whippy public API.\n\n## Authentication\n\nThe Whippy Public API supports two authentication methods:\n\n**API Key** — Generate an organization API token and send it with every request as the `X-WHIPPY-KEY` header.\n\n**OAuth Bearer Token** — Obtain an access token via the OAuth authorization flow and send it as a Bearer token in the `Authorization` header (e.g. `Authorization: Bearer <access_token>`).\n\n## Rate Limiting\n\nThe Whippy API is rate limited. Different endpoints have different rate limits.\nEach request to the API will return the following headers, which can be used to keep track of your rate limit status:\n * `x-ratelimit-max`: The maximum number of requests that the consumer is permitted to make in the given time period.\n * `x-ratelimit-remaining`: The number of requests remaining in the current rate limit window.\n * `x-ratelimit-interval-milliseconds`: The rate limit window in milliseconds.\n * `x-ratelimit-remaining-interval-milliseconds`: The time in milliseconds until the rate limit window resets.\n",
    "title": "Marketing Platform",
    "version": "1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/v1/campaigns": {
      "get": {
        "callbacks": {},
        "deprecated": false,
        "description": "Lists campaigns for an organization based on filters.\n\nSupports two pagination methods. **Cursor-based** (`cursor`/`limit`) is stable and performant on large\ndatasets; it is triggered automatically when a `cursor` parameter is provided, and `cursor` and `offset`\ncannot be combined. **Offset-based** (`offset`/`limit`) remains supported. Both methods return a\n`metadata` object with a `next_cursor` field — pass it back as `cursor` to fetch the next page; when\n`next_cursor` is `null`, there are no more results. Filters are not encoded in the cursor, so include them\non every request.\n",
        "operationId": "getCampaigns",
        "parameters": [
          {
            "description": "limit",
            "example": 50,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "offset",
            "example": 0,
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "integer",
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "Cursor for keyset pagination. Use the next_cursor value from the previous response.",
            "example": "eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiIxMWEzN2UwNS0yZGMyLTRkNzYtODc4NS1iYTgwNTBhOWIxOTkifQ",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "title",
            "example": "Very Good News",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string",
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "statuses",
            "example": [
              "complete",
              "in_progress"
            ],
            "in": "query",
            "name": "status[]",
            "required": false,
            "schema": {
              "description": "Campaign statuses list",
              "items": {
                "description": "Campaign status",
                "example": "complete",
                "type": "string",
                "x-struct": null,
                "x-validate": null
              },
              "type": "array",
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "channel IDs",
            "example": [
              "65271acf-92f6-4938-a4b2-d0d09d60782e",
              "8011417d-94a7-4e0f-b19a-fd7d58a9ce51"
            ],
            "in": "query",
            "name": "channels[][id]",
            "required": false,
            "schema": {
              "description": "IDs of channels campaigns have been sent from.",
              "items": {
                "description": "Channel ID",
                "example": "8c1d9286-85ca-403b-9a7c-5339115142e9",
                "type": "string",
                "x-struct": null,
                "x-validate": null
              },
              "type": "array",
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "channel phones",
            "example": [
              "+14155552671",
              "+14155552672"
            ],
            "in": "query",
            "name": "channels[][phone]",
            "required": false,
            "schema": {
              "description": "Phones of channels campaigns have been sent from.",
              "items": {
                "description": "Channel phone",
                "example": "+14155552671",
                "type": "string",
                "x-struct": null,
                "x-validate": null
              },
              "type": "array",
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "created by user IDs",
            "example": [
              7,
              42
            ],
            "in": "query",
            "name": "created_by[]",
            "required": false,
            "schema": {
              "description": "IDs of users that created campaigns",
              "items": {
                "description": "Created by User ID",
                "type": "string",
                "x-struct": null,
                "x-validate": null
              },
              "type": "array",
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "updated by user IDs",
            "example": [
              8,
              43
            ],
            "in": "query",
            "name": "updated_by[]",
            "required": false,
            "schema": {
              "description": "IDs of users that updated campaigns",
              "items": {
                "description": "Updated by User ID",
                "type": "string",
                "x-struct": null,
                "x-validate": null
              },
              "type": "array",
              "x-struct": null,
              "x-validate": null
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListCampaignsResponse"
                }
              }
            },
            "description": "Campaigns"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotAuthenticatedErrorResponse"
                }
              }
            },
            "description": "Not Authenticated"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignListUnprocessableContentErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          }
        },
        "security": [
          {},
          {
            "authorization": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List Campaigns",
        "tags": [
          "Campaigns"
        ]
      }
    }
  },
  "security": [],
  "servers": [
    {
      "url": "https://api.whippy.co",
      "variables": {}
    }
  ],
  "tags": [
    {
      "name": "Campaigns"
    }
  ],
  "x-readme": {
    "apply-endpoint-order": true,
    "apply-tag-changes": true
  }
}
```

# Sibling pages

* [Campaign Automations](https://docs.whippy.ai/reference/campaign-automations.md)
* [Show Campaign](https://docs.whippy.ai/reference/getcampaign.md)
* [List Campaign Contacts](https://docs.whippy.ai/reference/getcampaigncontacts.md)
* [SMS](https://docs.whippy.ai/reference/sms.md)
* [Email](https://docs.whippy.ai/reference/email.md)
* [WhatsApp](https://docs.whippy.ai/reference/whatsapp.md)
* [Fax](https://docs.whippy.ai/reference/fax.md)