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

# Pause Campaign

> Pause campaign execution.

Pause a running campaign. In-progress calls will complete, but no new calls will be initiated.

### Path Parameters

* `campaign_id` (integer, required): The unique identifier of the campaign

### Behavior

When you pause a campaign:

* **In-progress calls** continue until completion
* **Pending contacts** remain in queue
* **No new calls** are initiated
* Campaign status changes to `paused`

### Response

```json Response theme={null}
{
  "message": "Campaign paused successfully"
}
```

### Example Code

```bash cURL theme={null}
curl -X POST "https://api.burki.dev/api/v1/campaigns/42/pause" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```python Python theme={null}
import requests

response = requests.post(
    "https://api.burki.dev/api/v1/campaigns/42/pause",
    headers={"Authorization": "Bearer YOUR_API_KEY"}
)

if response.status_code == 200:
    print("Campaign paused successfully")
else:
    print(f"Error: {response.json()}")
```

```javascript JavaScript theme={null}
const response = await fetch("https://api.burki.dev/api/v1/campaigns/42/pause", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY"
  }
});

if (response.ok) {
  console.log("Campaign paused successfully");
} else {
  const error = await response.json();
  console.error("Error:", error);
}
```

### Error Responses

| Status Code | Description             |
| ----------- | ----------------------- |
| 400         | Campaign is not running |
| 404         | Campaign not found      |

### Resuming a Paused Campaign

To resume a paused campaign, use the [Start Campaign](/api-reference/campaigns/start) endpoint. The campaign will continue from where it left off.

```bash theme={null}
curl -X POST "https://api.burki.dev/api/v1/campaigns/42/start" \
  -H "Authorization: Bearer YOUR_API_KEY"
```


## OpenAPI

````yaml POST /api/v1/campaigns/{campaign_id}/pause
openapi: 3.1.0
info:
  title: Burki
  description: A system that uses AI to answer customer Calls.
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/campaigns/{campaign_id}/pause:
    post:
      tags:
        - campaigns
      summary: Pause Campaign
      description: Pause campaign execution.
      operationId: pause_campaign_api_v1_campaigns__campaign_id__pause_post
      parameters:
        - name: campaign_id
          in: path
          required: true
          schema:
            type: integer
            title: Campaign Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````