Skip to main content
POST
Submit Compile Document

Headers

authorization
string | null

Body

application/json
alias
string
required
content
string
required
label
string | null
perspective
enum<string>
default:first-person
Available options:
first-person,
third-person
medium
string | null

Response

Successful Response

Shared shape for submit, get, edit responses.

document_id
string
required
alias
string
required
label
string
required
source
string
required
version
integer
required
content
string
required
token_count
integer
required
tokens_used
integer
required
tokens_limit
integer
required
synced
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
status
string
required
read-only

One of not_compiled, transcribing, queued, compiling, compiled, paused, failed.

progress
number
required
read-only

How far the compile has got, from 0 to 1. 1 only when compiled.

starts_at
string | null
required

The compile's scheduled start, ISO 8601 UTC, or when it started. Null when it starts at once.

rush
boolean
required
read-only

True when this compile was queued as a rush: it starts now, at the rush rate.

rush_premium_usd
number | null

While this compile is queued for its scheduled start: what a rush would cost you now, in USD, paid from credit (the difference from the standard rate when your plan covers the compile, the whole rush price when it is paid as you go). Null once it has started, when it is already a rush, or when there is no scheduled start.

synced_version
integer | null

Which revision the compile ran on. Null means this source has never been compiled. Lower than version means the text has been edited since.

synced_at
string<date-time> | null

When this document was last compiled. Null means never, or compiled before the instant was recorded.

read_only
boolean
default:false
perspective
string
default:first-person
medium
string | null
warnings
Warnings · object[]

Advice about the text just saved, as {code, message} entries. Empty when there is nothing to report.

stall_reason
string | null
error_code
string | null
finishing
boolean
default:false
current_counts
integer[] | null
compilable
boolean
default:true
compile_blocked_reason
string | null
word_count
integer | null
compile_min_words
integer | null
style
Style · object | null