Upload a Contact File
Upload a contact file for outbound campaigns.
Request URL
POST {base_url}/{api_path}/outbound_call_center/upload?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| file | Yes | File | The contact file to upload. The file must be a UTF-8 encoded CSV file. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
| filename | String | The name of the uploaded contact file. Use the file name as source_value when creating or editing a campaign with source set to import. |
Example
Request example
POST /openapi/v1.0/outbound_call_center/upload?access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1
Host: 192.168.5.150:8088
Content-Type: multipart/form-data
--multipart-boundary
Content-Disposition: form-data; name="file"; filename="campaign_contacts.csv"
Content-Type: text/csv
First Name,Last Name,Mobile Number
Test,Contact,55001234567
--multipart-boundary--
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"filename": "campaign_contacts.csv"
}