Apiosk run plan
apiosk_execute_planStart the plan the user approved, and return the job that runs it. Pass plan_token exactly as apiosk_plan returned it; it is the whole authorisation — the plan version, its hash and its one price ceiling, signed — so there is nothing else to pass and nothing here that could change what runs. Apiosk settles the calls from the connected balance, never above the ceiling that was approved. Call this only after a person approved that exact plan, and never to explore. It returns immediately with a job id: the work outlives this call, so watch it with apiosk_job_status, answer it with apiosk_resolve_job when it asks which subject was meant, and stop it with apiosk_cancel_job. If the plan changed or its quote expired since approval this refuses rather than starting — run apiosk_plan again and have the user approve the new one. Starting the same approved plan twice gives one job, not two.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_token | Yes | The approved plan version, as `plan.plan_token` from apiosk_plan. Opaque: pass it back exactly as given. It carries the price ceiling, so there is no price for you to restate. | |
| idempotency_key | No | Optional. Two starts with the same key give one job. Leave it out and one is derived from the plan token, which already means one job per approved plan. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||