---
title: "Approve a gated action"
method: POST
path: "/api/v1/approvals/{approval_id}/approve"
tags: ["Approvals"]
---

# Approve a gated action

`POST /api/v1/approvals/{approval_id}/approve`

## Request

- Base URL: `https://dashboard.sealgate.ai`
- URL: `https://dashboard.sealgate.ai/api/v1/approvals/{approval_id}/approve`
- Auth: HTTP bearer

Approve a blocked trifecta or policy action. Requires the admin role.

## Request body

- ApproveAction
  - `note` string, nullable: Optional note explaining the approval

## Response `200`

The approved request

- ApprovalRequest: A gated approval request derived from a blocked session action.
  - `id` integer, required: Approval request ID
  - `session_id` string, required: Session that triggered the approval request
  - `tool_name` string, required: Name of the tool requesting approval
  - `tool_params` object, nullable: Parameters passed to the tool
  - `user_id` string, required
  - `user_email` string, nullable
  - `agent_name` string, nullable
  - `trifecta_flags` string[], required
  - `risk` RiskInfo: Plain-language risk explanation for a blocked action.
    - `title` string
    - `headline` string
    - `summary` string
    - `legs` object, nullable: Trifecta legs (private/untrusted/external) with their sources
    - `server_name` string
    - `acl_level` string
    - `risk_level` string, nullable: Severity: low, medium, high, or critical
    - `policy_rule` string, nullable
    - `source` string: How the summary was produced: template or llm
  - `reason` string, nullable: What held the call: 'trifecta'/'trifecta_prevent' or 'policy_approval'
  - `policy_rule` string, nullable
  - `status` string, required: Approval status: pending, approved, denied
  - `created_at` string, date-time, required

## Other responses

- `401`: Missing or invalid API key
- `403`: The caller's role is not permitted to perform this action
- `404`: The requested resource was not found
- `422`: Request validation failed

---

[API](https://skmtc.dev/sealgate/apis/sealgate-management-api.md) · [All operations](https://skmtc.dev/sealgate/apis/sealgate-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sealgate/apis/sealgate-management-api/revisions/c9ca2e599065?raw)
