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

# Cancel Batch

> Stop a running batch scrape job

## Overview

Stops a `pending` or `running` job. A job that is already finished is left as it is — a completed
run is never rewritten to `cancelled`, because the results exist and telling you it was cancelled
would be false.

Returns `400` if the job is not active.

## Parameters

**id** `string` *required*

The job id returned by `POST /batch/scrape`.

## Example Request

```bash cURL theme={null}
curl -X POST "https://api.scrapengine.io/api/v1/batch/scrape/JOB_ID/cancel" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Response

```json theme={null}
{ "success": true }
```


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