Skip to main content
POST
Compare versions of insurance wording

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Headers

Idempotency-Key
string

Client-chosen key for safe retries: 1-128 letters, digits, -, _, . or :. Use a new random UUID for each intended operation and the same key when retrying it. Do not put customer data or credentials in the key.

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9\-_.:]+$

Body

application/json
variants
object[]
required

2–4 versions of the wording to compare, in the order to present them.

Required array length: 2 - 4 elements
sharedContext
object

Context applied to every variant. It supplements each variant's own context; conflicts are reported as gaps.

knowledge
(string<uuid> | object)[]

Up to 10 knowledge files (see validateFormKnowledge). They must validate without errors. Reasoning context, never form evidence.

Maximum array length: 10

A file the caller can read and download: a bare file UUID, or an object with an ID, label and annotations. A bare UUID gets the ID input-, where n is its one-based position among all inputs in request order (variants in order, each with its documents then its context documents; then sharedContext documents, knowledge and reviewMaterial).

Example:

"01a150b0-b6a4-774f-a0e0-ad385dbc5028"

focus
string[]

Up to 10 questions to focus on, 1–1,000 characters each. Omit for material similarities and differences.

Maximum array length: 10
Required string length: 1 - 1000
scenarios
object[]

Up to 10 hypothetical scenarios to answer for each variant.

Maximum array length: 10
reviewMaterial
(string<uuid> | object)[]

Up to 10 files holding saved earlier output or reviewer notes to reconcile. Never counted as policy evidence.

Maximum array length: 10

A file the caller can read and download: a bare file UUID, or an object with an ID, label and annotations. A bare UUID gets the ID input-, where n is its one-based position among all inputs in request order (variants in order, each with its documents then its context documents; then sharedContext documents, knowledge and reviewMaterial).

Example:

"01a150b0-b6a4-774f-a0e0-ad385dbc5028"

Response

A retried key whose comparison has finished: its current representation.

id
string
required

Form comparison UUID.

createdAt
string<date-time>
required

When the comparison was accepted.

idempotencyExpiresAt
string<date-time> | null
required

When the Idempotency-Key binding expires (7 days after acceptance); null without a key.

status
enum<string>
required

Accepted; the agent has not started.

Available options:
queued