Get account's call history
GET {{baseUrl}}/phone/call_history?page_size=30&from=<date>&to=<date>&next_page_token=<string>&keyword=<string>&directions=outbound&directions=outbound&connect_types=internal&connect_types=internal&number_types=3rd_party_contact_center&number_types=byoc&call_types=emergency&call_types=emergency&extension_types=group_call_pickup&extension_types=user&call_results=answered&call_results=connected&group_ids=<string>&group_ids=<string>&site_ids=<string>&site_ids=<string>&department=<string>&cost_center=<string>&time_type=start_time&recording_status=
Returns an account's new edition call logs .
Prerequisites:
role with Zoom Phone management
Scopes:
phone:read:admin
,
phone_call_log:read:admin
Granular Scopes:
phone:read:list_call_logs:admin
Rate Limit Label
:
HEAVY
Request Params
| Key | Datatype | Required | Description |
| page_size
| number | | The number of records returned within a single API call. |
| from
| string | | The start time and date in yyyy-mm-dd or yyyy-MM-dd'T'HH:mm:ss'Z' format.
The date range defined by the from
and to
parameters should be a month as the response only includes one month's worth of data. The month defined should fall within the last six months. If unspecified, returns data within the 24 hours. |
| to
| string | | Required only when the from
parameter is specified.
End time and date in yyyy-mm-dd or yyyy-MM-dd'T'HH:mm:ss'Z' format, the same format as the from
parameter. |
| next_page_token
| string | | The next page token paginates through a large set of results. A next page token returns whenever the set of available results exceeds the current page size. The expiration period for this token is 15 minutes. |
| keyword
| string | | The keyword of the name, extension, number, email address, and call ID. It provides the ability to search by keyword and it shows a list of all the related calls. Any calls go through this keyword. |
| directions
| string | | The direction filter of the call logs. |
| directions
| string | | The direction filter of the call logs. |
| connect_types
| string | | The connect type filter of the call logs.
internal
external
| |connect_types
| string | | The connect type filter of the call logs.internal
external
| |number_types
| string | | The number type filter of the caller or callee. | |number_types
| string | | The number type filter of the caller or callee. | |call_types
| string | | The call type filter of the call logs.general
emergency
| |call_types
| string | | The call type filter of the call logs.general
emergency
| |extension_types
| string | | The extension type filter of the call logs. | |extension_types
| string | | The extension type filter of the call logs. | |call_results
| string | | The call result filter of the call logs. | |call_results
| string | | The call result filter of the call logs. | |group_ids
| string | | The primary group filter of call logs. | |group_ids
| string | | The primary group filter of call logs. | |site_ids
| string | | The site filter of call logs. | |site_ids
| string | | The site filter of call logs. | |department
| string | | The department of which the call log belongs. | |cost_center
| string | | The cost center of which the call log belongs. | |time_type
| string | | This field enables you to search call logs by start or end time. By default, using start_time | |recording_status
| null | | The recording filter indicates whether the whole call has recording or not. recorded means the call has at least one recording, non_recorded means the call does not have any recordings. |
HEADERS
| Key | Datatype | Required | Description |
| Accept
| string | | |
RESPONSES
status: OK
{"call_logs":[{"id":"\u003cstring\u003e","call_id":"\u003cstring\u003e","direction":"inbound","start_time":"\u003cstring\u003e","answer_time":"\u003cstring\u003e","end_time":"\u003cstring\u003e","duration":"\u003cinteger\u003e","connect_type":"internal","sbc_id":"\u003cstring\u003e","sbc_name":"\u003cstring\u003e","sip_group_id":"\u003cstring\u003e","sip_group_name":"\u003cstring\u003e","call_type":"general","call_result":"abandoned","caller_ext_id":"\u003cstring\u003e","caller_did_number":"\u003cstring\u003e","caller_ext_number":"\u003cstring\u003e","caller_name":"\u003cstring\u003e","caller_email":"\u003cstring\u003e","caller_ext_type":"shared_line_group","caller_number_type":"anonymous_number","callee_ext_id":"\u003cstring\u003e","callee_did_number":"\u003cstring\u003e","callee_ext_number":"\u003cstring\u003e","callee_name":"\u003cstring\u003e","callee_email":"\u003cstring\u003e","callee_ext_type":"common_area","callee_number_type":"byop","department":"\u003cstring\u003e","cost_center":"\u003cstring\u003e","site_id":"\u003cstring\u003e","group_id":"\u003cstring\u003e","site_name":"\u003cstring\u003e","spam":"\u003cstring\u003e","recording_status":"recorded"},{"id":"\u003cstring\u003e","call_id":"\u003cstring\u003e","direction":"outbound","start_time":"\u003cstring\u003e","answer_time":"\u003cstring\u003e","end_time":"\u003cstring\u003e","duration":"\u003cinteger\u003e","connect_type":"external","sbc_id":"\u003cstring\u003e","sbc_name":"\u003cstring\u003e","sip_group_id":"\u003cstring\u003e","sip_group_name":"\u003cstring\u003e","call_type":"general","call_result":"hang_up","caller_ext_id":"\u003cstring\u003e","caller_did_number":"\u003cstring\u003e","caller_ext_number":"\u003cstring\u003e","caller_name":"\u003cstring\u003e","caller_email":"\u003cstring\u003e","caller_ext_type":"call_queue","caller_number_type":"zoom_toll_free_number","callee_ext_id":"\u003cstring\u003e","callee_did_number":"\u003cstring\u003e","callee_ext_number":"\u003cstring\u003e","callee_name":"\u003cstring\u003e","callee_email":"\u003cstring\u003e","callee_ext_type":"external_contact","callee_number_type":"anonymous_number","department":"\u003cstring\u003e","cost_center":"\u003cstring\u003e","site_id":"\u003cstring\u003e","group_id":"\u003cstring\u003e","site_name":"\u003cstring\u003e","spam":"\u003cstring\u003e","recording_status":"recorded"}],"from":"\u003cstring\u003e","to":"\u003cstring\u003e","page_count":"\u003cinteger\u003e","page_size":"\u003cinteger\u003e","total_records":"\u003cinteger\u003e","next_page_token":"\u003cstring\u003e"}