---
title: "Cancel every active investigation in the organization"
method: POST
path: "/v1/investigations/cancel-all"
tags: ["Investigations"]
---

# Cancel every active investigation in the organization

`POST /v1/investigations/cancel-all`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/investigations/cancel-all`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Marks every queued, running, and paused investigation of every agent in the organization as CANCELLING in one request. Cancellation is completed asynchronously. With pause=true, every active agent is paused in the same transaction so none starts new investigations; resume each agent to undo it.

## Query parameters

- `pause` boolean

## Response `202`

Cancellation requests recorded

- CancelAllInvestigationsResponse
  - `cancelling` integer, required
  - `paused` integer, required

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/grepr/apis/grepr-api.md) - [All operations](https://skmtc.dev/grepr/apis/grepr-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grepr/apis/grepr-api/revisions/2a5ce03a0bf0?raw)
