POST
Ask a question about a document

Authorizations

Authorization
string
header
required

API token from the Voho console. Begins with voho_sk_live_.

Body

Send multipart/form-data with the file attached, or JSON with the file base64 encoded.

file
file
required

The file itself. Accepted types: application/pdf, image/png, image/jpeg, image/webp.

question
string
required

Truncated at 2,000 characters.

Example:

"What is the torque spec for the pump on line three, and which revision is this?"

Response

The answer.

answer
string
quotes
string[]

Verbatim lines from the document, in its own language.

answered
boolean

False when the document does not contain the answer. answer then says what is missing.

cost_cents
integer

What this call cost, in cents. Also returned as the X-Voho-Cost-Cents header.