Lead imports
Import leads into a campaign
Starts importing a CSV of your own leads into the campaign with the column mapping you confirm, and answers 201 with the import while it runs. A lead costs no credits when the file already holds everything the sequence needs, and one credit when Bavlio fills a needed field in; rows without a name, without what the sequence needs, already in the campaign, opted out or beyond your credits are skipped and counted. Bavlio scores each lead against the campaign’s ICP, so the ICP needs at least one value. Needs a plan.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Campaign id.
Body
application/jsonThe file's contents as CSV text, header row first.
Required string length: 1 - 5000000
Which column holds each lead field, by header; leave out a field no column holds.
Custom fields to keep, as field name to column header; templates use them as {@name|fallback}.
Response
Success
Import id.
The name the import was started with.
running while rows are left, then done, or failed with the reason in failure.
Available options: running, done, failed
Rows in the file.
Rows read so far.
Leads added to the campaign.
Credits charged for the added leads.
Rows left out, counted by reason.
Why the import stopped; null unless it failed.
When the import started (ISO 8601).
When it finished (ISO 8601); null while it runs.