List campaigns
SDK platic.campaigns.list()
Get the active campaigns of the workspace, page by page.
Example
curl https://api.platic.ai/v1/campaigns \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.campaigns.list(); 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
{
"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
| 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 |
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 |
{
"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 for the full shape of an error.