How to download all transcribed texts related to Phone call recordings from Zoom?

I’m trying to GET transcribed texts by using a python program to extract transcribed texts using OAuth Zoom App from Zoom > Phone System Management > Logs > Recordings using Zoom API calls.

I see transcript texts being shown when listening to the calls on the Zoom Web Console under Zoom > Phone System Management > Logs > Recordings.

I want to just download all transcribed texts under Phone System Management > Logs > Recordings between a fixed date/time interval.

# Authenticate and get the access token
# OAuth access token retrieval
def get_access_token():
    auth_url = 'https://zoom.us/oauth/token'
    data = {
        'grant_type': 'client_credentials'
    }
    response = requests.post(auth_url, data=data, auth=(API_KEY, API_SECRET))
    if response.status_code == 200:
        return response.json()['access_token']
    else:
        raise Exception('Failed to authenticate with Zoom API')

def download_call_transcriptions():
    access_token = get_access_token()
    headers = {
        'Authorization': f'Bearer {access_token}',
        'Content-Type': 'application/json'
    }

    # Get the list of call recordings
    url = 'https://api.zoom.us/v2/phone/recording_transcript/download/'
    response = requests.get(url, headers=headers)
    print(str(response))

Under Scopes, i could not find phone:read:admin & phone_recording:read:admin.

But i end up with => Response [404]

Thanks.

Hi @rsurendra
Thanks for reaching out to the Zoom Developer Forum and welcome to our community, I am happy to help here!
Are you able to initially get the access token? Or you are not able to get the access token at all?
If you are using Oauth please make sure to use client ID and client Secret as your auth method:

Thanks for the welcome, Elisa.

Q: Are you able to initially get the access token? Or you are not able to get the access token at all ?
Ans : I’m able to get a 491 alphanumeric characters access token back using client ID and client Secret keys which i obtained by creating a Account Level App and also tried it with a User Managed App. But i was unable to download any of the Phone Call Recordings.

Zoom Web Console under Zoom > Phone System Management > Logs > Recordings.(I want to download all these recordings)

https://api.zoom.us/v2/phone/recording_transcript/download/

The above mentioned URL is mentioned in the API documentation, but 404 means it does not exist. I’m not sure if its a Scope issue. I have enabled everything related to Phone module in Scopes, but no luck so far.

Scopes Enabled :

/phone:read:admin
/phone_call_control:read:admin
/phone_call_log:read:admin
/phone_recording:read:admin
/recording:read:admin
/user:read:admin

Let me know if you can provide a basic OAuth example in Python.
Any help is appreciated.
Thanks.

Hi @rsurendra
Here is the endpoint that you are trying to call

Make sure to also add the recordingID as a query parameter.
Note that to access this endpoint you should meet the following Prerequisites:

Screenshot 2023-07-14 at 12.20.05 PM

also make sure that you have the following scopes in your Account level app:

phone:read:admin
phone_recording:read:admin

Hi Elisa,

Thanks for the information.

I have the following scopes in my Account level app:

phone:read:admin
phone_recording:read:admin

So that should be good.

Do you know where i can find / get or download the {recordingId} ?

Because i’m not able to find {recordingId} in the Web Console i.e. When i navigate to :
Zoom Home Screen > Phone System Management > Logs > Calls / Recordings

I only see the following fields =>

Direction From To Forward to Device Time Result Path Duration (hh:mm:ss) Client Code Site Department Cost Center Charge End-to-End Encryption FAC Required

I cannot find {recordingId} .
Can you help me find it ?
Thanks.

Hi @rsurendra
You should be able to get the recording ID by querying the recordings associate with the call