> ## Documentation Index
> Fetch the complete documentation index at: https://docs.weya.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Resume Campaign

> Start calling again on a paused campaign.

## Overview

Resume a paused campaign so it starts placing calls again. If the current time is outside the campaign's calling hours or calling days, it waits until the next calling window.

You don't need to call this after **Update Campaign**: a paused campaign resumes automatically when its settings are updated.

## Prerequisites

* An API key for your workspace
* The campaign's `batchId`. The campaign must have been created by the user who owns the API key.
* The campaign is paused

## Endpoint

**/api/call/resume-batch/\{batchId}**

## Request

**x-api-key** `string` *required*

Your workspace API key. Create one from the profile menu in the dashboard → **API Keys**.

**batchId** `string` *required*

Unique identifier of the campaign to resume.

This endpoint takes no request body.

```bash cURL theme={null}
curl --location --request POST 'https://api.weya.live/backend/api/call/resume-batch/6806382f98da85ec32fac955' \
  --header 'x-api-key: YOUR_API_KEY'
```

## Response

```json 200 OK theme={null}
{
  "status": true,
  "code": 200,
  "message": "Batch resumed successfully",
  "errorMessage": null,
  "data": {
    "batchId": "6806382f98da85ec32fac955",
    "batchName": "Sales Campaign - July",
    "status": "pending"
  }
}
```

**status** `boolean` *required*

Indicates whether the campaign was resumed.

**code** `integer` *required*

HTTP status code.

**message** `string` *required*

Human-readable success message.

**data.batchId** `string`

ID of the resumed campaign.

**data.batchName** `string`

Name of the resumed campaign.

**data.status** `string`

New campaign status:

* `in-progress` – calls are waiting and the campaign is calling again.
* `pending` – the campaign will start calling.
* `freezed` – the current time is outside the campaign's calling hours, calling days or holiday list. Calling starts at the next calling window.

## Error Handling

Errors return `status: false`, with the reason in `errorMessage`.

* **400 Bad Request**
  * `Invalid Batch ID` – `batchId` is not a valid ID.
  * `Batch is not paused (current status: …)` – only a paused campaign can be resumed.
* **401 Unauthorized** – Missing or invalid API key.
* **404 Not Found** – No campaign with this ID was created by the user who owns the API key, or it was deleted.
* **500 Internal Server Error** – Unexpected server error.

> [!TIP]
>
> After resuming a campaign, you can:
>
> * `GET /api/call/batch-details/{batchId}` to follow its calls.
> * `POST /api/call/pause-batch/{batchId}` to pause it again.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.