201 Created.
POST
/api/v1/contacts/importBefore calling this endpoint, upload your CSV or spreadsheet file through the ChatbotX Workspace UI or file upload API to obtain a
fileId.Request Body
string
required
The ID of the previously uploaded file. Must be a numeric string matching the pattern
\d+.string
required
The channel type to associate contacts with. One of:
omnichannel, webchat, messenger, whatsapp, zalo, smtp, telegram, instagram, tiktok.string
required
The inbox to import contacts into. Must be a numeric string matching the pattern
\d+.string
Default country calling code to prepend to phone numbers that lack one. Must match the pattern
^\+\d{1,4}$ (e.g., +84 for Vietnam, +1 for the US).string
The column name in your file that maps to the contact’s phone number. Maximum 255 characters.
string
The column name in your file that maps to the contact’s external identifier. Maximum 255 characters.
string
The column name in your file that maps to the contact’s email address. Maximum 255 characters.
string
The column name in your file that maps to the contact’s first name. Maximum 255 characters.
string
The column name in your file that maps to the contact’s last name. Maximum 255 characters.
string
A tag ID to apply to every imported contact. Must be a numeric string matching the pattern
\d+.array of objects
Array of up to 10 mapping objects that connect file columns to ChatbotX custom fields.