---
title: "Open an investigation as a chat"
method: POST
path: "/v1/investigations/{investigationId}/chat"
tags: ["Investigations"]
---

# Open an investigation as a chat

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

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

Creates a new chat seeded with a copy of the investigation's transcript and returns its chat id, then durably requests the investigation's cancellation so it does not keep running alongside the chat. Each call opens a separate chat.

## Path parameters

- `investigationId` string, required

## Response `201`

Chat opened

- CreateChatResponse
  - `chatId` string

## Other responses

- `401`: Unauthorized
- `404`: Investigation not found

---

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