Skip to main content
POST
Endpoint Alias: You can also use /api/v1/records/bulk instead of /api/v1/leads/bulk. Both endpoints are functionally identical - use whichever naming convention fits your integration.

Lead Import Modes

Each lead in the array can use either import mode:

Standard Mode

Phone number known at import timeProvide phoneNumber directly for each lead.

Prefetch Mode

Phone number fetched just-in-timeProvide externalId only. Phone fetched via predial function before calling.
Each lead must have at least one of phoneNumber or externalId. You can mix modes within the same bulk request.

Authentication

string
required
Your API key with write scope

Request Body

string
required
The ID of the campaign these leads belong to
array
required
Array of lead objects (max 1000 per request)

Response

boolean
Whether the request was successful
object
string | null
Error message if request failed

Examples

All leads with phone numbers:

Limits

Maximum Size: You can create up to 1000 leads per bulk request. For larger imports, make multiple requests.
Rate Limit: Bulk endpoint is limited to 10 requests per minute to prevent abuse.

Duplicate Handling

The bulk endpoint automatically handles duplicates:
  1. Checks externalId first - if provided, checks for existing lead with same externalId in campaign
  2. Then checks phoneNumber - if provided, checks for existing lead with same phone in campaign
  3. Skips duplicates without failing the entire request
  4. Returns details about what was created vs skipped
This makes bulk import idempotent - you can safely retry without creating duplicates!

Common Errors

Best Practices

  • Use 100-500 leads per request for optimal performance
  • Don’t max out at 1000 unless necessary
  • Monitor response times and adjust
  • Spread out bulk imports over time
  • Don’t import 10,000 leads at once
  • Respect rate limits (10/min)
  • Validate phone numbers before sending (E.164 format)
  • Ensure each lead has phoneNumber OR externalId
  • Remove duplicates in your data first
  • Check the created vs skipped counts
  • Log skippedIdentifiers for investigation
  • Retry failed requests with exponential backoff
  • Ensure your campaign has a predial function configured
  • Include any metadata needed by the predial function
  • Test with a small batch first

Example: CSV Import Script

Python