Import contacts
POST
/api/v1/contacts/import
const url = 'https://renotify.app/api/v1/contacts/import';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"path":"entity-imports/import_123.xlsx","mapping":{"name":"Full Name","phone":"Phone"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://renotify.app/api/v1/contacts/import \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "path": "entity-imports/import_123.xlsx", "mapping": { "name": "Full Name", "phone": "Phone" } }'Import contacts from a previously uploaded file using the provided column mapping.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
path
required
The temporary upload path returned by the preview endpoint.
string
Example
entity-imports/import_123.xlsxmapping
required
The column mapping for the file.
object
name
required
The column containing contact names.
string
Example
Full Namephone
required
The column containing phone numbers.
string
Example
Phoneemail
The column containing email addresses.
string
Example
Emailmarketing_consent
The column saying whether the contact gave WhatsApp marketing consent (yes/no).
string
Example
Marketing ConsentExample
{ "name": "Full Name", "phone": "Phone"}