Skip to main content
POST
Start an extraction of an underwriting submission’s documents

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string
required

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\-_.:]+$

Path Parameters

submissionId
string<uuid>
required

The submission’s id.

Body

application/json
documentIds
string<uuid>[]

The documents to read. Left out, every document of the submission is read.

Required array length: 1 - 100 elements

Response

The extraction, already final: a retry with the same key and request, or a start whose run ended or was refused at once.

id
string<uuid>
required
submissionId
string<uuid>
required
status
string
required

Extensible: queued while it waits behind another extraction or its run has not started, then running, and completed, failed or cancelled once it is final.

Minimum string length: 1
program
object | null
required

The program and release whose inputs it proposes; null for a submission with no program, which gets facts only.

documents
object[]
required

The documents it reads, pinned to their versions; empty while it is queued.

createdAt
string<date-time>
required
createdBy
object
required

Who started it. Its run acts as the extraction’s own service identity, never as this caller.

finishedAt
string<date-time> | null
required
idempotencyExpiresAt
string<date-time>
required

Until when the Idempotency-Key answers this extraction: the key of the start being answered, or on a read the key that first started it.

failure
object | null
required

Why a failed extraction failed; invalid_extraction when its result was refused.

result
object | null
required

What was read, checked against the program’s contract and compared with the extraction before it; null until it completes.

profile
object
required

The extraction profile it read with: the documents a submission should give, what the desk wants beyond what the program requires, and how to find and match values. The facts are the program’s notes, read from the release’s contract.

values
object[]
required

The values the submission holds now by input path, accepted or set by the underwriter, which result is held against: each as its answer in the submission’s log was written, with the place it was read where it was taken from a file.

factValues
object[]
required

The values the submission holds now for its facts (the program’s notes), by fact, row and field, used or typed by the underwriter: each with when and by whom the note it is in was last written.

rulings
object[]
required

The proposed values the underwriter set aside that stand now, on inputs (by path) and on facts’ values (by fact, row and field), made on this extraction or an earlier one, oldest first: dismissed, or overridden by the value held at the path. An accept is not listed: the value it took is in values or factValues, and a proposal of the value held is ruled and accepted.

asks
object | null
required

What the submission’s log asks now, from its status: the inputs the program needs next, and the notes whose value lapsed when the document they cite was replaced, with what each was. Its outstanding follows it: an input the run did not find waits only while the program asks for it. Null while the submission has no log.

procedureRunId
string<uuid> | null
required

Its procedure run; null while queued.

webUrl
string<uri> | null
required

The run’s page in Effective, where the caller can open it; null otherwise.

authority
object

Caller permissions on this submission’s release, provided by the detail read. The log checks each write.