Skip to main content
DELETE
Delete Workflow Lead
Destructive Marks a single lead as removed from the workflow. The lead disappears from List Workflow Leads and no longer matches inbound calls. Removal does not cancel steps already scheduled for that lead and does not interrupt a step in flight: if the lead is waiting in a time step, it still moves on when the wait expires, and a Voice Call node it reaches still places a call. Pausing the workflow only holds that call until the workflow is active again; it does not cancel it (see Update Workflow Status).

When to use this

Use lead-level removal to remove a contact from the lead list or correct enrollment data. For an opt-out that must block future outbound calls and workflow processing, add the number to the workspace DND list; deleting a lead alone does not cancel scheduled activity. Common cases:
  • Opt-outs and Do Not Call requests: remove the lead so it stops matching inbound calls and leaves the lead list. Check Lead History for a step that is still scheduled, because removal does not cancel it.
  • Data correction: remove a lead that was enrolled with the wrong phone number; re-enroll the corrected record through Upload Workflow Leads. On a draft workflow an upload replaces every lead, so upload the corrected complete file instead.
  • Compliance escalations: remove a lead from the workflow while you investigate a complaint, leaving the lead’s call history available in Call History.
To stop new leads from starting in the workflow, use Update Workflow Status with action: "pause"; leads already inside a step keep advancing.

Behavior

  • The lead’s historical call logs and step history remain queryable.
  • In-flight steps are allowed to finish (DialNexa does not hang up a live call to honor the removal).
  • Steps already scheduled for the lead are not cancelled by this call and can still place a call.
  • The lead’s Lead History stays readable after removal.

Path parameters

Errors

  • 404 Not Found is returned when the workflow or lead does not exist, the lead is not enrolled in the specified workflow, or it was already removed.

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"

id
string
required

Lead ID

Example:

"lead_abc123"

Response

Lead removed 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