---
title: "Get the leads dashboard"
method: GET
path: "/leads/dashboard"
tags: ["Leads"]
---

# Get the leads dashboard

`GET /leads/dashboard`

## Request

- Base URL: `https://api.surense.com/api/v1`
- URL: `https://api.surense.com/api/v1/leads/dashboard`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.surense.com/oauth/token`

## Query parameters

- `request` LeadDashboardRequest, required
  - `agencyId` string, uuid

## Response `200`

OK

- LeadDashboardValue
  - `lastUpdatedAt` string, date-time
  - `byTypeAll` DistributionEntry[]
    - `value` string
    - `count` integer
  - `byTypeOpen` DistributionEntry[]
    - `value` string
    - `count` integer
  - `bySourceAll` DistributionEntry[]
    - `value` string
    - `count` integer
  - `bySourceOpen` DistributionEntry[]
    - `value` string
    - `count` integer
  - `byStatus` DistributionEntry[]
    - `value` string
    - `count` integer
  - `byAssigneeAll` DistributionEntry[]
    - `value` string
    - `count` integer
  - `byAssigneeOpen` DistributionEntry[]
    - `value` string
    - `count` integer
  - `created7DaysByType` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `created30DaysByType` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `created12MonthsByType` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `createdMonthByType` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `createdYearByType` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `createdLastYearByType` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `created7DaysBySource` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `created30DaysBySource` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `created12MonthsBySource` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `createdMonthBySource` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `createdYearBySource` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `createdLastYearBySource` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closed7DaysByStatus` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closed30DaysByStatus` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closed12MonthsByStatus` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closedMonthByStatus` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closedYearByStatus` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closedLastYearByStatus` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closed7DaysByClosedBy` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closed30DaysByClosedBy` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closed12MonthsByClosedBy` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closedMonthByClosedBy` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closedYearByClosedBy` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer
  - `closedLastYearByClosedBy` TimedDistribution[]
    - `x` string
    - `values` DistributionEntry[]
      - `value` string
      - `count` integer

---

[API](https://skmtc.dev/surense/apis/lead-api.md) - [All operations](https://skmtc.dev/surense/apis/lead-api/llms.txt) - [OpenAPI document](https://skmtc.dev/surense/apis/lead-api/revisions/e766c34d3234?raw)
