Zoom call API not working

I referred below documentation related placing call from Zoom Call API but after hitting API it does not open Zoom client app to call on provided phone number.

API: https://api.zoom.us/v2/{toPhoneNumber}?cat=seccall

I used above API to place call , also provided all required info in JWT token

Thank You.

Hi @ranjeetk,

To use this schema to place an outbound call, you should be formatting your URL as follows:
zoomphonecall://{phoneNumbertoCall}?cat=seccall&token={jwttoken}

Let me know if this helps—thanks!
Will

I used below code to access zoom API still it is not working
I kept all below things while accessing Zoom API

  1. Created Zoom API Secret Key and API System Key.
  2. Having Zoom app opened with valid user.
  3. Providing all necessary details for JWT token.

Code:

DateTime utcNow = DateTime.UtcNow;
string apiSecretkey = “XXXXXXXXXXXXXXXXXXXXXXX”;
string apikey = “XXXXXXXXXXXXXX”;
byte symetricKey = Encoding.ASCII.GetBytes(apiSecretkey);
string toPhoneNumber = “+1234567890”;

            long currentEpochTimeSeconds = ((DateTimeOffset)utcNow).ToUnixTimeSeconds(); // current epoch timestamp in seconds in long format
            long tokenExpiryTimeSeconds = ((DateTimeOffset)utcNow.AddSeconds(300)).ToUnixTimeSeconds(); //expiration timestamp for the JWT in seconds in long format

            SigningCredentials credentials = new SigningCredentials(new SymmetricSecurityKey(symetricKey), SecurityAlgorithms.HmacSha256);
            JwtHeader header = new JwtHeader(credentials);

            JwtPayload payload = new JwtPayload
            {
                { "iss", apikey},
                { "iat", currentEpochTimeSeconds },
                { "exp", tokenExpiryTimeSeconds },
                { "oid", toPhoneNumber },
                { "uid", "abc@xyz.com" } // EmailAddress which user must logged into the Zoom Client app using their Zoom account.
            };

            SecurityToken token = new JwtSecurityToken(header, payload);
            JwtSecurityTokenHandler tokenHandler = new JwtSecurityTokenHandler();

            string tokenString = tokenHandler.WriteToken(token);

            string url = $"https://api.zoom.us/v2/zoomphonecall://{toPhoneNumber}?cat=seccall&token={tokenString}";
            RestClient client = new RestClient(url);

            RestRequest request = new RestRequest(Method.POST);
            request.AddHeader("content-type", "application/json");

            IRestResponse restResponse = client.Execute(request);

Please let me know if I’m missing anything.

Hi @ranjeetk,

What’s happening when you use the schema? Are you getting an error of any kind or you’re just not seeing the app launch?

And do you meet both of these prerequisites?
image

Thanks,
Will

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