Median

POST /tool-approvals/{id}/approve

Updated Oct 1, 20261 minute read

Approve a tool call

Approves a pending high risk call. It executes immediately, and the thread narrates who said yes.

Part of Tool approvals.

Parameters

NameInTypeRequiredDescription
idpathstringYesAn approval id.

Responses

StatusDescription
200Done.
401The bearer token is missing, revoked, or expired.
404Not one of yours, or not there at all.
409It already exists, or it was already settled.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
okbooleanNo

Example response

{
  "ok": true
}

Example request

curl -X POST https://api.median.sh/v1/tool-approvals/id/approve \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc