Workflow Leads
List Workflow Leads
List leads enrolled in a workflow.
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, ordnc_blocked(stopped because the number is on the workspace’s DNC list).current_node_id,entry_timeandcompleted_at: null while the lead ispending.
When to use this
- Workflow dashboards: render an enrollment table with each lead’s current step.
- Stall detection: find leads whose
current_node_idhas 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.
Path parameters
Query parameters
Errors
- An unknown workflow ID is not an error: the response is
200with an empty list. 401 Unauthorizedis returned when the API key is missing or invalid.
Related endpoints
- Upload Workflow Leads: upload leads from a CSV or Excel file.
- Remove Workflow Lead: remove a lead from the workflow.
- Lead History: see every step a lead has moved through.
- Get Variable Keys: see which dynamic variables this workflow’s leads can carry.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Workflow ID
Example:
"workflow_abc123"
Query Parameters
Comma-separated lead IDs to filter
Example:
"lead_abc123,lead_def456"