Skip to content

Import Contacts (CSV)

Send the file as multipart/form-data under the field name file.

cURL
curl -X POST https://api.whatbot.in/public/v1/contacts/csv \
-H "X-API-Key: wa_live_xxx" \
-F "file=@contacts.csv"

The first row is a header. phone is the only required column; any other column becomes a custom attribute on the contact.

contacts.csv
phone,name,city,product_interest,budget
9876543210,Ravi Kumar,Chennai,gold coins,15L
9812300002,Priya Nair,Mumbai,silver,5L
9843311220,Arjun Rao,Bengaluru,coins,25L
ColumnRequiredBecomes
phoneThe contact key (normalized to E.164)
nameContact display name
anything elseA custom attribute (usable as a template {{variable}})
200
{ "upserted": 3 }