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

# Get Lead History

> View the step-by-step path of a single lead through a workflow, including every node entered, outcomes, and time spent at each step.

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

Returns the complete history of a single lead's path through the workflow. Each entry records a node the lead entered: the `node_id`, the `node_type`, the human-readable `label`, the start and end timestamps, the per-step `status`, and, for `VOICE_CALL` nodes, the `call_id` so you can pivot into [Get Call Details](/docs/api-reference/call-logs/get-details) to inspect the transcript. Use this endpoint for per-lead debugging, quality review, and rendering a timeline view in your dashboard.

## When to use this

* **Debugging a stuck lead**: confirm which node the lead is waiting on and how long it has been there.
* **Quality review**: produce a per-lead timeline for compliance or operations reviewers.
* **Drill-down from a dashboard**: pivot from a workflow lead row into the full path the lead took.
* **Reporting on path coverage**: sample lead histories to confirm conditional branches are being followed as expected.

For aggregate lead progress across the workflow, use [List Workflow Leads](/docs/api-reference/v1/workflow-leads/list). For the call log of a specific voice-call step, use the `call_id` returned by this endpoint with [Get Call Details](/docs/api-reference/call-logs/get-details).

## Path parameters

| Parameter    | Description                                                        |
| ------------ | ------------------------------------------------------------------ |
| `workflowId` | The workflow ID, for example `wfl_m3v7zb9rk2px`.                   |
| `id`         | The workflow-lead enrollment ID, for example `wlead_p3q8zv5bk2mx`. |

## Errors

* `404 Not Found` is returned when the workflow or lead does not exist, or the lead is not enrolled in the workflow.

## Related endpoints

* [List Workflow Leads](/docs/api-reference/v1/workflow-leads/list): see every lead in the workflow.
* [Get Call Details](/docs/api-reference/call-logs/get-details): full transcript for the `call_id` returned above.
* [Get Workflow](/docs/api-reference/v1/workflows/get): workflow summary alongside per-lead drill-downs.
* [List Nodes](/docs/api-reference/workflow-nodes/list): fetch node definitions referenced in the history.


## OpenAPI

````yaml GET /workflows/{workflowId}/leads/{id}/history
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/{id}/history:
    get:
      tags:
        - Workflow Leads
      summary: Get lead history with node details
      description: >-
        **Legacy endpoint - deprecated, scheduled for removal on July 31,
        2026.** Use the `/v1` version for new integrations. 
      operationId: WorkflowLeadsController_getLeadHistory
      parameters:
        - name: workflowId
          required: true
          in: path
          schema:
            type: string
        - name: id
          required: true
          in: path
          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: Lead history fetched successfully
        '404':
          description: Lead not found
        '500':
          description: Internal server error
      deprecated: true
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````