Query Information of Multiple DNC Lists
Query the detailed information of multiple call blacklists.
Request URL
GET {base_url}/{api_path}/dnc/query?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| ids | Yes | String | The unique ID(s) of call blacklists, up to 100 IDs. The unique ID of a call blacklist. Note:
|
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.
|
| data | Array<Dnc> | The list of the call blacklists. |
| total_number | Integer | The actual number of call blacklists returned. |
- Dnc
-
Parameter Type Description id Integer The unique ID of the call blacklist. name String The name of the call blacklist. source String The source of the numbers. manually: Added manually.phonebook: Imported from phonebooks.
enb_default_choose Integer Whether to select the call blacklist by default when creating an outbound campaign. 0: Disabled.1: Enabled.
is_upper_limit Integer Whether the number of members has reached the upper limit. 0: No.1: Yes.
member_count Integer The number of members in the call blacklist. phonebook_ids String The ID(s) of the associated phonebooks, separated by a comma. This field is empty when source is manually. members Array<Dnc_Member> The member details of the call blacklist. This field is returned only by the dnc/get and dnc/query interfaces, and is null in the response of the dnc/list and dnc/search interfaces.
- Dnc_Member
-
Parameter Type Description number_list Array<Number_List> The number list of the member. At least one number is required. first_name String The first name of the member. Maximum length: 63 characters. Either first_name or last_name is required. last_name String The last name of the member. Maximum length: 63 characters. Either first_name or last_name is required. company String The company of the member. Maximum length: 127 characters. email String The email address of the member, in a complete email format. Maximum length: 255 characters. industry String The industry of the member. Maximum length: 127 characters. job_title String The job title of the member. Maximum length: 127 characters. organization String The organization of the member. Maximum length: 127 characters. position String The position of the member. Maximum length: 127 characters. report_to String The person whom the member reports to. Maximum length: 127 characters. remark String The remark of the member. Maximum length: 1023 characters. street String The street of the member's address. Maximum length: 255 characters. city String The city of the member's address. Maximum length: 255 characters. state String The state of the member's address. Maximum length: 255 characters. country String The country of the member's address. Maximum length: 255 characters. zip_code String The zip code of the member's address. Maximum length: 255 characters.
- Number_List
-
Parameter Type Description num_type String The type of the number. business_number: Business number.business_number2: Business number 2.business_fax: Business fax.mobile_number: Mobile number.mobile_number2: Mobile number 2.home_number: Home number.home_number2: Home number 2.home_fax: Home fax.other_number: Other number.
number String The number. Maximum length: 31 characters. Only letters, numbers, spaces, and ( ) . - + * # are allowed.
Example
Request example
GET /openapi/v1.0/dnc/query?ids=1,5&access_token=w3rTvBskMgZ1XpQd7NhLc0eYfA6UoIjK HTTP/1.1
Host: 192.168.5.150:8088
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"total_number": 2,
"data": [
{
"id": 1,
"name": "API Test DNC Edited",
"enb_default_choose": 1,
"source": "manually",
"phonebook_ids": "",
"is_upper_limit": 0,
"member_count": 2,
"members": [
{
"first_name": "Leo",
"last_name": "Ball",
"email": "",
"company": "",
"zip_code": "",
"street": "",
"city": "",
"state": "",
"country": "",
"number_list": [
{
"num_type": "mobile_number",
"number": "13800138000"
}
],
"remark": "",
"organization": "",
"job_title": "",
"position": "",
"industry": "",
"report_to": ""
},
{
"first_name": "Emma",
"last_name": "Stone",
"email": "",
"company": "",
"zip_code": "",
"street": "",
"city": "",
"state": "",
"country": "",
"number_list": [
{
"num_type": "business_number",
"number": "+86-10-8888-6666"
}
],
"remark": "",
"organization": "",
"job_title": "",
"position": "",
"industry": "",
"report_to": ""
}
]
},
{
"id": 5,
"name": "API Test DNC Temp5",
"enb_default_choose": 0,
"source": "manually",
"phonebook_ids": "",
"is_upper_limit": 0,
"member_count": 0,
"members": null
}
]
}