Skip to main content
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, 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

List workflow leads with pagination

Send page=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 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"

page
number

1-based page number. Omit page and limit to return every lead, as before.

Example:

1

limit
number

Leads per page (default 50, max 200). Only applies when paging is requested.

Example:

50

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