Search DNC Lists
Search call blacklists by name.
Request URL
GET {base_url}/{api_path}/dnc/search?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| order_by | No | String | Define the display order. Valid value:
|
| page | No | Integer | Define which page is displayed. |
| page_size | No | Integer | Define how many records per page. |
| search_value | No | String | The search keyword, fuzzy-matched against the name of the call blacklists. If omitted or empty, all the call blacklists are returned. Maximum length: 127 characters. |
| sort_by | No | String | Define the sorting field. Valid value:
|
| source | No | String | Filter the call blacklists by the source of the numbers. Valid value:
|
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 total number of the call blacklists that match the search keyword. |
- 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/search?search_value=API&sort_by=id&order_by=desc&page=1&page_size=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": 1,
"data": [
{
"id": 1,
"name": "API Test DNC",
"enb_default_choose": 1,
"source": "manually",
"phonebook_ids": "",
"is_upper_limit": 0,
"member_count": 1,
"members": null
}
]
}