Skip to main content
POST
/
api
/
messaging
/
contacts
/
bulk-import
Bulk Import Contacts
curl --request POST \
  --url https://api.example.com/api/messaging/contacts/bulk-import/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "tags": "<string>"
}
'
{
  "success": true,
  "message": "Contacts imported successfully",
  "imported": 100,
  "failed": 5,
  "errors": [
    {
      "row": 3,
      "error": "Invalid phone number format"
    }
  ]
}
Import multiple contacts from a CSV or Excel file.
file
file
required
CSV or Excel file containing contacts
tags
string
Comma-separated tags to apply to all imported contacts

Request Example

Form data with file upload:
file: [CSV/Excel file]
tags: "VIP,Customer"

Success Response (200)

success
boolean
Operation success status
message
string
Success message
imported
integer
Number of contacts imported successfully
failed
integer
Number of contacts that failed to import
errors
array
Array of error objects
{
  "success": true,
  "message": "Contacts imported successfully",
  "imported": 100,
  "failed": 5,
  "errors": [
    {
      "row": 3,
      "error": "Invalid phone number format"
    }
  ]
}