---
title: "List the highest-scoring leads"
method: GET
path: "/api/analytics/top-leads"
tags: ["Analytics"]
---

# List the highest-scoring leads

`GET /api/analytics/top-leads`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/analytics/top-leads`
- Auth: API key in cookie `luca.session_token`

Leads ordered by score, then by last activity, optionally only those seen since a timestamp.

**Session-only.** This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

## Query parameters

- `limit` integer
- `since` string, date-time

## Headers

- `Luca-API-Version` '1'

## Response `200`

ok

- TopLeadsResponse
  - `leads` object[], required
    - `id` string, required
    - `channel` string, required
    - `displayName` string, nullable, required
    - `stage` string, required
    - `tags` string[], required
    - `score` number, nullable, required
    - `createdAt` string, required
    - `lastSeenAt` string, nullable, required

## Other responses

- `401`: unauthorized
- `429`: rate limited

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
