Lead imports

Preview a lead file

Reads a CSV of your own leads without importing it: its columns, row count, the first rows, which column holds each lead field and which other columns could become custom fields, as Bavlio suggests them. needs lists what the campaign’s sequence needs from every lead, so you can see which columns matter.

POST
/campaigns/{id}/imports/preview

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

idstringrequired

Campaign id.

Body

application/json
csvstringrequired

The file's contents as CSV text, header row first.

Required string length: 1 - 5000000

Response

application/json

Success

columnsstring[]required

The column headers, in order.

rowsintegerrequired

Rows in the file, header left out.

samplesstring[][]required

Up to 3 rows, each cell in column order.

mappingobjectrequired

The column Bavlio suggests for each lead field, by header.

custom_fieldsobjectrequired

Other columns Bavlio suggests keeping, as field name to column header.

needsenum<string>[]required

What the campaign's sequence needs from every lead.

Available options: name, title, company, email, linkedin_url, moment