Skip to main content
GET
List Workflow Leads
Read only Returns the leads enrolled in the given workflow, newest first, in data.data, with their number in data.count. Each entry includes the signed lead id, the contact phone_number as written in the uploaded file, dynamic_variables (an array of key and value pairs, one per non-empty data cell; blank cells add no entry), notes, tags, the raw workflow_id, and timestamps, plus the lead’s latest execution:
  • status: pending (not started yet), active, completed, dropped, failed, or dnc_blocked (stopped because the number is on the workspace’s DNC list).
  • current_node_id, entry_time and completed_at: null while the lead is pending.
Use this to monitor live progress through the sequence, build operational dashboards, and detect leads that need review.

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. To review calls produced by enrolled leads in the dashboard, use Call History.

Path parameters

Query parameters

Errors

  • An unknown workflow ID is not an error: the response is 200 with an empty list.
  • 401 Unauthorized is returned when the API key is missing or invalid.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workflowId
string
required

Workflow ID

Example:

"workflow_abc123"

Query Parameters

leadIds
string

Comma-separated lead IDs to filter

Example:

"lead_abc123,lead_def456"

Response

Leads returned successfully.

success
enum<boolean>
required
Available options:
true
error
enum<boolean>
required
Available options:
false
statusCode
integer
required
Example:

200

message
string
required
Example:

"Success"

data
object
required
timestamp
string<date-time>
required