Median

GET /tool-approvals

Updated Oct 1, 20261 minute read

List approvals

Everything pending in the organization, newest first. Name a conversation to get its whole recent history instead, settled rows included.

Part of Tool approvals.

Parameters

NameInTypeRequiredDescription
conversationquerystringNoA conversation id, for its recent approvals.

Responses

StatusDescription
200The approvals.
401The bearer token is missing, revoked, or expired.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

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

Example request

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

Still need help?

    Esc