Notifications and the approvals inbox
Two lists make up the inbox. Notifications are personal messages to the user: an approval is waiting, a request they raised was decided, a batch job finished. Approvals are the held tool calls of every workspace the user belongs to, raised by agents, API keys or other users, that any member may decide.

Notifications
Section titled “Notifications”The badge
Section titled “The badge”Poll the unread count (the shipped portal polls about every 30 seconds):
curl -s http://localhost:8100/v1/portal/notifications/unread-count \ -H "X-Tenant-ID: default" -H "Authorization: Bearer $JWT"unread = portal.call("GET", "/v1/portal/notifications/unread-count")["unread_count"]const { unread_count } = await api("/v1/portal/notifications/unread-count");{"unread_count": 3}The list
Section titled “The list”curl -s "http://localhost:8100/v1/portal/notifications?unread_only=true&page=1&page_size=20" \ -H "X-Tenant-ID: default" -H "Authorization: Bearer $JWT"{ "items": [ { "id": "01m61n3w4w8t2c6y0e3r5u7i9o", "notification_type": "tool_approval_request", "title": "Approval needed: applications_set_recommendation", "body": "Tool 'applications_set_recommendation' requested by agent-01M61N3B1GHVSCARE5CJZ5KEZ3 on server 'brutor-demo-applications' requires approval.", "metadata": { "approval_request_id": "01m61n3w4rkvkhhb598prj54b8", "tool_name": "applications_set_recommendation", "server_name": "brutor-demo-applications", "surface": "mcp", "requester": "agent-01M61N3B1GHVSCARE5CJZ5KEZ3" }, "is_read": false, "read_at": null, "created_at": "2026-10-28T16:22:27.736669+00:00" } ], "total": 1, "page": 1, "page_size": 20}| Query parameter | Example | Effect |
|---|---|---|
unread_only |
true |
Only unread. Default false |
notification_type |
tool_approval_request |
One type |
page |
1 |
1-based. Default 1 |
page_size |
20 |
Default 50, clamped to 1..200 |
Expired notifications are left out. The types the gateway writes today:
notification_type |
Sent to | metadata |
Deep link |
|---|---|---|---|
tool_approval_request |
The requester and the members of the workspace | approval_request_id, tool_name, server_name, surface (mcp, a2a, skill), requester |
Open the approval metadata.approval_request_id |
tool_approval_resolved |
The requesting user, when someone else decided | approval_request_id, tool_name, status (approved or rejected) |
Open the approval |
batch_job_completed, batch_job_failed |
The user who created the job | job_description, model, status, total_requests, completed_requests, failed_requests, error_message |
Open the batch job |
Render unknown types generically from title and body; new types may be added.
Mark as read
Section titled “Mark as read”| Call | Response |
|---|---|
POST /v1/portal/notifications/{id}/read |
{"message": "Notification marked as read", "count": 1} (also when it was already read; 404 for someone else’s) |
POST /v1/portal/notifications/mark-all-read |
{"message": "Marked 3 notification(s) as read", "count": 3} |
Approvals
Section titled “Approvals”The approvals list is not filtered to the user’s own requests: it holds every held call of every workspace the user is a member of, because any member may decide it.
The badge
Section titled “The badge”curl -s http://localhost:8100/v1/portal/approvals/pending-count \ -H "X-Tenant-ID: default" -H "Authorization: Bearer $JWT"{"pending_count": 9}A pending request past its expires_at is counted as expired even before the 60-second
sweeper has moved it.
The list
Section titled “The list”curl -s "http://localhost:8100/v1/portal/approvals?status=pending&page=1&page_size=20" \ -H "X-Tenant-ID: default" -H "Authorization: Bearer $JWT"pending = portal.call("GET", "/v1/portal/approvals", params={"status": "pending", "page": 1, "page_size": 20})["items"]const { items } = await api("/v1/portal/approvals?status=pending&page=1&page_size=20");{ "items": [ { "id": "01m61n3w4rkvkhhb598prj54b8", "server_name": "brutor-demo-applications", "capability_type": "tool", "capability_name": "applications_set_recommendation", "requester_type": "agent", "requester_display": "agent-01M61N3B1GHVSCARE5CJZ5KEZ3", "requester_name": "brutor-demo-screening-worker", "requester_group_id": "group-01M61N376V2RR6J2TV7Q7EVRET", "status": "pending", "decision": "pending", "token_used": false, "timeout_seconds": 86400, "expires_at": "2026-10-29T16:22:27.736669+00:00", "resolved_by": null, "resolved_at": null, "resolution_note": null, "created_at": "2026-10-28T16:22:27.736669+00:00" } ], "total": 9, "page": 1, "page_size": 20, "status_filter": "pending"}status is one of pending (default), approved, consumed, rejected, expired,
all. approved includes consumed. Any other value answers 400 with the list of
valid_statuses. Show the person requester_name (the agent or user name) rather than the
raw requester_display.
status (stored) |
decision (derived) |
token_used |
Meaning |
|---|---|---|---|
pending |
pending |
false |
Waiting for a person; lapses at expires_at |
approved |
approved |
false |
A person said yes; the requester has not redeemed the token yet |
consumed |
approved |
true |
Approved, and the requester ran the call |
rejected |
rejected |
false |
A person said no |
expired |
expired |
false |
Nobody decided in time, or the run was stopped |
Branch your UI on decision; show token_used as “ran” or “not yet run”.
The detail, with the arguments
Section titled “The detail, with the arguments”The list does not carry the arguments. Fetch the detail before asking anyone to decide:
curl -s http://localhost:8100/v1/portal/approvals/01m61n3w4rkvkhhb598prj54b8 \ -H "X-Tenant-ID: default" -H "Authorization: Bearer $JWT"{ "approval": { "id": "01m61n3w4rkvkhhb598prj54b8", "tenant_id": "default", "server_config_id": "srvconf-01M61N38VSZR54G4XTQ62B43DF", "server_name": "brutor-demo-applications", "capability_type": "tool", "capability_name": "applications_set_recommendation", "requester_type": "agent", "requester_user_id": "group-01M61N376V2RR6J2TV7Q7EVRET", "requester_api_key_id": "apikey-01M61N3BYAGN6X2H9K1G47MM6H", "requester_group_id": "group-01M61N376V2RR6J2TV7Q7EVRET", "requester_display": "agent-01M61N3B1GHVSCARE5CJZ5KEZ3", "requester_name": "brutor-demo-screening-worker", "run_id": "06GSDAPWJY4T107B1PKHEY4HT1", "call_arguments": { "application_id": "APP-20261027-0481", "recommendation": "decline", "amount_eur": 21300, "risk_band": "high", "rationale": "Recommend decline at pre-screen because ..." }, "request_metadata": { "policy_name": "Adverse or large decisions need an underwriter", "reason": "Adverse recommendations are reviewed by an underwriter.", "rule": "field_eq", "field": "recommendation", "surface": "mcp", "approval_window_source": "resource_group" }, "status": "pending", "decision": "pending", "token_used": false, "timeout_seconds": 86400, "expires_at": "2026-10-29T16:22:27.736669+00:00", "resolved_by": null, "resolved_at": null, "resolution_note": null, "created_at": "2026-10-28T16:22:27.736669+00:00" }}Render call_arguments exactly: it is what will run. request_metadata.policy_name and
reason say why the call was held, when a policy held it. run_id lets the approver quote
the run an admin can open in the Admin UI. A request outside the user’s workspaces answers
403 “Not a member of the request’s group”.
Decide
Section titled “Decide”-
Approve with an optional note:
Terminal window curl -s -X POST http://localhost:8100/v1/portal/approvals/01m61n3w4rkvkhhb598prj54b8/approve \-H "Content-Type: application/json" -H "X-Tenant-ID: default" -H "Authorization: Bearer $JWT" \-d '{"note": "Affordability is tight but the rationale holds"}'res = portal.call("POST", f"/v1/portal/approvals/{approval_id}/approve",json={"note": "Affordability is tight but the rationale holds"})const res = await api(`/v1/portal/approvals/${encodeURIComponent(id)}/approve`, {method: "POST",body: { note: "Affordability is tight but the rationale holds" },});{"id": "01m61n3w4rkvkhhb598prj54b8","status": "approved","resolved_by": "2","resolved_at": "2026-10-28T16:40:12.221Z","approval_token": "q3V9n0dJ7cK2...Xw","message": "Tool call 'applications_set_recommendation' approved"}When the request was raised by someone else (an agent polling, another user), you do nothing with the token: the requester picks it up from
GET /v1/portal/approvals/{id}/polland retries, and only the requester can redeem it. When your own chat raised it, retry the call as described in Tool calls. -
Or reject, same body:
Terminal window curl -s -X POST http://localhost:8100/v1/portal/approvals/01m61n3w4rkvkhhb598prj54b8/reject \-H "Content-Type: application/json" -H "X-Tenant-ID: default" -H "Authorization: Bearer $JWT" \-d '{"note": "Refer instead: income is from a new employer"}'{"id": "01m61n3w4rkvkhhb598prj54b8","status": "rejected","resolved_by": "2","resolved_at": "2026-10-28T16:41:03.870Z","message": "Tool call 'applications_set_recommendation' rejected"}
| Status | Body | Meaning |
|---|---|---|
403 |
“You must be a member of the resource group to approve this request” | Not in the request’s workspace |
404 |
“Approval request not found” | Unknown id in this tenant |
409 |
“Request already resolved with status: approved” | Someone decided first; refresh |
410 |
“Approval request has expired” | Too late; the request is now expired |
Every decision is written to the request log with the approver and the note, and the hold and what became of it feed the oversight evidence described in Human oversight. Use the note: it is what a reviewer reads. How admins configure holds and windows: Approvals.
Related
Section titled “Related”- Tool calls and approvals in chat: the requester’s side
- Approvals: configuring holds
- Human oversight: how decisions become evidence
- Portal API reference: notifications and approvals

