You want to add the channel parameter to the request:
Here is an example API Request:
https://api.zoom.us/v2/contact_center/analytics/historical/details/metrics?channel=voice&from=2024-02-20&to=2024-02-22