Skip to main content
POST
Call a source

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

Source id or name.

operation
string
required

Capability, endpoint id or operation name.

Query Parameters

max_spend
number

Refuse before paying if the maximum cost is higher.

Example:

1

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

Body

application/json

Input values, keyed by fact type, the source's own parameter name, or an unambiguous last word.

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