---
title: "Customer View mirror of leads to eight sessions (Reports, Practice)"
method: GET
path: "/accountant/companies/{customerId}/metrics/practice/lead-funnel"
tags: ["Accountant Portal"]
---

# Customer View mirror of leads to eight sessions (Reports, Practice)

`GET /accountant/companies/{customerId}/metrics/practice/lead-funnel`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/metrics/practice/lead-funnel`
- Auth: HTTP bearer

Read-only accountant mirror of `GET /companies/{companyId}/metrics/practice/lead-funnel` (#4964): the same answer from the same service, so an assigned accountant can check the customer's leads-to-eight-sessions card. Requires an accountant assigned to the customer (403 otherwise). Human sessions only: no API key reads it (a company key is refused with 403; the accountant service key gets the hidden-route 404). Returns 404 unless `practice_metrics` is in the customer's `additionalMetrics` list.

## Path parameters

- `customerId` string, uuid, required

## Response `200`

The same answer the customer's read gives

- PracticeLeadFunnelResponse
  - `success` true, required
  - `data` object, required
    - `status` 'ok' | 'unavailable', required
    - `reason` 'no_packet' | 'no_lead_funnel' | 'null', nullable, required
    - `definitions` object, required
      - `milestoneSessions` integer, required
      - `milestoneWindowDays` integer, required
      - `leadDedupeDays` integer, required
    - `cutoff` string, date, nullable, required
    - `coverage` object, required
      - `leadsFrom` string, date, nullable, required
      - `leadsThrough` string, date, nullable, required
      - `sessionsFrom` string, date, nullable, required
      - `sessionsThrough` string, date, nullable, required
    - `source` object, nullable, required
      - `packetId` string, required
      - `approvedAt` string, date-time, required
    - `cohorts` object[], required
      - `month` string, required
      - `covered` boolean, required
      - `notCovered` string[], nullable, required
      - `practice` LeadFunnelStage, nullable, required: #4964: one cohort's leads through each stage. Credit: the clinician of the first completed and paid session, else of the first booked one. reachedEight counts eligible leads only (their 180-day window ended by the cutoff); milestonePending counts windows still open.
        - `leads` integer, required
        - `firstBooked` integer, nullable, required: Null when the export doesn't carry bookings (not covered, never 0).
        - `firstCompletedPaid` integer, required
        - `transferredIn` integer, nullable, required: Null when the export doesn't carry first bookings, so a move can't be told (not covered, never 0).
        - `reachedEight` integer, required
        - `milestoneEligible` integer, required
        - `milestonePending` integer, required
      - `unassignedLeads` integer, nullable, required
      - `broughtClients` integer, nullable, required
      - `sessions` LeadFunnelSessionCounts, nullable, required: #4964: the cohort's sessions, each counted once however many payments or processors it has. booked: non-consult sessions not attended (upcoming, no-show or cancelled).
        - `consults` integer, nullable, required: Null when the export doesn't carry consults (not covered, never 0).
        - `booked` integer, nullable, required: Null when the export doesn't carry unattended bookings (not covered, never 0).
        - `attendedUnpaid` integer, required
        - `attendedPaid` integer, required
      - `milestone` object, nullable, required
        - `eligible` integer, required
        - `reached` integer, required
        - `pending` integer, required
        - `status` 'observed' | 'partial' | 'too_recent' | 'none', required
      - `therapists` intersection[], required
        - intersection
          - [`LeadFunnelStage`](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b/schema?at=%2Fcomponents%2Fschemas%2FLeadFunnelStage)
          - object
            - `key` string, required
            - `label` string, required
            - `broughtClients` integer, nullable, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found

## Changes

- **2026-11-20** `0ced7534384e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/metrics/practice/lead-funnel/get.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
