---
title: "Get Workspace Agent Lead Counts"
method: GET
path: "/api/workspaces/{workspace_id}/agents/lead-counts"
---

# Get Workspace Agent Lead Counts

`GET /api/workspaces/{workspace_id}/agents/lead-counts`

## Path parameters

- `workspace_id` string, required

## Query parameters

- `ids` string, required
- `use_case_id` string, nullable

## Response `200`

Successful Response

- LeadCountMapResponse
  - `success` boolean
  - `counts` object

## Other responses

- `422` — Validation Error

## Changes

> 16 revisions in range; 8 could not be searched.

- **2026-07-31** `7c9aff2501f3` — 1 warning, 1 info
  - deleted the `query` request parameter `campaign_id`
  - added the new optional `query` request parameter `use_case_id`

[Change history](https://skmtc.dev/outcallerai/apis/fastapi/changes/api/workspaces/:workspace_id/agents/lead-counts/get.md)

---

[API](https://skmtc.dev/outcallerai/apis/fastapi.md) · [All operations](https://skmtc.dev/outcallerai/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outcallerai/fastapi/revisions/6155db644bab/schema)
