---
docId: doc_f5e4beb98c664afb90a15004cf6ea85a
title: List campaigns
description: "List active workspace campaigns, page by page."
api:
  group: campañas
  auth: bearer
  operations:
    - operationId: listCampaigns
      method: GET
      path: /v1/campaigns
      postmanName: List campaigns
---

<script>
  import { Ways, Collapsible } from '$lib/components';
</script>

# List campaigns

Get the active campaigns of the workspace, page by page.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl https://api.platic.ai/v1/campaigns \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.campaigns.list();
```

</Ways.Way>
</Ways>

## Query parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `limit` | number | Campaigns per page, from `1` to `200`. Default: `50` | — |
| `pageToken` | string | The `nextPageToken` from the previous page. Send it with the same `sortBy`, `sortDirection`, `limit`, and `workspace` | — |
| `sortBy` | enum | Field to sort by: `lastUpdate` (default), `creationDate`, or `title` | — |
| `sortDirection` | enum | Sort direction: `desc` (default) or `asc` | — |
| `workspace` | string | Only if the credential covers several workspaces: the workspace you read. It is required there | — |

You read one workspace per request. With a single-workspace credential you do not send `workspace`; with a multi-workspace one, the answer without it is `400`.

## Response

```json
{
  "status": "success",
  "data": [
    {
      "id": "EgIOvaKPmrQFfuh6D023",
      "title": "tax_id_request",
      "category": "UTILITY",
      "platform": "whatsapp",
      "templateName": "tax_id_request",
      "owners": ["support@acme.com"],
      "language": "en_US",
      "creationDate": "2026-02-11T18:55:52.061Z",
      "lastUpdate": "2026-02-11T19:46:29.285Z"
    },
    {
      "id": "FhJPrbLQnsRGgvi7E134",
      "title": "Summer promo",
      "category": "MARKETING",
      "platform": "whatsapp",
      "templateName": "summer_promo_2026",
      "owners": [],
      "creationDate": "2026-02-14T10:00:00.000Z",
      "lastUpdate": "2026-02-14T12:00:00.000Z"
    }
  ],
  "nextPageToken": null
}
```

## Response fields

<Collapsible summary="Show all fields">

| Field | Description |
|-------|-------------|
| `data` | The campaigns on this page |
| `nextPageToken` | Token to request the next page; `null` on the last one |

### Each item in `data`

| Field | Description |
|-------|-------------|
| `id` | Internal ID of the campaign |
| `title` | Campaign title |
| `category` | Category: `MARKETING`, `UTILITY`, or `AUTHENTICATION` |
| `platform` | Send platform |
| `templateName` | Name of the associated template, or `null` |
| `owners` | List of responsible-user emails |
| `language` | Template language when it applies (may be omitted) |
| `wabaId` | The campaign's WhatsApp Business account, when it has one |
| `creationDate` | Creation date in ISO 8601 format |
| `lastUpdate` | Last update date in ISO 8601 format |

</Collapsible>

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `400` | `INVALID_REQUEST` | A parameter is not valid, the `pageToken` is not from this list (another order, another `limit`, or another workspace), or the credential covers several workspaces and `workspace` is missing or is not one of them (`details.available` lists the valid ones) |
| `401` | `UNAUTHENTICATED` | The credential is missing or invalid |
| `403` | `FORBIDDEN` | The credential does not have the Campaigns permission in that workspace |

```json
{
  "code": 400,
  "error": "Bad Request - The request has validation errors",
  "details": {
    "code": "INVALID_REQUEST",
    "message": "Must specify a valid workspace (multi-workspace API key)",
    "available": ["ws_abc123", "ws_def456"]
  }
}
```

See [Errors](/api-reference/errors) for the full shape of an error.
