Search IVRs
Search IVRs in a tenant.
Request URL
POST {base_url}/uc-cconfig/api/v1/ivrs/search-page
Request parameters
- Headers
-
Parameter Required Type Description Authorization Yes String The access token used for authentication. Format: Bearer
{access_token}.x-tenant-code Yes String The tenant name. Note: You can obtain tenant name using the Query Tenants interface.
- Body parameters
-
Parameter Required Type Description pageNumber Yes Integer The page number to retrieve. pageSize Yes Integer The number of records to retrieve per page. keyword No String The keyword used to search for IVRs by extension number or name. extension No String The extension number used to search for IVRs. name No String The name used to search for IVRs. enableDialOutbound No Boolean Whether to filter IVRs by their outbound route permission setting.
Valid value:true: Enabledfalse: Disabled
dialUserModes No Array<String> The direct dialing modes used to filter IVRs. Valid value:
ALL: Allow callers to reach all users.ALLOWED: Allow callers to reach only the specified users.RESTRICTED: Allow callers to reach all users except the specified users.DISABLED: Direct dialing is disabled.
sorts No Array<Sort_Condition> The sort conditions.
- Sort_Condition
-
Parameter Required Type Description property No String The name of the field to sort by. Valid value:
idextensionname
direction No String The sort order. Valid value:
asc: Sort in ascending order.desc: Sort in descending order.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
| code | String | The HTTP status code of the request.
|
| message | String | The status message of the request. |
| detailMessage | String | The detailed error information. When the request is successful, this parameter returns empty. |
| result | Object<Search_Result> | The search results of IVRs. |
- Search_Result
-
Parameter Type Description pageSize Integer The number of records per page. pageNumber Integer The current page number. count String The total number of matching records. limit Integer The maximum number of IVRs that can be added. results Array<IVR_Item> The list of matching IVRs.
- IVR_Item
-
Parameter Type Description id String The unique identifier of the IVR. extension String The extension number of the IVR. name String The name of the IVR. dialUserStatus String The direct dialing mode of the IVR. ALL: Allow callers to reach all users.ALLOWED: Allow callers to reach only the specified users.RESTRICTED: Allow callers to reach all users except the specified users.DISABLED: Direct dialing is disabled.
enableDialOutbound Boolean Whether direct dialing via outbound routes is enabled. true: Enabledfalse: Disabled
Example
Request example
POST /uc-cconfig/api/v1/ivrs/search-page HTTP/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mw3v6wfdoXqLYRNlD2A
Content-Type: application/json
x-tenant-code: jint
{
"pageNumber": 1,
"pageSize": 5
}
Response example
HTTP/1.1 200 OK { "requestId": "80a3533f40c4286cdb6e5ad269172630", "code": "200", "message": "SUCCESS", "detailMessage": "", "result": { "pageSize": 5, "pageNumber": 1, "count": 1, "results": [ { "id": "361032823083233280", "extension": "6200", "name": "6200", "dialUserStatus": "DISABLED", "enableDialOutbound": false } ], "limit": 32 } }