# Cancel every active investigation of an agent **POST** `/v1/agents/{id}/investigations/cancel-all` **Operation ID**: `cancelAllAgentInvestigations` **Summary**: Cancel every active investigation of an agent Marks every queued, running, and paused investigation of the agent as CANCELLING in one request. Cancellation is completed asynchronously. With pause=true, the agent is paused in the same transaction so it starts no new investigations. ## Tags - Agents ## Parameters - **id** (required) - path - Type: string - **pause** (optional) - query - Also pause the agent - Type: boolean ## Responses ### 202 Cancellation requests recorded - **Content-Type**: `application/json` / `CancelAllInvestigationsResponse` ### 401 Unauthorized ### 404 Agent not found