Get a campaign

SDK platic.campaigns.get()

Read a campaign by its ID, including its settings, owners, and associated template.

Example

await platic.campaigns.get("campaign_123");

Path parameters

ParameterTypeDescriptionRequired
campaignIdstringUnique identifier of the campaignrequired

Query parameters

ParameterTypeDescriptionRequired
workspacestringOnly 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:

FieldDescription
idInternal ID of the campaign
titleCampaign title
categoryCategory: MARKETING, UTILITY, or AUTHENTICATION
platformSend platform
templateNameName of the associated template, or null
ownersList of responsible-user emails
languageTemplate language when it applies
wabaIdWABA identifier when it applies
creationDateCreation date in ISO 8601 format
lastUpdateLast update date in ISO 8601 format
templateThe 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
ctaThe button destination, { targetUrl, label }, or null
templateSubmissionsThe 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

Statusdetails.codeWhen
400INVALID_REQUESTThe credential covers several workspaces and workspace is missing or is not one of them (details.available lists the valid ones)
401UNAUTHENTICATEDThe credential is missing or invalid
403FORBIDDENThe credential does not have the Campaigns permission in that workspace
404NOT_FOUNDThe 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.