Skip to main content
POST
Continue a saved run

Authorizations

Authorization
string
header
required

An organisation API key: Authorization: Bearer apk_org_live_…

Headers

Idempotency-Key
string
required

Unique per task continuation. Reuse for retries of the same state/action/input.

Required string length: 1 - 255
Pattern: ^[!-~]+$

Path Parameters

id
string<uuid>
required

Body

application/json
state
object
required

Signed snapshot returned by this run. Copy unchanged.

action_id
string<uuid>
required
input
object
required
wait_seconds
integer
default:25
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
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