Add leads
add_leadsCreates or updates up to 1,000 leads in one request, optionally adding them to a campaign via campaignId. Existing leads (matched by email) are updated instead of duplicated. Returns the id of every lead written, so they can be fetched or updated afterwards. Attributes outside the named fields can be passed in customVariables and become merge tags in email copy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leads | Yes | The leads to create or update (1 to 1,000 per request) | |
| campaignId | No | Campaign to add the leads to (from list_campaigns) |