Run the chosen API call
apiosk_executeRun the offer the user chose and return the result. Apiosk settles the call from the connected balance, at the price that was shown. Pass offer_token exactly as apiosk_discover returned it for the row the user picked, prompt set to the job you searched for, and max_price_usdc set to the price you showed — the call is refused rather than settled if the real price is above it. The token pins the endpoint and the price together, so there is nothing else to state and no price for you to restate. Before calling: say the exact price to the user and have them choose; never pick for them and never call this to explore. A token is good for an hour — if the user takes longer, run apiosk_discover again and use the fresh one. If the buyer's rules require a human to approve, this returns status: approval_required with an approval_id: poll apiosk_approval_status, then call this again with the same offer_token once approved. If it returns status: payment_required, the balance is empty or over its limit: call apiosk_connect to see which, and do not retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | The request body, in the provider's own schema. | |
| query | No | Optional query-string parameters. | |
| prompt | Yes | The job you searched for, in the user's own words. Recorded with the pick so the purchase reads back as an answer to a question rather than a bare charge. | |
| operation | No | Optional explicit operation id or path. | |
| approval_id | No | Optional approval id returned by apiosk_execute after an approval_required hold. | |
| input_parts | No | Optional exact split of provider inputs by path, query and body. The Apiosk approval card supplies this automatically. | |
| offer_token | Yes | The row the user chose, as `offer_token` from apiosk_discover. Opaque: pass it back exactly as given. It pins the endpoint AND the price the user was shown, and is good for one hour. | |
| path_params | No | Optional path parameters. | |
| max_price_usdc | Yes | The price ceiling — the exact price you showed the user. The call is refused, not paid, if the real price exceeds it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||