---
title: "Average path"
method: GET
path: "/api/analytics/average-path"
tags: ["analytics"]
---

# Average path

`GET /api/analytics/average-path`

Returns all average path metrics

## Query parameters

- `as_of` string, date, nullable — Reference date (YYYY-MM-DD). If omitted, today is used. Used for point-in-time report.

## Response `200`

Successful Response

- AveragePathResponse — Average path response model.
  - `average_path_duration` AveragePathPerPathBlock, required — Average path block with optional psychologist/nutritionist stats model.
    - `psychologist` unknown
    - `nutritionist` unknown
  - `percent_over_months` AveragePathPerPathBlock, required — Average path block with optional psychologist/nutritionist stats model.
    - `psychologist` unknown
    - `nutritionist` unknown
  - `average_dropout_time` AveragePathPerPathBlock, required — Average path block with optional psychologist/nutritionist stats model.
    - `psychologist` unknown
    - `nutritionist` unknown
  - `average_monthly_sessions` AveragePathMonthlySessionsRow[] — Average monthly sessions per patient by path/month
    - `path` string, required — Path: psi or nutri
    - `month` string, required — Month YYYY-MM-DD (first day)
    - `average_sessions_per_patient` number, required — Average sessions per patient that month
  - `average_interval` AveragePathPerPathBlock, required — Average path block with optional psychologist/nutritionist stats model.
    - `psychologist` unknown
    - `nutritionist` unknown
  - `frequency_compliance` AveragePathPerPathBlock, required — Average path block with optional psychologist/nutritionist stats model.
    - `psychologist` unknown
    - `nutritionist` unknown
  - `average_sessions_before_dropout` AveragePathPerPathBlock, required — Average path block with optional psychologist/nutritionist stats model.
    - `psychologist` unknown
    - `nutritionist` unknown
  - `dropouts_by_phase` unknown[] — Dropouts by phase (placeholder)
    - unknown
  - `expert_dropout_rate` unknown[] — Dropout rate by expert (placeholder)
    - unknown
  - `patient_evolution` AveragePathPerPathBlock, required — Average path block with optional psychologist/nutritionist stats model.
    - `psychologist` unknown
    - `nutritionist` unknown
  - `average_total_sessions` AveragePathPerPathBlock, required — Average path block with optional psychologist/nutritionist stats model.
    - `psychologist` unknown
    - `nutritionist` unknown
  - `state_distribution` AveragePathStateDistributionRow[] — State distribution per path
    - `path` string, required — Path: psi or nutri
    - `state` string, required — State label
    - `patient_count` integer, required — Patient count in this state
    - `pct_patients` number, required — Percentage of path patients in this state
  - `average_patients_per_expert` AveragePathPerPathBlock, required — Average path block with optional psychologist/nutritionist stats model.
    - `psychologist` unknown
    - `nutritionist` unknown
  - `continuity_rate` unknown[] — Continuity rate (placeholder)
    - unknown
  - `dropout_peaks_at_start` unknown[] — Dropout peaks at start (placeholder)
    - unknown
  - `average_call_to_path_time` AveragePathPerPathBlock, required — Average path block with optional psychologist/nutritionist stats model.
    - `psychologist` unknown
    - `nutritionist` unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corabea/corabea-api/revisions/13c1bce1bdc4/schema)
