Skip to main content
POST
/
api
/
contact
/
ingestion
/
upload
Upload a CSV or Excel file for contact ingestion
curl --request POST \
  --url http://localhost:3000/api/contact/ingestion/upload \
  --header 'Content-Type: multipart/form-data' \
  --form previewRows=20 \
  --form hasHeaderRow=false \
  --form audienceId=3c90c3cc-0d44-4b50-8888-8dd25736052a

Body

multipart/form-data
previewRows
number
default:20

Number of preview rows to return (default: 20, max: 100)

Required range: 1 <= x <= 100
hasHeaderRow
boolean
default:false

Whether the first row is a header row (default: false)

audienceId
string<uuid>

Optional audience ID to link imported contacts to

Response

File uploaded and parsed successfully