Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Poll an approval

GET/v1/agent-approvals/{approvalId}Poll an approval

Reports where an approval stands, so an agent holding an approval_required response can wait for the sponsor's decision and retry. Only the agent the approval belongs to can read it.

Parameters

approvalIdstringpathrequired

Responses

200The approval's current stateapplication/json
object
decidedAtnull | stringrequired
expiresAtstringrequired
hintstring
idstringrequired
statusstringrequired

one of "pending", "approved", "approved_window", "denied", "expired", "consumed"

windowExpiresAtnull | stringrequired
Example response
{
  "decidedAt": "string",
  "expiresAt": "string",
  "hint": "string",
  "id": "string",
  "status": "approved",
  "windowExpiresAt": "string"
}
404No such approval for this agentapplication/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu