Skip to main content
GET
Wait (one blocking call) for the session's latest chat turn and return its result and a download link.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Path Parameters

session_id
string
required

Query Parameters

wait_seconds
integer
default:90

How long to wait for the turn to settle (default 90 s).

Required range: 0 <= x <= 110
export_format
enum<string> | null

When set, also return download for the document in this format (not for a failed or cancelled turn). While changes are held for review, it is the document as it was before this turn (before_this_turn is true): nothing from this turn is in it yet.

Available options:
docx,
pdf,
html,
markdown,
txt
response_mode
enum<string>
default:summary

Shape of the returned result: 'summary' (default; its size does not grow with the document), 'compact' (adds per-section diffs) or 'full' (adds the whole document HTML).

Available options:
summary,
compact,
full
job_id
string | null

The job_id a 202 from /v1/chat/file returned: wait for exactly that call. Omit it to wait for the session's newest chat turn.

Response

Successful Response