Generate the description of a WhatsApp campaign
POST/api/partner-gateway/campaigns/:id/calculateGoal
Generates a description of the campaign with an AI model and saves it as the campaign description, replacing the current one.
- Source: the WhatsApp template of the campaign.
- No content yet: nothing is generated and the stored description is left unchanged.
- Not a pricing step: it computes neither recipients nor cost, and confirming a campaign does not require it. For the recipient count and the price, use
GET /campaigns/{id}/price.
POST /campaigns/{id}/calculateGoal is one endpoint for SMS, RCS and WhatsApp: this page describes it for WhatsApp. See it for SMS or RCS.
Request
Responses
- 200
- 401
- 404
Description generated. The campaign is returned with it.
The API key is missing or invalid, or holds neither CAMPAIGNS nor the operation of every channel of the campaign's sendingMode.
No campaign with this ID in your account.