cURL
Campaigns
Lifecycle Actions
Aplica una acción de ciclo de vida a una Campaña. Acciones válidas: activate, pause, archive, resume. La acción es idempotente — aplicar una acción cuando la campaña ya está en el estado destino es un no-op exitoso.
POST
cURL
Rate Limit: 12 requests per second
action is one of activate, pause, archive, resume.
Valid Transitions
| Action | Allowed source statuses | Effect |
|---|---|---|
activate | pending, ready, cooldown | sets status → active |
pause | active, cooldown | sets status → inactive |
resume | inactive | sets status → active |
archive | any | sets archived = true |
Idempotency
archiveis always a success. Re-archiving a campaign is a no-op.pauseon a campaign alreadyinactive, andresumeon a campaign alreadyactive, are no-op successes.activateis not idempotent: calling it on a campaign already inactive(orinactive, orfinished) returns409 INVALID_STATUS_TRANSITIONbecauseactiveis not in the allowed source statuses. Useresumeto re-activate a paused campaign.
Errors
400 UNKNOWN_ACTION:actionis not one of the supported values.402 BILLING_LIMIT_REACHED:activateorresumeand the plan limit was reached.409 INVALID_STATUS_TRANSITION: current status is not in the allowed sources. The response includescurrent_statusandvalid_targets.
Examples
Authorizations
Add api-key YOUR_API_SECRET_KEY as the value of the Authorization header.
Path Parameters
The identifier of the Campaign
Lifecycle action to apply
Available options:
activate, pause, archive, resume