---
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`

## Request

- Base URL: `https://api.outcallerai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outcallerai.com/api/workspaces/{workspace_id}/agents/lead-counts`
- Auth: none declared

## 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

- **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`

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

---

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