# This API endpoint is not recognized - Phone Call Logs

**URL:** <https://devforum.zoom.us/t/this-api-endpoint-is-not-recognized-phone-call-logs/100783>\
**Category:** API and Webhooks\
**Tags:** phone, api\
**Created:** [December 26, 2023, 7:45pm UTC](https://devforum.zoom.us/t/this-api-endpoint-is-not-recognized-phone-call-logs/100783 "2023-12-26T19:45:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbernier](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dbernier/32/50414_2.png) [@dbernier](https://devforum.zoom.us/u/dbernier)\
**Post date:** [December 26, 2023, 7:45pm UTC](https://devforum.zoom.us/t/this-api-endpoint-is-not-recognized-phone-call-logs/100783/1 "2023-12-26T19:45:14Z")

</div>

Hello, tried using PowerShell and python but keep getting the same error when I attempt to gather call logs from our account. Failed to fetch call logs. Error: {“code”:2300,“message”:“This API endpoint is not recognized.”}

I am not sure what I am missing here as I am grabbing the Client ID and Client Secret from the app and punching them into the scripts. I created an OAuth and a Sever-to-Server OAuth and then used those Client ID and Secret but no luck.

 ![Tried three apps](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/4/04bed2fc39c1435478162dc60b5440f37e563d01.png)

Below is my PowerShell script I tried but no luck. I also created a Python script, but it gets the same error. Am I gathering the wrong information for the API endpoint not to work?

# Set your Zoom API Key and Secret

$apiKey = “Client ID”  
$apiSecret = “Client Secert”

# Generate the timestamp for the previous day

$previousDay = (Get-Date).AddDays(-1).ToString(“yyyy-MM-dd”)

# Base URL for the Zoom API

$baseUrl = “[https://api.zoom.us/v2/](https://api.zoom.us/v2/)”

# Endpoint for fetching call logs

$endpoint = “${baseUrl}report/call\_logs?from=$previousDay”

# Create Authorization header with Basic authentication using API Key and Secret

$basicAuth = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(“${apiKey}:${apiSecret}”))  
$headers = @{  
“Authorization” = “Basic $basicAuth”  
}

try {  
# Make API request to fetch call logs  
$response = Invoke-RestMethod -Uri $endpoint -Headers $headers -Method Get

```
# Check if the request was successful
if ($response) {
    Write-Output $response
} else {
    Write-Error "Failed to fetch call logs."
}

```

} catch {  
Write-Error “Failed to fetch call logs. Error: $\_”  
}

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 27, 2023, 4:22pm UTC](https://devforum.zoom.us/t/this-api-endpoint-is-not-recognized-phone-call-logs/100783/2 "2023-12-27T16:22:23Z")

</div>

Hi @dbernier  
Thanks for reaching out to us  
It looks like you are trying to access an endpoint that does not exist.  
we do not have an endpoint with the structure you are sharing

[https://api.zoom.us/v2/report/call\_logs](https://api.zoom.us/v2/report/call_logs)

Please double check your endpoint and if you have a link to our Docs for the endpoint you are trying to access, share it with me so I can take a look  
Cheers,  
Elisa

---

<div class="post-metadata">

**Author:** ![dbernier](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dbernier/32/50414_2.png) [@dbernier](https://devforum.zoom.us/u/dbernier)\
**Post date:** [December 27, 2023, 5:57pm UTC](https://devforum.zoom.us/t/this-api-endpoint-is-not-recognized-phone-call-logs/100783/3 "2023-12-27T17:57:08Z")

</div>

> [@elisa.zoom](#):
>
> [https://api.zoom.us/v2/report/call\_logs](https://api.zoom.us/v2/report/call_logs)

Thank you Elisa that makes sense.

I first created the apps from the screenshot previously provided. I created them because they all result in error.  
  
`2300`  
This API endpoint is not recognized.

I used the Client Code and Client Secret from these apps and no luck.

I just did a get for /phone/call\_history?page\_size=30&from=2020-10-31&to=2021-12-31&next\_page\_token=BJLYC6PABbAHdjwSkGVQeeR6B1juwHqj3G2&keyword=User%201&department=Phone%20department&cost\_center=Phone%20cost%20center

And still no luck. Any resources on how to gather call logs from API would be helpful.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 27, 2023, 9:48pm UTC](https://devforum.zoom.us/t/this-api-endpoint-is-not-recognized-phone-call-logs/100783/4 "2023-12-27T21:48:56Z")

</div>

Hi @dbernier  
Feel free to use this post as a guide to make request to generate access tokens using a Server to Server Oauth app

> [@How to user Server-to-Sever OAuth app with Postman](https://devforum.zoom.us/t/how-to-user-server-to-sever-oauth-app-with-postman/70848):
>
> How to use our Server-to-Server OAuth with Postman? As some of you might be aware of, our JWT app is being deprecated by June 2023 and we encourage you to migrate to the newly introduced [Server-to-Server OAuth App](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app) That being said, here is a quick and simple guide on how to use or new app with Postman As stated in our documentation here: This new app type facilitates OAuth-authenticated requests between servers without end-user involvement. And this grant type enable your private server a…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 30, 2024, 1:25pm UTC](https://devforum.zoom.us/t/this-api-endpoint-is-not-recognized-phone-call-logs/100783/5 "2024-12-30T13:25:30Z")

</div>

Closed on December 30, 2024, 1:25pm UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
