Skip to content

Resume a campaign

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

Sets a paused campaign back to SCHEDULED. The scheduler runs about every 30 seconds. On its first run inside a calling window, the campaign becomes RUNNING and dials the waiting calls and any retries that are due.

Only a PAUSED campaign can be resumed. On a campaign that is already SCHEDULED or RUNNING, resume does nothing and still returns 200. A CANCELLED campaign can’t be resumed.

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/resume" \
-H "X-API-Key: $GOWAJEE_API_KEY"
{
"success": true,
"message": "Campaign status updated to SCHEDULED successfully",
"data": {
"id": "eac2489c-672c-455e-ab8c-4e0ecd18d7dc",
"status": "SCHEDULED"
}
}

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

The body is the usual error envelope. Your organization’s approval to make calls is checked first, so without it every resume request gets 403, whatever the id.

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 resume a <STATUS> campaign Only a PAUSED campaign can be resumed. DRAFT, COMPLETED, CANCELLED and EXPIRED can’t. See State rules.
403 CALLING_NOT_ALLOWED Your organization is not allowed to make calls. Gowajee hasn’t approved your organization to make calls, or calling was turned off. The campaign doesn’t change. Contact Gowajee. Cancel still works.