---
title: "Get lead metrics for a source"
method: GET
path: "/sources/{id}/metrics"
tags: ["Sources"]
---

# Get lead metrics for a source

`GET /sources/{id}/metrics`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/sources/{id}/metrics`
- Auth: HTTP bearer

View lead creation metrics for an organization intake source, including accepted, rejected, duplicate, validation, and recent activity counts.

## Path parameters

- `id` string, required

## Query parameters

- `startAt` string, date-time
- `endAt` string, date-time
- `days` integer, nullable

## Response `200`

The source lead creation metrics.

- SourceMetricsResponse: Aggregates lead volume, conversion, delivery, and activity metrics attributed to a Leadping source over the requested reporting period.
  - `range` AnalyticsDateRange: Defines the inclusive reporting window and comparison window used to calculate Leadping analytics.
    - `startAt` string, date-time: Date and time when this Leadping analytics date range was start.
    - `endAt` string, date-time: Date and time when this Leadping analytics date range was end.
    - `bucketSize` 3 | 0 | 1 | 2: Selects the time interval used to aggregate points in a Leadping analytics trend series.
  - `totalLeads` integer: Total number of leads records represented by this Leadping source metrics.
  - `totalErrors` integer: Total number of lead intake errors represented by this Leadping source metrics.
  - `points` AnalyticsTrendPointOfint[]: Collection of points included with this Leadping source metrics.
    - `startAt` string, date-time: Inclusive UTC start of the analytics time bucket.
    - `endAt` string, date-time: Exclusive UTC end of the analytics time bucket.
    - `label` string: Human-readable label for this Leadping analytics trend point.
    - `value` integer: Value associated with this Leadping analytics trend point.
  - `errorPoints` AnalyticsTrendPointOfint[]: Collection of lead intake error points included with this Leadping source metrics.
    - `startAt` string, date-time: Inclusive UTC start of the analytics time bucket.
    - `endAt` string, date-time: Exclusive UTC end of the analytics time bucket.
    - `label` string: Human-readable label for this Leadping analytics trend point.
    - `value` integer: Value associated with this Leadping analytics trend point.
  - `generatedAt` string, date-time: Date and time when the source metrics was generated.

## Other responses

- `400`: The request contains invalid values or fails validation.
- `401`: Authentication credentials are missing or invalid.
- `403`: The caller does not have permission to perform this operation.
- `404`: The requested resource or required account context was not found.
- `429`: The client or account rate limit was exceeded. Retry after the interval in the Retry-After header.
- `500`: An unexpected error prevented the server from completing the request.

## Changes

- **2026-11-11** `81aed8c9afb7`: 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/sources/:id/metrics/get.md)

---

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