Error
I’m using RestClient and I keep getting the error:“code”:403,“message”:"You do not have permission."
Which App Type (OAuth / Chatbot / JWT / Webhook)?
Oauth
C# CODE:
var client = new RestClient(download_url);
var request = new RestRequest(Method.GET);
request.AddHeader(“Authorization”, "Bearer " + AccessToken);
request.AddHeader(“Content-Type”, “application/json”);
var response = client.Execute(request);
Thanks for reaching out about this, and happy to help.
Can I kindly ask how you’re appending the access token? Can you please try appending ?access_token={token} as well as ?download_token={token} and let me know if this works for you?
Can you try replacing access_token with download_token in your URL? The token itself will remain the same. Some of our endpoints use different naming conventions for the token parameter, and I’d like to rule out that this endpoint isn’t expecting download_token instead of access_token. Please try something like this and let me know if you see the same error: https://zoom.us/v2/phone/voice_mails/download/DguydazmQ_aGyQtlRhMUpw?download_token={token}
This may not be the issue, but I’d like to rule it out.
Thank you for confirming that. You’re correct that you should be able to use the access_token, but thank you for ruling that out.
Another thing to check—can you please try downloading the Voicemail using the download_url in an incognito window? (using ?access_token={token}) If you have an active session logged into another account, this could cause issues as well.
If you still have trouble with it, can you please share the full API response that includes the access_token you’re using and the full download URL you’re attempting with? This will help to further debug, and you can send this directly to developersupport@zoom.us.
Hi Will,
Sorry for the late reply, I tried using the link in incognito mode and used access_token={token} I got the same error: Whitelabel Error Page.
Here is my API response :
Content:{“code”:403,“message”:“You do not have permission.”}
ContentType:application/json;charset=UTF-8
Response URI:{https://zoom.us/v2/phone/voice_mails/download/DguydazmQ_aGyQtlRhMUpw}
StatusCode:Bad Request
IsSuccessful:false
C# code:
var client = new RestClient(download_url);
var request = new RestRequest(Method.GET);
request.AddHeader(“Authorization”, "Bearer " + AccessToken);
request.AddHeader(“Content-Type”, “application/json”);
var response = client.Execute(request);