Import leads in chunks
import_leadsImport leads in chunks. Send up to 5,000 rows per call. The first call creates the import and returns its id; pass importId with every next chunk and final: true with the last. Addresses are deduped, suppressed ones skipped, invalid ones counted. ESP detection and verification run in the background after the final chunk. Asks for confirmation: the first call returns a preview and a confirm_token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list | No | List to add every imported lead to: an existing id or a new name | |
| rows | Yes | ||
| final | No | Last chunk: starts ESP detection and verification | |
| verify | No | Verify the new addresses with the verifier API after import | |
| existing | No | Leads already in the workspace: leave them as they are, or fill in the new values | skip |
| fileName | No | ||
| importId | No | Leave out on the first call; pass the id it returns with every next chunk. | |
| clientInvalid | No | ||
| confirm_token | No | Leave out on the first call: it returns a preview of exactly what will happen and a confirm_token. Show the preview to the user, and only after they agree call again with the same arguments plus that token. | |
| clientDuplicates | No |