Skip to main content
POST
Upload CSV or Excel file with leads data
Legacy endpoint - deprecated. Unversioned endpoints are scheduled for removal on July 31, 2026. Use the /v1 version for new integrations. This endpoint remains available for existing integrations until then.
Enrols leads into a workflow by uploading a CSV or XLSX file. Each row in the file becomes one enrolled lead. The file must include a phone_number column; all other columns become dynamic variables available in the agent’s prompt at each voice call step.

File format

Leads begin processing immediately once the workflow is active. Their progress through the nodes depends on the outcomes of each step.

Destination validation

If the workflow contains Voice Call nodes, uploaded leads are validated before enrollment. A lead’s phone_number must be valid and must be allowed by at least one active Voice Call phone number in the workflow. For non-SIP routes, the destination country and prefix must be enabled in Workspace Settings > Telephony Config. Validation failures return 400 Bad Request with grouped row-level errors so you can fix the file and retry.

Authorizations

Authorization
string
header
required

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

Headers

x-organization-id
string
required

RSA encrypted organization ID (base64 format)

Example:

"BASE64_ENCRYPTED_ORG_ID_HERE"

Path Parameters

workflowId
string
required

Body

multipart/form-data
file
file

CSV or Excel file with leads data

Response

File processed successfully