Skip to main content
POST
Upload Face Source File

Headers

authorization
string | null

Path Parameters

face_id
string
required

Query Parameters

type
string
default:document

What the file is: document, thread, thread_json or email_jsonl. Each line of an email_jsonl file is a JSON object with author ("self" if the face wrote it, else "other"), sender, date (ISO-8601) and the message text in plaintextBody (or htmlBody or snippet; body and text are accepted for plaintextBody), plus optional kind (the medium, e.g. "email"), subject, toRecipients, ccRecipients, id and prior_message. Any other field is refused, and an invalid line's error lists everything wrong with it.

Pattern: ^(document|thread|thread_json|email_jsonl|jsonl)$
perspective
string
default:third-person
Pattern: ^(first-person|third-person)$
face_speaker
string | null
emails_per_thread
integer
default:50
Required range: 1 <= x <= 1000
per_thread
integer | null

Messages per thread. The neutral spelling of emails_per_thread; wins when both are sent.

Required range: 1 <= x <= 1000
strict
boolean
default:false

corpus uploads: all-or-nothing (422 on any invalid message) instead of the default skip-and-report

medium
string | null

type=document only: what the uploaded file IS (email, essay, conversation,...)

Body

multipart/form-data
file
file
required

Response

Successful Response

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
type
string
default:document