Skip to main content
POST
Execute the API selected from Ask

Authorizations

Authorization
string
header
required

An organisation API key: Authorization: Bearer apk_org_live_…

Headers

Idempotency-Key
string
required
Required string length: 1 - 255

Body

application/json
api_id
string
required
max_spend
required

Explicit approved total in USD; checked before purchase.

Required range: x >= 0
capability
string
input
object
wait_seconds
integer

Registered APIs only; external purchases return asynchronously.

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

Response

Success

id
string<uuid>
status
enum<string>
Available options:
requires_approval,
running,
completed,
partial,
needs_input,
needs_selection,
unsupported,
cancelled,
failed
question
string
capability
string

European capability slug for a structured capability plan or run.

normalized_records
object[]

Contract-extracted provider facts grouped by subject. Equal facts for one subject are combined with all their source references; absent fields are never invented.

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
message
string | null

Natural-language clarification for needs_input.

needs_input
object[]
candidates
object[] | null
approval_required_reason
object
metadata
object

Attribution for a single result, when present.

continuation
object