Skip to main content
POST
qa_file

Authorizations

X-API-Key
string
header
required

Path Parameters

workspace_id
string<uuid>
required

Workspace identifier.

Body

application/json

Request body for qa-file.

path names an uploaded source file — the same addressing as read-file; a workspace-internal derivative path is refused with invalid_request, and so is a table file (spreadsheet or record upload — ask those with query-tables). component scopes the question to one public component by name (a pdf section — the names file-metadata lists).

path
string
required
query
string
required
Required string length: 1 - 4096
component
string | null
include_citations
boolean
default:true

Response

Successful Response

Response body for qa-file.

engine reports what answered: recursive_llm for prose, vision for an image, and agent when the file has several parts and a QA agent worked across them. Citations always name the uploaded file, never anything internal.

job_id is the durable job row created for this run; poll or retrieve it via GET /v1/jobs/{job_id} to get the stored answer after the fact.

unavailable is always empty since table files moved to query-tables (which reports unqueryable selections there); the field is retained for wire compatibility.

answer
string
required
citations
Evidence · object[]
required
engine
enum<string>
required
Available options:
recursive_llm,
vision,
agent
confidence
enum<string> | null

The engine's self-graded confidence in the answer — how well the file content it read supports it, on the shared six-level scale (certain / very_high / high / medium / low / speculative). Null when the engine could not grade (a timeout's partial answer, a legacy run).

Available options:
certain,
very_high,
high,
medium,
low,
speculative
job_id
string<uuid> | null
timed_out
boolean
default:false
unavailable
UnavailableTable · object[]