Passa al contenuto principale

Create Pending Action

POST 

/v1/pending-actions

Propose a tool call for a person to approve, instead of making it.

tool is the tool's short name and arguments its arguments, exactly as the call would carry them; reason is what the approver reads before deciding. Nothing runs now. The caller is the proposer and the one who may approve it: you are told in the app, and the call runs once you approve it, as you. It waits 72 hours unless expiresInSeconds says otherwise (at most 7 days), then expires without running.

This is how a run with nobody behind it (a scheduled assignment, a chat thread) leaves a change for its member. A member has at most 20 actions waiting (409 limit_reached). The tools that answer pending actions cannot themselves be proposed (422).

Request​

Responses​

Successful Response