Unable to get Zoom audio recording

I am trying to retrieve a zoom audio recording from client’s account, I got the zoom token which I then used in the header for the actual call to get the recording, however I am getting 2031 error Zoom Phone has not been enabled for this account

{

“access_token”: “[redacted]”,

“token_type”: “bearer”,

“expires_in”: 3599,

“scope”: “marketplace:delete:event_subscription marketplace:read:list_event_subscriptions marketplace:update:client_secret marketplace:update:event_subscription marketplace:write:event_subscription marketplace:write:websocket_connection”,

“api_url”: “https://[clientName].zoom.us”

}

error I got when I tried to get the actual recording : GET https://zoom.us/v2/phone/recording/download/[redacted]

Header:

Key : Authorization

Value: Bearer

{

“code”: 2031,

“message”: “Zoom Phone has not been enabled for this account.”

}

Also, what scopes do I need to be set up in zoom? is it a scope issue?

Hi @Kim3
Thanks for reaching out to us and welcome to the Zoom Developer Forum.
Can you please confirm you have a phone license associated with your account?
It also looks like the way you are generating the access token might be incorrect.
Could you please share the request url you are sending when creating the token?

Hi Elisa, I have managed to get this one working by changing the grant_type from client_credentials to account_credentials, now I am able to get the actual recording from zoom on postman but now when I hit the webservice I have in salesforce from postman, I get this status found, statuscode=302 response, what do I need to change to actually get the recording? I found a similar issue but it doesn’t explicitly state what the solution is Calling Download URL from Salesforce Trigger results in 302 Error - #3 by rscheibert

1 Like

Hi @elisa.zoom

Just wanted to follow up on this status found, statuscode=302 response when trying to access a zoom audio recording. Thank you

Hi @Kim3
Thanks for reaching out to us again.
I am not able to replicate this issue on my end.
When using an access token as authorization, I get the 200 code and the recording back.
Are you using this integration? App Marketplace

Or could you point me to the integration you are using?

Hi @elisa.zoom ,

yes client has set up the necessary configuration there, though I’m not sure if there’s more they need to setup. But they did give us the account id, client id and secret which I have setup in the external credential in salesforce and used it in the callout for zoom token. This is a similar issue to this Calling Download URL from Salesforce Trigger results in 302 Error

Hi @Kim3
It looks like the developer shared the solution here:

If this does not help, please reach out to support since they will be able to help troubleshooting this apps

I will also close this thread since it is duplicated