Skip to main content
POST
Ask a question

Authorizations

Authorization
string
header
required

An organisation API key: Authorization: Bearer apk_org_live_…

Headers

Idempotency-Key
string

Retry-safe key: the same key with the same body pays once.

Maximum string length: 255

Body

application/json
question
string
required
Maximum string length: 4000
Example:

"Registered address and latest filed accounts for Mollie B.V."

execution_mode
enum<string>
default:plan
Available options:
plan,
auto
max_spend
number

Required with auto.

Example:

1

limit
integer
Required range: 1 <= x <= 50
wait_seconds
integer
Required range: 0 <= x <= 55

Response

Success

id
string<uuid>
status
enum<string>
Available options:
requires_approval,
running,
completed,
partial,
needs_input,
needs_selection,
unsupported,
cancelled,
failed
question
string
plan
object
answer
object | null

Apiosk's reading of the results, with evidence pointers. Null for a direct call.

data
object

The source document, when the run produced exactly one.

results
object[]
usage
object
balance
object
errors
object[]
retry_after_ms
integer