Skip to content

Allow or refuse one MCP call the turn is stopped on.

POST
/api/runs/{id}/approve
curl --request POST \
--url http://localhost:5173/api/runs/example/approve \
--cookie authjs.session-token=<authjs.session-token>

Takes { callId, allow }. The call id comes from the run's approval event. Answers { answered }, false when the question has already been settled, has timed out, or was never asked: two clients answering at once is ordinary, and the first answer is the one that counts. Unanswered for two minutes, a call is refused.

id
required
string

The decision was recorded

Expected a call id and a boolean.

No such run