import_leads
Import a list of leads
Imports up to 200 leads in one call, for a list the person gives you (a spreadsheet, an export from their own system).
It runs through the same importer as the CSV import screen: each row needs a name, an email or a phone number; a row that cannot be read is returned in errors with its index (0 = first row) and the reason, and the other rows are still imported. Importing the same rows again creates nothing new. A status may be stated per row; a row stated as won is imported as an opportunity, because a won lead needs its sale (record_sale). Copy the values exactly as given: never invent or complete contact details. Nothing is sent to anyone. Only the agency's own team can import; for one lead use create_lead. Afterwards check list_leads.
Arguments
| Name | Type | Needed | What it is |
|---|---|---|---|
rows |
array of object | yes | One object per lead. Every value is text. |
rows[]. |
string | no | |
rows[]. |
string | no | |
rows[]. |
string | no | |
rows[]. |
string | no | |
rows[]. |
string | no | When the lead arrived, for example 2026-03-31 or 2026-03-31 14:05. Default now. |
rows[]. |
string | no | Where the lead already stands. Default new.One of: new, contacted, qualified, disqualified, opportunity, won, lost |
rows[]. |
string | no | The lead's id in the person's own system. |
rows[]. |
string | no | The reference code of one of the workspace's campaigns. |
rows[]. |
string | no | The code of a tracked link the lead came through. |
rows[]. |
string | no | A note the client may also read. |
label |
string | no | A name for this import in the import history, for example "Trade fair list". |
request_key |
string | no | Any unique string for this request. The same key returns the first result. |
Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.
How it behaves
- It changes something in the workspace, within what the signed-in person's role allows.
- It is not in the first list an assistant sees; the assistant finds it with search_tools and runs it with execute_tools.
How tools behave: confirmation, review links, errors and limits
In the same group
create_lead · create_status_link · get_crm_status · get_lead · list_leads · manage_opportunities · record_refund · record_sale · revoke_status_link · update_lead · update_lead_status