Skip to main content

List WhatsApp campaigns

GET 

/api/partner-gateway/campaigns

Returns the campaigns of your account, one page at a time, newest first by creation date.

  • Confirmed campaigns by default: without a status filter only confirmed campaigns are listed (PRE_BILLED onwards). Drafts are left out.
  • Status filters: isDraft, isProgrammed and readyToSend choose the stage to list. readyToSend wins over the other two, and isDraft=true wins over isProgrammed.
  • WhatsApp campaigns only: send sendingMode=WHATSAPP, or sendingMode=WHATSAPP,WHATSAPP_SMS to include those with an SMS fallback. Without sendingMode the list holds the campaigns of every channel. Each mode is matched exactly, so WHATSAPP does not include WHATSAPP_SMS.
  • Phone number: channel=WHATSAPP and channelId go together, and keep the campaigns of one WhatsApp number: channelId is the numeric phone number ID.
  • Search: search is a case-insensitive partial match on the campaign name. The WhatsApp template content and the description are not searched.
  • Date window: startDate and endDate (yyyy-MM-dd) keep the campaigns scheduled in that window, or created in it when they have no scheduledDate. endDate includes the whole day.
  • Keys scoped by channel: a key without CAMPAIGNS lists only the campaigns whose channels it holds (SMS, RCS, WHATSAPP). A sendingMode filter with a channel the key lacks answers 401.
What each status filter lists
FilterCampaigns listed
isDraft=trueNot yet confirmed, including those marked ready to send, which come back with status DRAFT and readyToSend true.
isDraft=falseSame as leaving it out: confirmed campaigns only.
isProgrammed=trueConfirmed and not yet fully sent (PRE_BILLED through STARTED), whether scheduled for later or sending now.
isProgrammed=falseSent, ended or archived.
readyToSend=trueDrafts marked ready to send.
readyToSend=falseThe other drafts.

GET /campaigns is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for SMS or RCS.

Request​

Responses​

The campaigns that match the filters, one page at a time.