> ## Documentation Index
> Fetch the complete documentation index at: https://dialnexa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List Workflow Leads

> Retrieve every lead enrolled in a workflow with its current node, status, and enrollment timestamp.

<Warning>
  **Legacy endpoint - deprecated.** Unversioned endpoints are scheduled for removal on **July 31, 2026**. Use the [`/v1` version](/docs/api-reference/v1/workflow-leads/list) for new integrations. This endpoint remains available for existing integrations until then.
</Warning>

Returns every lead enrolled in the given workflow, paginated. Each entry includes the lead's enrollment `id`, the contact `phone_number`, the current `status` (`pending`, `in_progress`, `completed`, `removed`, `failed`), the `current_node_id` the lead is sitting on, and the `enrolled_at` timestamp. Use this to monitor live progress through the sequence, build operational dashboards, and detect leads that have stalled on a specific node.

## When to use this

* **Workflow dashboards**: render an enrollment table with each lead's current step.
* **Stall detection**: find leads whose `current_node_id` has not changed in the expected time window and flag them for review.
* **Compliance audits**: enumerate enrolled leads to demonstrate which contacts were dialled in a given period.
* **CRM sync**: write back the per-lead status to the originating CRM record.

For a single lead's full step-by-step history, use [Lead History](/docs/api-reference/v1/workflow-leads/history). For the call logs produced by enrolled leads, use [List Call Logs](/docs/api-reference/call-logs/list) filtered by the workflow ID.

## Path parameters

| Parameter    | Description                                      |
| ------------ | ------------------------------------------------ |
| `workflowId` | The workflow ID, for example `wfl_m3v7zb9rk2px`. |

## Query parameters

| Parameter | Description                             |
| --------- | --------------------------------------- |
| `page`    | Page number, starting from 1.           |
| `limit`   | Results per page (max 100, default 20). |
| `status`  | Filter to leads in a specific status.   |

## Errors

* `404 Not Found` is returned when the workflow does not exist.

## Related endpoints

* [Upload Workflow Leads](/docs/api-reference/v1/workflow-leads/add): enroll a new lead.
* [Remove Workflow Lead](/docs/api-reference/v1/workflow-leads/delete): remove a lead from the workflow.
* [Lead History](/docs/api-reference/v1/workflow-leads/history): see every step a lead has moved through.
* [Get Variable Keys](/docs/api-reference/v1/workflow-leads/variable-keys): see which dynamic variables this workflow's leads can carry.


## OpenAPI

````yaml GET /workflows/{workflowId}/leads
openapi: 3.0.0
info:
  title: DialNexa API
  description: >-
    Public REST API for the DialNexa voice AI platform. Versioned endpoints are
    under /v1; unversioned endpoints are legacy and deprecated.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: API Keys
  - name: Agent Functions
  - name: Agents V1
  - name: Agents2
  - name: Batch Calls
  - name: Batch Calls V1
  - name: Call Logs
  - name: Calls
  - name: Calls V1
  - name: Campaign Leads
  - name: Campaigns
  - name: External Webhooks
  - name: Knowledge Base
  - name: Knowledge Base V1
  - name: LLMs
  - name: LLMs V1
  - name: Languages
  - name: Languages V1
  - name: Organization Phone Numbers
  - name: Organization Phone Numbers V1
  - name: Phone Number Pricing
  - name: Phone Number Pricing V1
  - name: Transcribers
  - name: Transcribers V1
  - name: User Webhooks
  - name: User Webhooks V1
  - name: V1
  - name: Voices
  - name: Voices V1
  - name: Webcall
  - name: Workflow Leads
  - name: Workflow Leads V1
  - name: Workflows
  - name: Workflows V1
paths:
  /workflows/{workflowId}/leads:
    get:
      tags:
        - Workflow Leads
      summary: Get all leads for a specific workflow
      description: >-
        **Legacy endpoint - deprecated, scheduled for removal on July 31,
        2026.** Use the `/v1` version for new integrations. 
      operationId: WorkflowLeadsController_findAll
      parameters:
        - name: workflowId
          required: true
          in: path
          schema:
            type: string
        - name: leadIds
          required: true
          in: query
          schema:
            type: string
        - name: x-organization-id
          in: header
          description: RSA encrypted organization ID (base64 format)
          required: true
          schema:
            type: string
            example: BASE64_ENCRYPTED_ORG_ID_HERE
      responses:
        '200':
          description: List of leads
        '500':
          description: Internal server error
      deprecated: true
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````