Import Contacts (CSV)
Request
Section titled “Request”Send the file as multipart/form-data under the field name file.
curl -X POST https://api.whatbot.in/public/v1/contacts/csv \ -H "X-API-Key: wa_live_xxx" \ -F "file=@contacts.csv"CSV format
Section titled “CSV format”The first row is a header. phone is the only required column; any other column
becomes a custom attribute on the contact.
phone,name,city,product_interest,budget9876543210,Ravi Kumar,Chennai,gold coins,15L9812300002,Priya Nair,Mumbai,silver,5L9843311220,Arjun Rao,Bengaluru,coins,25L| Column | Required | Becomes |
|---|---|---|
phone | ✅ | The contact key (normalized to E.164) |
name | — | Contact display name |
| anything else | — | A custom attribute (usable as a template {{variable}}) |
Response
Section titled “Response”{ "upserted": 3 }