Skip to main content
POST
Preview CSV import

Authorizations

Authorization
string
header
required

API key authentication. Use your API key as the bearer token.

Body

application/json
file_content
string
required

CSV content, either base64 encoded or raw text

Example:

"ZW1haWwsZmlyc3RfbmFtZSxsYXN0X25hbWUKam9obkBleGFtcGxlLmNvbSxKb2huLERvZQ=="

is_base64
boolean
default:true

Whether the file_content is base64 encoded (default: true)

Example:

true

Response

CSV preview with headers and sample rows

headers
string[]
required

Column headers extracted from the CSV file

Example:
preview_rows
object[]
required

First 5 rows of data as objects with header keys

Example:
total_rows
integer
required

Total number of data rows in the CSV (excluding header)

Example:

150

suggested_mappings
object
required

Auto-suggested mappings for column headers to contact properties. Value is null if no suggestion.

Example: