Skip to main content

Confirm / schedule a WhatsApp campaign

PUT 

/api/partner-gateway/campaigns/:id/confirm

Confirms a campaign: it is priced from its current configuration, the amount is reserved on your wallet and the sending is queued, at once or at the scheduledDate.

  • What the campaign needs: a name, a valid sendingMode and destinationType, whatsappPhoneNumberId and whatsappTemplateId (plus smsSender and smsBody with WHATSAPP_SMS), the recipients its destinationType asks for, and enough credit to cover the price.
  • Preview the price with GET /campaigns/{id}/price. POST /campaigns/{id}/calculateGoal is not needed: it only writes the campaign description.
  • readyToSend: set it to true once the configuration is final. Confirmation does not currently check the flag.
  • After confirmation the campaign is PRE_BILLED and can no longer be updated. Without a scheduledDate it starts sending at once and cannot be deleted. A scheduled campaign can still be deleted with DELETE /campaigns/{id} while its scheduledDate is outside the platform's edit window, which releases the reserved amount.
  • Accounts without cross-channel fallback: a campaign that combines WhatsApp with other channels is switched to WHATSAPP before pricing.

After a timeout, check before you retry. A campaign that is already confirmed answers 400 as well, so read its status with GET /campaigns/{id} first.

PUT /campaigns/{id}/confirm is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for SMS or RCS.

Request​

Responses​

Campaign confirmed and queued for sending. No response body.