---
title: "Count the organization's active investigations"
method: GET
path: "/v1/investigations/cancellable-counts"
tags: ["Investigations"]
---

# Count the organization's active investigations

`GET /v1/investigations/cancellable-counts`

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

Returns how many investigations across every agent in the organization are queued, running, or paused, and so would be cancelled by cancel-all, and whether the caller is authorized to call cancel-all.

## Response `200`

Counts retrieved

- CancellableInvestigationsResponse
  - `canCancel` boolean, required
  - `counts` CancellableInvestigationCounts, required
    - `paused` integer, required
    - `queued` integer, required
    - `running` 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)
