---
title: "Request an approval from inside a workflow"
method: POST
path: "/durable-approvals"
tags: ["Durable Functions"]
---

# Request an approval from inside a workflow

`POST /durable-approvals`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/durable-approvals`
- Auth: none required

Registers an approval request for a running durable execution. The
Volcano SDK calls this from `ctx.waitForApproval`; applications do not
call it directly.

`execution_ref` and `callback_id` are opaque values the SDK reads from
the running workflow. Together they are the request's credential, so
the operation takes no other authentication. The approval belongs to
the project that owns the execution, and expires when the workflow's
own approval timeout does.

Retrying is safe: a request for an approval that is already registered
returns it with `200`.

## Request body

- RequestDurableApprovalRequest
  - `execution_ref` string, required: Opaque reference to the running execution, supplied by the SDK.
  - `callback_id` string, required: Opaque approval reference, supplied by the SDK.
  - `name` string, required
  - `title` string, required
  - `description` string
  - `details` unknown

## Response `200`

The approval was already registered

- DurableApprovalRegistration: The registered approval, as the requesting workflow sees it.
  - `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.
  - `expires_at` string, date-time, nullable, required

## Other responses

- `201`: Approval registered
- `400`: The request body is invalid
- `404`: No running durable execution matches `execution_ref`
- `409`: The approval cannot be registered now. `code` says why: - `approval_not_ready`: the workflow has not finished opening the approval yet. Retry with a short backoff; the SDK does. - `approval_closed`: the workflow is no longer waiting on it. - `callback_taken`: the callback is already registered as a message wait or a messages session. - `execution_ended`: the execution has finished. - `too_many_pending_approvals`: the execution already has the maximum number of pending approvals.
- `413`: The request body is larger than 64 KiB
- `429`: Too many approval requests from this execution or address
- `503`: The approval could not be confirmed with the workflow right now. Retry with backoff.

## Changes

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

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/durable-approvals/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)
