Skip to main content

Confirm / schedule an SMS 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, sendingMode SMS and a valid destinationType, smsSender and smsBody, 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.

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 SMS. See it for RCS or WhatsApp.

Request​

Responses​

Campaign confirmed and queued for sending. No response body.