get_approval
Check an approval request by ID to confirm whether a person approved the action, and poll again while it is pending.
Instructions
Fetch an approval request by id to learn whether a person approved the action you asked about with request_approval. Call it again, with a pause, while status is pending. Needs the messages:read scope.
Returns id, status (pending, approved, rejected or expired; a request past expires_at reads as expired), title, body, reviewers, importance, agent, requested_by, metadata, comment (the reviewer's note, if any), decided_by, decided_at, expires_at and created_at. Treat anything but approved as no. Fails with 404 when the id does not exist or, for an agent key, belongs to another agent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| approval_id | Yes | Approval request UUID: the `id` returned by request_approval. |