Skip to main content
POST
Record statements on an underwriting file

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

Path Parameters

fileId
string<uuid>
required

Underwriting file ID: the id of createUnderwritingFile or listUnderwritingFiles.

Query Parameters

dryRun
enum<string>
default:false

true to compute what the statements would do and store nothing (200, dryRun: true). Defaults to false.

Available options:
true,
false

Body

application/json
after
integer
required

The lastSeq you last read; 0 for an empty log. If the log moved on, nothing is written (or, on a dry run, computed) and the response is 409 stale_after.

Required range: 0 <= x <= 2147483647
statements
object[]
required

Typed statements, appended in order, all or nothing.

Required array length: 1 - 200 elements

Open the underwriting file on products the manual sells.

Response

A dry run: what the statements would do, with nothing stored.

file
object
required
lastSeq
integer
required

Send as after with your next statements.

actingAs
object
required

Who you act as here.

view
object
required

The workbench view as you may see it now. format, lastSeq, the offers’ id and stage, and ratings are this API’s contract; every other field is defined by the engine’s view format. Tolerate fields you do not know.

dryRun
boolean
required

True for dryRun=true: nothing was stored. entries, runs and view are what the statements would produce, priced; file is as stored.

applyId
string | null
required

This request; the entries it wrote carry it. Null on a dry run.

seqs
integer[]
required

Seqs of the entries your statements appended (the manual’s own entries after them are in entries); empty on a dry run.

replayed
boolean
required

True when this Idempotency-Key was already applied: nothing new was appended.

entries
object[]
required

The entries appended (on a dry run, that would be): your statements, then any the manual wrote itself after them.

runs
object[]
required

The ratings this request made with the manual’s bound rater bundles, each kept for good with a rater execution record. On a dry run the what-if is rated too, so the preview is priced, and nothing is kept. Ratings it did not make are in view.ratings as needed, with their reason.