---
title: "Cancel an investigation"
method: POST
path: "/v1/investigations/{investigationId}/cancel"
tags: ["Investigations"]
---

# Cancel an investigation

`POST /v1/investigations/{investigationId}/cancel`

## 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/{investigationId}/cancel`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Durably marks an eligible investigation as CANCELLING and returns 202. An asynchronous reconciler cancels its workflow, if one exists, and it then finalizes as CANCELLED.

## Path parameters

- `investigationId` string, required

## Response `202`

Cancel requested

## Other responses

- `401`: Unauthorized
- `404`: Investigation not found
- `409`: Investigation is already finished

---

[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)
