---
title: "Analyze an expert report"
method: POST
path: "/reports/analyze"
tags: ["Reports"]
---

# Analyze an expert report

`POST /reports/analyze`

## Request

- Base URL: `https://api.suprememind.ai/v1`
- URL: `https://api.suprememind.ai/v1/reports/analyze`
- Auth: HTTP bearer

Requires the `briefs` scope. Analyzes a document registered on the matter as
an expert report: its methodology, stated opinions, assumptions, data sources
and apparent vulnerabilities. `attack` (the default) reads the other side's
report; `mirror` red-teams your own draft before service. Runs as a job; poll
`GET /jobs/{id}` or listen for `report.completed`. The result is stored on the
matter as `case_context.target_report`, where every later brief on the matter
reads it, as in the app. Free. Native text only: a scanned report fails with
a message asking for a text copy. With a test key a fixed, labelled sample is
returned at once.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `matter_id` string, required
  - `document_id` integer, required
  - `mode` 'attack' | 'mirror'

## Response `202`

The analysis was queued (or, for a test key, finished).

- JobAccepted
  - `id` string, required
  - `object` 'job', required
  - `kind` 'extract' | 'report', required
  - `livemode` boolean
  - `status` 'queued' | 'succeeded', required
  - `matter_id` string
  - `created_at` string, date-time, required

## 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.
- `422`: This Idempotency-Key was already used with a different request.
- `429`: Too many requests, or too many jobs in flight.

---

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