Approvals API
Reference for the 7 Approvals operations in the Intuidy API.
Responses are JSON. A successful response is { "success": true, "data": …, "meta": … }, and each operation below documents its data. Errors use the error envelope described in Errors, pagination and limits.
| Operation | Method and path | Authorization |
|---|---|---|
| The approvals inbox | GET /approvals | approvals:read |
| One held action, args included | GET /approvals/actions/{actionId} | approvals:read |
| Release, reject or triage a held action | POST /approvals/actions/{actionId} | approvals:write |
| Resume or reject a hibernated team mission | POST /approvals/runs/{jobId} | approvals:write |
| The key owner's standing tool grants | GET /approvals/grants | approvals:read |
| Grant a tool "always allow" | POST /approvals/grants | approvals:write |
| Revoke a standing grant | DELETE /approvals/grants | approvals:write |
The approvals inbox
GET /approvals
Two kinds of things wait for a human here: held_actions — single
tool calls the policy gate denied in a non-interactive run because a
data-governance rule demanded a human — and held_runs — hibernated team missions waiting on human
input, each carrying its hitl_request.
Held actions are listed in the REDACTED shape: args_preview only.
The full args live behind GET /approvals/actions/{actionId}, the
informed-approval detail — read it before you approve.
A key owner without manage_ai_org_snippets still sees other users'
holds, but each one comes back with args_preview: {} and
args_redacted: true. The owner's own holds are not redacted.
held_runs lists the key owner's own paused missions, or the whole
company's when the owner holds manage_ai_org_snippets (the same bar
that resuming another user's mission requires).
Authorization: scope approvals:read.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
status | "held" or "releasing" or "released" or "rejected" or "failed" or "expired" or "decided" or "all" | No | Held-actions filter (held_runs are always current). decided is the decision history, every settled action, including decisions made in a chat or on a dashboard. |
agent_id | integer | No | — |
triage | "exception" or "reusable" or "system_gap" | No | Only settled decisions filed under this triage bin (use with status=all or a settled status) |
limit | integer | No | — |
offset | integer | No | — |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
held_actions | array of HeldAction | — |
held_runs | array of object | — |
held_runs[].job_id | integer | — |
held_runs[].team_id | integer | — |
held_runs[].title | string or null | — |
held_runs[].hitl_request | object or null | — |
held_runs[].held_at | string (date-time) or null | — |
counts | object | — |
counts.held_actions | integer | — |
counts.held_runs | integer | — |
Errors 400, 403 (INSUFFICIENT_SCOPE). See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/approvals" \
-H "Authorization: Bearer $INTUIDY_API_KEY"One held action, args included
GET /approvals/actions/{actionId}
Deliberately the ONLY place the raw held args are readable: approving a call is only meaningful when the approver saw exactly what it will do, and a list is not where anyone reads carefully. Read this before you POST approve.
Authorization: scope approvals:read.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
actionId | integer | Yes | — |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
held_action | HeldActionDetail | — |
Errors 403 (INSUFFICIENT_SCOPE), 404. See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/approvals/actions/<actionId>" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Release, reject or triage a held action
POST /approvals/actions/{actionId}
{ action: "approve", reason?, args? } RELEASES the hold: the held
call executes immediately, as the key's user — this is the previously
denied write actually going out, marked approved the same way as an
approval in the web app.
Send args (the complete argument object, not a patch) to run the
call with edited arguments in place of the proposed ones: today's
data rules are applied to the edit, the proposal stays readable as
args, and what ran is edited_args with changed_keys. An edit
is a new tool call, so the key also needs agents:execute (the
scope that starts an agent run); without it the request returns
403 INSUFFICIENT_SCOPE and runs nothing. Omit args to approve
the call as proposed with approvals:write alone.
{ action: "reject", reason? } settles it without executing.
{ action: "triage", bin, note? } files a SETTLED action under
exception (a one-off, kept as context; teaches nothing),
reusable (a decision that should hold next time: one lesson is
written into the agent's memory and shown to the agent beside that
tool on its later runs) or system_gap (the ontology, a constraint
or a workflow should change: the note, or else the decision reason,
goes to the Learned knowledge review queue as a pending fact). It
runs nothing. A later triage replaces the earlier one and withdraws
what it wrote; learning in the response says what happened.
Releasing a hold that belongs to a DIFFERENT user is an
org-governance act — allowed only when the key owner holds
manage_ai_org_snippets; releasing your own is not.
Authorization: scope approvals:write. Approving with edited args also needs agents:execute, the scope that starts an agent run, because an edit is a new tool call. Approving the call as proposed, rejecting and triaging need approvals:write only.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
actionId | integer | Yes | — |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
action | "approve" or "reject" or "triage" | Yes | — |
reason | string | No | Why the action is approved or rejected. Kept with the decision. |
args | object | No | approve only. The complete arguments to run in place of the proposed ones. Needs agents:execute as well as approvals:write. |
bin | "exception" or "reusable" or "system_gap" | No | triage only (required there) |
note | string | No | triage only. What was learned. For system_gap, what should change; it becomes the fact a person reviews. |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
held_action | object | — |
held_action.id | integer | — |
held_action.tool | string or null | — |
held_action.status | "released" or "rejected" or "failed" or "expired" | released or failed after an approve, rejected after a reject, and the settled status a triage filed |
held_action.result_status | string | approve only. ok when the call succeeded, error when it failed. |
held_action.summary | string | approve only. A short, credential-masked summary of what the call returned. |
held_action.edited | boolean | approve only. Whether the call ran with edited arguments. |
held_action.changed_keys | array of string or null | approve only. The top-level argument keys the edit changed; null when the call was not edited. |
held_action.triage | object | triage only. How the decision is now filed. |
held_action.learning | DecisionLearning | — |
Errors 400, 402, 403 (INSUFFICIENT_SCOPE), 404, 409, 422. See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/approvals/actions/<actionId>" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"<action>"}'Resume or reject a hibernated team mission
POST /approvals/runs/{jobId}
{ action: "approve", input } re-enters the team orchestration with
the human response the mission's hitl_request asked for (read it
via GET /approvals first), fires it DETACHED, and answers with the
job id and a poll_url on the standard run-status endpoint.
{ action: "reject", reason? } settles the mission failed with a
note saying who declined; nothing resumes.
Resuming a mission that belongs to a DIFFERENT user is organization
governance, same rule as releasing another user's held action: the
key owner must hold manage_ai_org_snippets.
Authorization: scope approvals:write.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
jobId | integer | Yes | — |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
action | "approve" or "reject" | Yes | — |
input | string | No | The human response the mission asked for (approve) |
reason | string | No | — |
Response 200 OK
Errors 400, 402, 403 (INSUFFICIENT_SCOPE), 404, 409. See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/approvals/runs/<jobId>" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"<action>"}'The key owner's standing tool grants
GET /approvals/grants
The "always allow" grants — tool, agent scope, expiry, provenance. SELF-ONLY BY CONSTRUCTION: every read and write here targets the key's owner. The approval policy is stored per user, and a user-delegated key managing that user's own grants is the user acting. There is deliberately no way to name another user.
Authorization: scope approvals:read.
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
grants | array of object | — |
Errors 403 (INSUFFICIENT_SCOPE). See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/approvals/grants" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Grant a tool "always allow"
POST /approvals/grants
Grants are stamped source api, so the Approvals UI shows exactly
which access method granted them. agent_id scopes the grant to one agent;
omitted, it applies across all agents.
Authorization: scope approvals:write.
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
tool_name | string | Yes | — |
agent_id | integer | No | — |
expires_in_days | integer | No | — |
Response 200 OK
Errors 400, 403 (INSUFFICIENT_SCOPE). See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/approvals/grants" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tool_name":"<tool_name>"}'Revoke a standing grant
DELETE /approvals/grants
?tool_name=<name> alone revokes the tool in EVERY scope (the
historical revoke); &agent_id=<n> revokes that agent's grant only;
&agent_id=global revokes only the all-agents grant.
Authorization: scope approvals:write.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
tool_name | string | Yes | — |
agent_id | string | No | A positive integer, or the literal global |
Response 200 OK
Errors 400, 403 (INSUFFICIENT_SCOPE). See Errors, pagination and limits.
Example request
curl -X DELETE "https://vantage.intuidy.com/api/v1/approvals/grants" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Objects
DecisionLearning
What a triage taught. Present on triage responses only.
| Field | Type | Description |
|---|---|---|
lesson | "written" or "withdrawn" or "skipped" or "failed" or null or null | The lesson in the agent's memory. skipped when the decision cannot teach an agent (a dashboard action, no agent, expired, or an agent the person it ran for cannot use). written also when that agent's lessons are turned off in Knowledge; the summary then says the agent will not see it. |
fact | "raised" or "exists" or "withdrawn" or "kept" or "skipped" or "failed" or null or null | The pending fact in Learned knowledge. skipped when a system gap has neither a note nor a decision reason; kept when an earlier fact was already reviewed. |
summary | string or null | One sentence per effect, for the person who filed it |
HeldAction
The LIST view of a held action — args as a redacted per-key preview only. The full raw args are deliberately reachable only through GET /approvals/actions/{actionId}, the informed-approval detail.
| Field | Type | Description |
|---|---|---|
id | integer | — |
tool | string or null | — |
status | "held" or "releasing" or "released" or "rejected" or "failed" or "expired" | releasing while an approved call runs |
reason | string or null | — |
agent_id | integer or null | — |
user_id | integer or null | — |
destructive | boolean | — |
actor_type | string or null | — |
source_job_id | integer or null | — |
args_preview | object | Key names with values truncated to 120 chars — a glimpse, not the call |
args_sha256 | string or null | — |
args_redacted | boolean | Present and true when the hold belongs to another user and the viewer lacks manage_ai_org_snippets; args_preview is then empty |
held_at | string (date-time) or null | — |
deadline | string (date-time) or null | — |
expired | boolean | — |
kind | "held" or "chat" or "dashboard" | Where it was decided. held waited in the inbox; chat and dashboard were decided where they were raised and are listed already settled. |
has_reasoning | boolean | Whether the agent gave a rationale with the call. The text is on the detail. |
decided_by | integer or null | The user who approved or rejected it |
decided_at | string (date-time) or null | — |
decision_reason | string or null | The reviewer's note on the approval or rejection. Withheld (null) on another user's hold when args_redacted is true. |
edited | boolean | Whether the reviewer approved it with edited arguments |
changed_keys | array of string | The top-level argument keys the reviewer changed |
triage | object or null | How the settled decision was filed, or null when it has not been |
triage.bin | "exception" or "reusable" or "system_gap" | — |
triage.label | string | — |
triage.note | string | — |
triage.by | integer or null | — |
triage.at | string (date-time) or null | — |
HeldActionDetail
Everything in the list view PLUS the raw args and any settle result.
| Field | Type | Description |
|---|---|---|
id | integer | — |
tool | string or null | — |
status | "held" or "releasing" or "released" or "rejected" or "failed" or "expired" | releasing while an approved call runs |
reason | string or null | — |
agent_id | integer or null | — |
user_id | integer or null | — |
destructive | boolean | — |
actor_type | string or null | — |
source_job_id | integer or null | — |
args_preview | object | Key names with values truncated to 120 chars — a glimpse, not the call |
args_sha256 | string or null | — |
args_redacted | boolean | Present and true when the hold belongs to another user and the viewer lacks manage_ai_org_snippets; args_preview is then empty |
held_at | string (date-time) or null | — |
deadline | string (date-time) or null | — |
expired | boolean | — |
kind | "held" or "chat" or "dashboard" | Where it was decided. held waited in the inbox; chat and dashboard were decided where they were raised and are listed already settled. |
has_reasoning | boolean | Whether the agent gave a rationale with the call. The text is on the detail. |
decided_by | integer or null | The user who approved or rejected it |
decided_at | string (date-time) or null | — |
decision_reason | string or null | The reviewer's note on the approval or rejection. Withheld (null) on another user's hold when args_redacted is true. |
edited | boolean | Whether the reviewer approved it with edited arguments |
changed_keys | array of string | The top-level argument keys the reviewer changed |
triage | object or null | How the settled decision was filed, or null when it has not been |
triage.bin | "exception" or "reusable" or "system_gap" | — |
triage.label | string | — |
triage.note | string | — |
triage.by | integer or null | — |
triage.at | string (date-time) or null | — |
args | object | The held call's full arguments as PROPOSED — read them before you approve |
reasoning | string or null | What the agent said when it made the call, when it said anything |
edited_args | object or null | The arguments that ran, when the reviewer edited the proposal before approving |
result | object or null | The settle result, present once released/rejected |