---
title: "Get durable approval statistics"
method: GET
path: "/projects/{id}/durable-approvals/stats"
tags: ["Durable Functions"]
---

# Get durable approval statistics

`GET /projects/{id}/durable-approvals/stats`

## Request

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

Counts the project's approvals by outcome over a time window, overall,
per workflow, and per day. The window defaults to the last 30 days and
can cover up to a year. An approval is counted on the day it was
requested.

Project access tokens can read statistics, including read-only ones.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `function` string
- `from` string, date-time
- `to` string, date-time

## Response `200`

Successful response

- DurableApprovalStats
  - `from` string, date-time, required
  - `to` string, date-time, required
  - `counts` DurableApprovalCounts, required: Approvals by status. `requested` is every approval, whatever its status.
    - `requested` integer, required
    - `pending` integer, required
    - `approved` integer, required
    - `denied` integer, required
    - `expired` integer, required
    - `cancelled` integer, required
  - `approval_rate` number, double, nullable, required: `approved / (approved + denied)`, from 0 to 1. Null when nothing in the window was decided.
  - `median_seconds_to_decision` number, double, nullable, required: Median time from request to decision. Null when nothing was decided.
  - `p90_seconds_to_decision` number, double, nullable, required: 90th percentile time from request to decision. Null when nothing was decided.
  - `functions` DurableApprovalFunctionCounts[], required: The ten workflows that requested the most approvals, most first. The rest are summed in `other_functions`.
    - `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
    - `counts` DurableApprovalCounts, required: Approvals by status. `requested` is every approval, whatever its status.
      - `requested` integer, required
      - `pending` integer, required
      - `approved` integer, required
      - `denied` integer, required
      - `expired` integer, required
      - `cancelled` integer, required
  - `other_functions` DurableApprovalCounts, required: Approvals by status. `requested` is every approval, whatever its status.
    - `requested` integer, required
    - `pending` integer, required
    - `approved` integer, required
    - `denied` integer, required
    - `expired` integer, required
    - `cancelled` integer, required
  - `daily` DurableApprovalDailyCounts[], required: One entry per UTC day in the window that has approvals, oldest first. Days with none are omitted.
    - `date` string, date, required
    - `counts` DurableApprovalCounts, required: Approvals by status. `requested` is every approval, whatever its status.
      - `requested` integer, required
      - `pending` integer, required
      - `approved` integer, required
      - `denied` integer, required
      - `expired` integer, required
      - `cancelled` integer, required

## Other responses

- `400`: The window is invalid or longer than 366 days

## Changes

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

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