request_approval
Ask reviewers to approve or reject an action before you take it, such as deleting data or spending money. Poll the request status and act only when approved.
Instructions
Ask people to approve or reject an action you are about to take outside Cue (deleting data, spending money, contacting many people), before you take it. Not for informing anyone: use send_event or send_message. Needs the messages:write scope.
Cue reports a cue.approval_requested event per reviewer, which the server's rules turn into a notification with a one-time review link; only people decide, no tool can. Returns the request: id, status (pending), title, body, reviewers, importance, metadata, expires_at and created_at. Then poll get_approval with the id and act only on approved. Agent keys may name only their agent's configured reviewers (403 otherwise) and have a limit of open requests (429, 10 by default).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | What the reviewer needs to decide (what, why, impact), up to 4,000 characters. Defaults to empty. | |
| title | Yes | What needs a decision, ideally a yes/no question such as `Refund order 9?`; 1-200 characters. | |
| metadata | No | JSON object returned unchanged with the request and its decision, e.g. `{"order": "9"}`, to tie it back to your work; at most 16 KB. Defaults to {}. | |
| reviewers | Yes | External ids of the 1-10 people who may decide; the first decision settles the request. | |
| importance | No | How urgently reviewers are notified; defaults to `high`. An agent's ceiling lowers anything above it. | high |
| expires_in_minutes | No | Minutes until an undecided request expires, which means no: 1 to 10080 (7 days), smaller values become 1. Defaults to 60. |