Search Outbound Campaigns
Search outbound campaigns by name.
Request URL
GET {base_url}/{api_path}/outbound_call_center/search?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| search_value | No | String | The search keyword, fuzzy-matched against the name of campaigns. Maximum length: 127 characters. If not specified, all campaigns are returned. |
| page | No | Integer | Define which page is displayed. |
| page_size | No | Integer | Define how many records per page. |
| sort_by | No | String | Define the sorting field. Valid value:
|
| order_by | No | String | Define the display order. 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<Campaign> | The list of outbound campaigns on the current page. |
| total_number | Integer | The total number of outbound campaigns. |
- Campaign
-
Parameter Type Description id Integer The unique ID of the campaign. name String The name of the campaign. status String The status of the campaign. import: The contact file is being imported.improved: The campaign is pending completion.wait: The campaign is waiting to start.pause: The campaign is paused.end: The campaign has ended.running: The campaign is running.
dialer_mode String The dialer mode of the campaign. progressive: The dialer dials contacts one by one as agents become available.power: The dialer dials contacts at the specified dial rate.agentless: The dialer dials contacts without agents, and the calls are handled by the specified destination.
outbound_queue Integer The ID of the outbound queue associated with the campaign. outbound_queue_name String The name of the outbound queue associated with the campaign, in the format number-name. max_call Integer The number of concurrent calls of the campaign. dial_rate Number The dial rate of the campaign. ring_timeout Integer The ring timeout of calls, in seconds. destination_type String The destination type of the campaign. ivr: Calls are transferred to an IVR.play_greeting: A custom prompt is played.
destination_value String The value of the destination. When destination_type is ivr, it is the ID of the IVR; when destination_type is play_greeting, it is the name of the custom prompt. play_times Integer The number of times the prompt is played. max_attempts Integer The maximum number of attempts for a single contact. requeue_time Integer The requeue time of unanswered calls, in minutes. time_condition String The time condition of the campaign. global: The campaign follows the global office hours of the PBX.route_scope: The campaign follows the custom office hours specified by campaign_time.
start_time String The start time of the campaign, in the format yyyy-mm-dd hh:mm:ss. end_time String The end time of the campaign, in the format yyyy-mm-dd hh:mm:ss. enb_set_dod Integer Whether to enable the DOD number display. 0: Disabled.1: Enabled.
dod_prefix String The DOD prefix of the campaign. dod String The ID(s) of the DOD numbers of the campaign, separated by a comma. enb_masked_number Integer Whether to mask the numbers of contacts. 0: Disabled.1: Enabled.
enb_record Integer Whether to enable call recording. 0: Disabled.1: Enabled.
dnc_ids String The ID(s) of the DNC lists associated with the campaign, separated by a comma. source String The source of the campaign contacts. import: The contacts are from an uploaded contact file.phonebook: The contacts are from a phonebook.
source_value String The value of the contact source: the contact file name when source is import, or the phonebook ID when source is phonebook. number_type String The type of the contact numbers to dial. business_number: The business phone number.business_number2: The second business phone number.mobile_number: The mobile phone number.mobile_number2: The second mobile phone number.home_number: The home phone number.home_number2: The second home phone number.business_fax: The business fax number.home_fax: The home fax number.other_number: The other phone number.
sort_by String The field by which contacts are sorted for dialing. first_name: Sort contacts by first name.last_name: Sort contacts by last name.
order_by String The order of the contacts to dial. asc: Contacts are dialed in ascending order.desc: Contacts are dialed in descending order.
disposition_code String The ID(s) of the disposition codes for the campaign, separated by a comma. enb_agent_add Integer Whether to allow agents to add numbers to a DNC list. 0: Disabled.1: Enabled.
target_list String The ID(s) of the target DNC lists to which agents can add numbers, separated by a comma.
Example
Request example
GET /openapi/v1.0/outbound_call_center/search?search_value=API&page=1&page_size=2&access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK 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": 14,
"name": "API Test Campaign",
"status": "wait",
"dialer_mode": "progressive",
"outbound_queue": 8024,
"outbound_queue_name": "API Test OCC Queue-9101",
"max_call": 2,
"dial_rate": 1,
"ring_timeout": 30,
"destination_type": "",
"destination_value": "",
"play_times": 1,
"max_attempts": 3,
"requeue_time": 30,
"time_condition": "global",
"start_time": "2026-11-12 09:00:00",
"end_time": "2026-11-20 18:00:00",
"enb_set_dod": 0,
"dod_prefix": "",
"dod": "",
"enb_masked_number": 0,
"enb_record": 0,
"dnc_ids": "",
"source": "phonebook",
"source_value": "12",
"number_type": "mobile_number",
"sort_by": "first_name",
"order_by": "asc",
"disposition_code": "",
"enb_agent_add": 0,
"target_list": ""
}
]
}