Workflow Leads
List Workflow Leads
List workflow leads with optional pagination, current execution status, and the total number of matching leads.
GET
List Workflow Leads
Read only
List workflow leads to retrieve enrolled contacts, newest first, in
data.data. The response includes the number of leads returned in data.count and the total number matching your filter in data.total. 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
List workflow leads with pagination
Sendpage=1&limit=50 to retrieve the first page. Supplying either page or limit enables pagination; omit both to retrieve every matching lead. The page number defaults to 1, and the page size defaults to 50. Invalid or non-positive values use these defaults. Fractional values are truncated to whole numbers, and page sizes above 200 use 200.
To verify a paginated response, compare data.count with the number of entries in data.data. Use data.total to determine how many matching leads remain across all pages. For a page beyond the available results, the list is empty while the total still describes all matching leads.
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"
1-based page number. Omit page and limit to return every lead, as before.
Example:
1
Leads per page (default 50, max 200). Only applies when paging is requested.
Example:
50