Using this template helps us debug your issues more effectively
Description
we are trying to download a zoom cloud recording using callout but it is giving a 124 forbidden error.
1- we are using JWT and passing it in the url
2- activated the following option the admin settings
Prevent hosts from accessing their cloud recordings >> disabled (when activated it gives 401 forbidden error)
Cloud recording downloads ( = True )
Only the host can download cloud recordings (= Ture)
in simple English: If you directly open the download url in browser you are able to download it, itās just it is not authenticating via callouts,
Error
The full error message or issue you are running into.
{"status: false, āerror codeā : 124, āerrorMessageā : āForbiddenā}
Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
download_url?access_token={JWT}
How To Reproduce (If applicable)
Steps to reproduce the behavior:
- Request URL / Headers (without credentials) / Body
- See error
public static void downloadRecording(String jwtToken, String download_url){
Http http = new Http();
HttpRequest req = new HttpRequest();
req.setHeader(āContent-Typeā, āaudio/mp4ā);
req.setMethod(āGETā);
req.setEndpoint(download_url+ā?access_token=ā+jwtToken);
req.setTimeout(120000);
HttpResponse res = http.send(req);
}
Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.