---
title: "Approve a pending Alloy decision"
method: POST
path: "/ai/decision/{id}/approve"
tags: ["ai-engine"]
---

# Approve a pending Alloy decision

`POST /ai/decision/{id}/approve`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/decision/{id}/approve`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

Marks a decision as approved. Requires exec or ops role for P1, exec-only for P0.
Records an immutable audit trail entry.

## Path parameters

- `id` string, required

## Request body

- object
  - `approverName` string

## Response `200`

Decision approved

- object
  - `decision` AlloyDecision: Schema-validated Alloy decision object (v2.0.0)
    - `decisionId` string, required
    - `workflowId` string, nullable
    - `signalIds` string[]
    - `recommendedAction` string, required
    - `rationaleSummary` string, required
    - `evidenceRefs` object[], required
      - `refId` string
      - `source` string
      - `sourceType` string
      - `content` string
      - `relevanceScore` number
      - `timestamp` string, nullable
      - `objectId` string, nullable
    - `confidence` number, required
    - `ownerSuggestion` string, nullable
    - `approvalRequired` boolean, required
    - `riskLevel` 'P0' | 'P1' | 'P2' | 'P3' | 'P4', required
    - `fallbackPlan` string, nullable
    - `modelRoute` string, required
    - `schemaVersion` '2.0.0', required
    - `createdAt` string, date-time, required
    - `status` 'proposed' | 'pending_approval' | 'approved' | 'rejected' | 'executed' | 'expired', required
    - `approvedBy` string, nullable
    - `approvedAt` string, date-time, nullable
    - `rejectedBy` string, nullable
    - `rejectedAt` string, date-time, nullable
    - `rejectionReason` string, nullable
    - `executedAt` string, date-time, nullable
    - `executionOutcome` 'pending' | 'executed' | 'failed' | 'rejected' | 'expired', nullable
    - `rawInput` string, nullable
    - `rawOutput` string, nullable
  - `message` string

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict

## Changes

- **2026-04-18** `518dcf68679a`: 1 info
  - removed the non-success response with the status `401`
- **2026-04-02** `86d5babe2996`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/ai/decision/:id/approve/post.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
