Median

GET /tool-approvals/{id}

Updated Oct 1, 20261 minute read

Get an approval

One request or run, watched as it settles. result carries what the endpoint answered once the call lands.

Part of Tool approvals.

Parameters

NameInTypeRequiredDescription
idpathstringYesAn approval id.

Responses

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

200 body

FieldTypeRequiredDescription
idstringNo
conversationIdstringNo
toolNamestringNo
toolDescriptionstringNo
inputstringNoThe call's arguments, as serialized JSON.
status"pending" | "executing" | "succeeded" | "failed" | "denied" | "expired"No
initiatedBy"agent" | "teammate"No
requestedAtintegerNo
expiresAtintegerNo
resolvedByNameanyNo
resolvedAtanyNo
resultanyNoWhat the endpoint answered, on a call that got that far.
erroranyNo

Example request

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

Still need help?

    Esc