Result format
Job status
GET /v1/jobs/{id} returns the job:
Times are UTC, formatted YYYY-MM-DDTHH:MM:SSZ.
The result
GET /v1/jobs/{id}/result returns the result once. Store it on your side
straight away: a second request returns 410 result_expired.
New fields may be added; ignore fields you do not recognise.
Warnings
The summary is produced in every case. Show warnings to the user next to it.
Rendering the summary
The summary is generated from your documents, and a document can contain text crafted to get unwanted content into it. The API returns it as an inert string; render it safely:
- use a Markdown renderer that sanitizes: no raw HTML;
- allow only
http,httpsandmailtolinks — neverjavascript:ordata:; - do not load remote images automatically; show them as links, or drop them;
- never evaluate or execute anything in it.
To turn citations into links or chips, transform [n] in the rendered,
sanitized text, using references to find each document. Do not build HTML by
string substitution on the summary itself.
Deleting
DELETE /v1/jobs/{id} cancels a queued or running job, or deletes a result that
has not been downloaded. Nothing is kept beyond 24 hours either way.

