Skip to content

Pause a campaign

POSThttps://api.voice-agent.gowajee.ai/api/campaign/:id/pause

Sets a SCHEDULED or RUNNING campaign to PAUSED. No new calls are dialled.

  • Calls waiting to be dialled (SCHEDULED, QUEUED, INITIATED) are kept as SCHEDULED and continue after resume. Retries that are still due also continue after resume.
  • Calls already ringing or in a conversation finish normally. Pause never hangs up on a customer.
Name Description
id The campaign ID.

No request body.

curl -X POST "https://api.voice-agent.gowajee.ai/api/campaign/eac2489c-672c-455e-ab8c-4e0ecd18d7dc/pause" \
-H "X-API-Key: $GOWAJEE_API_KEY"
{
"success": true,
"message": "Campaign status updated to PAUSED successfully",
"data": {
"id": "eac2489c-672c-455e-ab8c-4e0ecd18d7dc",
"status": "PAUSED"
}
}

data.status is the campaign’s status after the request.

The body is the usual error envelope.

Status code message Cause
400 INVALID_ID id must be a valid UUID The id in the path isn’t a UUID.
404 CAMPAIGN_NOT_FOUND Campaign not found Wrong id, or the campaign belongs to another organization.
409 INVALID_CAMPAIGN_STATE Cannot pause a <STATUS> campaign Only a SCHEDULED or RUNNING campaign can be paused. DRAFT, COMPLETED, CANCELLED and EXPIRED can’t. See State rules.