---
title: "End a session, optionally with a debrief"
method: POST
path: "/cross-examinations/{id}/end"
tags: ["Cross-examination"]
---

# End a session, optionally with a debrief

`POST /cross-examinations/{id}/end`

## Request

- Base URL: `https://api.suprememind.ai/v1`
- URL: `https://api.suprememind.ai/v1/cross-examinations/{id}/end`
- Auth: HTTP bearer

Requires the `cross_exam` scope. With `debrief: true` the app's debrief runs on
the transcript; it is refused, with the reason in its text, when fewer than two
questions were asked or too few were put as cross-examination. Free. Ending
twice is harmless.

## Request body

- object
  - `debrief` boolean

## Response `200`

The ended session, with its transcript and any debrief.

- CrossExamination
  - `id` string, required
  - `object` 'cross_examination', required
  - `livemode` boolean, required
  - `status` 'active' | 'ended', required
  - `matter_id` string, required
  - `expert_class` string, nullable
  - `mode` 'oppose' | 'prepare', required
  - `difficulty` 'cooperative' | 'hostile'
  - `questions_asked` integer, required
  - `question_limit` 25, required
  - `charged_credits` number, required
  - `created_at` string, date-time, required
  - `ended_at` string, date-time, nullable
  - `transcript` object[]
    - `role` 'counsel' | 'witness'
    - `text` string
  - `debrief` string
  - `superseded` boolean
  - `sample` object
    - `note` string

## Other responses

- `400`: The request was malformed.
- `401`: Missing, malformed, unknown or revoked key.
- `403`: The key lacks the scope, the address is not on its allowlist, or API access is off for the account.
- `404`: Nothing with that id is visible to this key.
- `429`: Too many requests, or too many jobs in flight.
- `502`: The session ended but the debrief could not be written; call end again to retry it.

---

[API](https://skmtc.dev/suprememind/apis/supreme-mind-api.md) · [All operations](https://skmtc.dev/suprememind/apis/supreme-mind-api/llms.txt) · [OpenAPI document](https://skmtc.dev/suprememind/apis/supreme-mind-api/revisions/a7fdd32883bc?raw)
