Get a campaign
SDK platic.campaigns.get()
Read a campaign by its ID, including its settings, owners, and associated template.
Example
curl https://api.platic.ai/v1/campaigns/$CAMPAIGN_ID \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.campaigns.get("campaign_123"); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
campaignId | string | Unique identifier of the campaign | required |
Query parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
workspace | string | Only if the credential covers several workspaces: the campaign's workspace. It is required there | — |
Response 200 OK
{
"status": "success",
"data": {
"id": "EgIOvaKPmrQFfuh6D023",
"title": "Summer promo",
"category": "MARKETING",
"platform": "whatsapp",
"templateName": "summer_promo_2026",
"owners": ["marketing@acme.com"],
"language": "en_US",
"wabaId": "waba_xyz",
"creationDate": "2026-02-14T10:00:00.000Z",
"lastUpdate": "2026-02-14T12:00:00.000Z",
"template": {
"name": "summer_promo_2026",
"language": "en_US",
"category": "MARKETING",
"status": "APPROVED",
"id": "1234567890",
"wabaId": "waba_xyz",
"components": []
},
"cta": { "targetUrl": "https://example.com/summer", "label": "See offers" },
"templateSubmissions": []
}
} Response fields
data is the campaign:
| 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 |
wabaId | WABA identifier when it applies |
creationDate | Creation date in ISO 8601 format |
lastUpdate | Last update date in ISO 8601 format |
template | The chosen template: name, language, category, Meta's status in capitals (DRAFT if it was never sent for review), id, wabaId, and components. null if it has none |
cta | The button destination, { targetUrl, label }, or null |
templateSubmissions | The templates the campaign sent for review with create a template and campaignId, newest to oldest (up to 20): id, name, language, category, status, wabaId, and submittedAt |
Errors
| Status | details.code | When |
|---|---|---|
400 | INVALID_REQUEST | 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 |
404 | NOT_FOUND | The campaign does not exist in the workspace or was deleted |
{
"code": 404,
"error": "Not Found - The resource doesn't exist",
"details": {
"code": "NOT_FOUND",
"message": "Campaign not found"
}
} See Errors for the full shape of an error.