Median

POST /tool-approvals/{id}/deny

Updated Oct 1, 20261 minute read

Deny a tool call

Declines it. The agent gets a turn to tell the customer gracefully, when the thread is still its to speak in.

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/deny \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc