Skip to main content
POST
Call a source (explicit form)

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

Path Parameters

source_id
string
required

Body

application/json
operation
string
required
Example:

"company_registry.search"

input
object
Example:
max_spend
number
Example:

1

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
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