cURL
curl --request POST \ --url https://app.closerx.ai/api/v2/bulk/create/contacts/ \ --header 'Company-Name: <company-name>' \ --header 'Content-Type: application/json' \ --header 'api_key: <api-key>' \ --data ' { "contact": [ { "phone": "+9821985448" } ], "tags": [ "Test campaign" ] } '
{ "message": "Bulk upload process started. Check status later.", "task_id": { "message": "Contacts uploaded successfully!", "created": 0, "updated": 1, "failed_rows": [] } }
Creates contacts in bulk with associated tags. Accepts an array of contact objects and a list of tags.
Schema name for multi-tenancy
List of contacts to be created
Show child attributes
"+9821985448"
Tags to associate with contacts
Bulk contact creation started successfully
"Bulk upload process started. Check status later."
"Contacts uploaded successfully!"
Number of new contacts created
0
Number of existing contacts updated
1
Rows that failed during the upload
[]