---
title: "Create Digest"
method: POST
path: "/v2/insights/digests"
---

# Create Digest

`POST /v2/insights/digests`

## Request

- Base URL: `https://api.imentiv.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.imentiv.ai/v2/insights/digests`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Digest one document into a bounded summary with verified quotes.

Send the document as ordered chunks. Each quote in the result is an exact span of
the chunks it cites. A repeat of an identical request (same chunks, focus and
`digest_version`) returns the stored digest at no charge.

Answers 200 with `status: ready` when the digest is available within `wait_s`,
otherwise 202 with `status: running`; poll `GET /v2/insights/digests/{digest_key}`.
A digest that stopped before finishing reports `failed` with code `interrupted`:
send this request again, since document text is never stored. The result is kept
for `ttl_days`. A successful digest is billed once; a failed one is not billed.

## Request body

- DigestRequest
  - `focus` FocusIn
    - `subjects` string[]
    - `objective` string
  - `product` string, nullable
  - `wait_s` number: How long to wait for a new result before answering 202 `running`.
  - `ttl_days` integer: How long a finished result is kept.
  - `chunks` ChunkIn[], required
    - `chunk_id` string, required
    - `version` string, required
    - `page` integer, nullable
    - `text` string, required
  - `digest_version` string, required

## Response `200`

Successful Response

- DigestResponse
  - `status` 'ready' | 'running' | 'failed', required
  - `digest_key` string, required
  - `digest` object, nullable
  - `cached` boolean
  - `usage` ArtifactUsage
    - `tokens_by_model` object
    - `credits_charged` integer: Credits charged for producing this result; 0 on a cached hit.
  - `error` ArtifactError
    - `code` string, required
    - `message` string, required
    - `stage` string, nullable
  - `expires_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-01** `72330e2229c7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/imentiv/apis/welcome-to-imentiv-ai/changes/v2/insights/digests/post.md)

---

[API](https://skmtc.dev/imentiv/apis/welcome-to-imentiv-ai.md) - [All operations](https://skmtc.dev/imentiv/apis/welcome-to-imentiv-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/imentiv/apis/welcome-to-imentiv-ai/revisions/bc15cec7e794?raw)
