Generate the campaign description
POST/api/partner-gateway/v1/campaigns/:id/calculateGoal
Generates a description of the campaign from its message content (the SMS text, or the RCS or WhatsApp template of its first channel) with an AI model, saves it as the campaign description, replacing the current one, and returns the campaign with it. If the campaign has no message content yet, nothing is generated and the stored description is left unchanged. It does not compute recipients or cost, and confirming a campaign does not require it: use GET /campaigns/{id}/price for the recipient count and the price. Returns 404 if no campaign exists with the given ID under your account. Returns 401 if the API key is missing or invalid.
Request
Responses
- 200
- 401
- 404
Description generated; the campaign is returned with it
Unauthorized
Campaign not found