---
title: "Approve a durable approval"
method: POST
path: "/projects/{id}/durable-approvals/{approvalId}/approve"
tags: ["Durable Functions"]
---

# Approve a durable approval

`POST /projects/{id}/durable-approvals/{approvalId}/approve`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/durable-approvals/{approvalId}/approve`
- Auth: HTTP bearer

Approves a pending approval. The workflow resumes with the decision.

Only a person can decide: use the dashboard or a platform token from
`volcano login`. Project access tokens are refused with `403`.

Approving an approval that is already approved returns it unchanged.
If the workflow cannot be reached right away, the decision still
stands and Volcano keeps delivering it.

## Path parameters

- `id` string, uuid, required
- `approvalId` string, uuid, required

## Request body

- DurableApprovalDecisionRequest
  - `comment` string: A note for the workflow and the approval's history.

## Response `200`

Approved

- DurableApproval: An approval a durable workflow requested.
  - `id` string, uuid, required
  - `status` 'pending' | 'approved' | 'denied' | 'expired' | 'cancelled', required: `pending` means the workflow is waiting for a decision. `approved` and `denied` are decisions a person made. `expired` means the workflow's approval timeout passed first, and `cancelled` means the execution ended while the approval was still pending. Every status but `pending` is final.
  - `name` string, required: The name the workflow gave the approval in `ctx.waitForApproval`.
  - `title` string, required
  - `description` string, required
  - `details` unknown
  - `function` DurableApprovalFunction, required: The durable function that requested the approval. `id` is null once the function has been deleted; `name` is kept.
    - `id` string, uuid, nullable, required
    - `name` string, required
  - `execution` DurableApprovalExecution, required: The durable execution that requested the approval. `id` and `status` are null once the execution is no longer retained; `name` is kept.
    - `id` string, uuid, nullable, required
    - `name` string, required
    - `status` 'pending' | 'running' | 'succeeded' | 'failed' | 'timed_out' | 'stopped' | 'unknown', nullable, required: Lifecycle state of an execution. `pending` covers the window between the platform reserving the execution name and the function accepting the start, and has no counterpart once the execution is under way. `succeeded`, `failed`, `timed_out`, `stopped` and `unknown` are terminal. `unknown` means the execution's outcome cannot be established, so no result or error can be given for it. Either it was under way and was never seen to finish, or its start failed with a `500` without the platform establishing whether the execution began — which is why a name whose start returned an error can later read as `unknown` rather than not being found. It is terminal because nothing can settle it later, and it is rare — treat it as an outcome to retry rather than a state to wait on. A retry under the same name picks this execution back up instead of starting a second one, and needs a free concurrency slot because an `unknown` execution has given its own up. `completed_at` on an `unknown` execution is when the platform gave up, not when the work ended.
  - `requested_at` string, date-time, required
  - `expires_at` string, date-time, nullable, required: When the approval expires if nobody decides. Null when the workflow set no timeout; the approval then lasts as long as its execution.
  - `decision` DurableApprovalDecision, nullable, required: Who decided and when. Null unless the approval was approved or denied.
    - `comment` string, required
    - `decided_by` DurableApprovalDecider, nullable, required: The person who decided. Null once their account is deleted.
      - `id` string, required
      - `email` string, required
    - `decided_at` string, date-time, required

## Other responses

- `400`: The request body is invalid
- `403`: The credential is not a person's
- `404`: Approval not found
- `409`: The approval was already denied, or has expired or been cancelled. `code` is `approval_decided`, `approval_expired`, or `approval_cancelled`.
- `413`: The request body is larger than 16 KiB

## Changes

- **2026-10-08** `f03633d398ec`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/durable-approvals/:approvalId/approve/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
