# Unable to get response body while calling an API

**URL:** <https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420>\
**Category:** API and Webhooks\
**Created:** [April 7, 2021, 11:24am UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420 "2021-04-07T11:24:06Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajeevrevada](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rajeevrevada/32/24759_2.png) [@rajeevrevada](https://devforum.zoom.us/u/rajeevrevada)\
**Post date:** [April 7, 2021, 11:24am UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/1 "2021-04-07T11:24:06Z")

</div>

Hi I have integrated the zoom with our application but whenever I hit the API ( any API) i do not see any response body.The response code seems to be fine. I get 200 ok. Please help.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 7, 2021, 4:29pm UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/2 "2021-04-07T16:29:18Z")

</div>

Hey @rajeevrevada,

Is there an example you can provide? Which endpoint are you hitting?

Let me know if you can provide some additional details.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![rajeevrevada](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rajeevrevada/32/24759_2.png) [@rajeevrevada](https://devforum.zoom.us/u/rajeevrevada)\
**Post date:** [April 7, 2021, 5:47pm UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/3 "2021-04-07T17:47:29Z")

</div>

Hey Will, I was trying to get the userid with the help of this api **/users/me**. I get the response code as 200 ok but i do not see any response body.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 7, 2021, 9:41pm UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/4 "2021-04-07T21:41:55Z")

</div>

Hey @rajeevrevada,

Thank you for providing more information. When you see this issue, are you using JWT or OAuth to authorize your call with the API? Also, are you performing a GET request on that URL?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![rajeevrevada](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rajeevrevada/32/24759_2.png) [@rajeevrevada](https://devforum.zoom.us/u/rajeevrevada)\
**Post date:** [April 8, 2021, 4:40am UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/5 "2021-04-08T04:40:30Z")

</div>

Hi @MaxM , I am currently using OAuth to authorize the call. Yes I am performing GET request on that URL.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 8, 2021, 3:59pm UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/6 "2021-04-08T15:59:42Z")

</div>

Thanks @rajeevrevada ,

Please provide exact steps to reproduce the issue.

Also, how are you making this request? Postman? In your code? If so what language? Can you share your code snippet of the request?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![rajeevrevada](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rajeevrevada/32/24759_2.png) [@rajeevrevada](https://devforum.zoom.us/u/rajeevrevada)\
**Post date:** [April 16, 2021, 9:45am UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/7 "2021-04-16T09:45:40Z")

</div>

Hi @tommy, Thanks for the reply. The issue is resolved now. The scopes have not been configured in my application so I wasn’t able to get the response

But I have one question though. I have taken the paid license and when the account’s session is expired I see that my application is failing to get the refreshed token. Can we somehow deal with this session timeout thing?

---

<div class="post-metadata">

**Author:** ![rajeevrevada](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rajeevrevada/32/24759_2.png) [@rajeevrevada](https://devforum.zoom.us/u/rajeevrevada)\
**Post date:** [April 16, 2021, 9:47am UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/8 "2021-04-16T09:47:41Z")

</div>

Also I would like to know with (“POST /meetings/{meetingId}/registrants”) Can’t we add bulk registrants together I mean can’t I add my employees together at once.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 19, 2021, 6:24pm UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/9 "2021-04-19T18:24:48Z")

</div>

Hi @rajeevrevada,

Regarding the token refresh issue, can you provide an example? Are you getting an “invalid token” error or something else?

As for the Registrants endpoint, this does not currently support bulk registration, and must be done one registrant per request.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![rajeevrevada](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rajeevrevada/32/24759_2.png) [@rajeevrevada](https://devforum.zoom.us/u/rajeevrevada)\
**Post date:** [April 20, 2021, 6:19am UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/10 "2021-04-20T06:19:30Z")

</div>

Hi @will.zoom,  
Yes, I was getting an “invalid token” error.

Regarding adding registrants to a meeting I have a question though. Generally, through the zoom app, we can add multiple participants at once. Can we achieve this functionality through any of the APIs provided by ZOOM? Coz We are integrating the zoom online meetings feature into our application and this use case is critical to us.

Thanks,  
Rajeev.

---

<div class="post-metadata">

**Author:** ![rajeevrevada](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rajeevrevada/32/24759_2.png) [@rajeevrevada](https://devforum.zoom.us/u/rajeevrevada)\
**Post date:** [April 20, 2021, 6:23am UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/11 "2021-04-20T06:23:30Z")

</div>

And I wanted to mention that we have procured the license . Just wanted to confirm if it would make any difference in the above use case( adding registrants to a meeting)

---

<div class="post-metadata">

**Author:** ![rajeevrevada](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rajeevrevada/32/24759_2.png) [@rajeevrevada](https://devforum.zoom.us/u/rajeevrevada)\
**Post date:** [April 21, 2021, 12:10pm UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/12 "2021-04-21T12:10:34Z")

</div>

Hey @will.zoom, If I wanted to add 100(say) participants to a meeting How should I proceed in adding participants to the meeting? Should I call the API 100 times to add 100 participants or is there any other way to achieve this use case?  
cc: @MaxM, @tommy

Thanks  
Rajeev

---

<div class="post-metadata">

**Author:** ![rajeevrevada](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rajeevrevada/32/24759_2.png) [@rajeevrevada](https://devforum.zoom.us/u/rajeevrevada)\
**Post date:** [April 21, 2021, 3:04pm UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/13 "2021-04-21T15:04:05Z")

</div>

Hi, Could anyone please help? We are running out of time.

Thanks,  
Rajeev

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 22, 2021, 12:28am UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/14 "2021-04-22T00:28:07Z")

</div>

Hey @rajeevrevada,

Sorry for the delay, it used to be that when we got multiple responses in a forum post it would reset the position in our queue. As of today, we have fixed that issue so you should see faster response times moving forward.

If you are encountering a critical issue that requires immediate response, you can always email [developersupport@zoom.us](mailto:developersupport@zoom.us) and we’ll help you there.

> [@rajeevrevada](#):
>
> Yes, I was getting an “invalid token” error.

Prior to making a call with the `access_token` that you have, you’ll want to check when the access token expires. If it would be expired, then you can follow the process to [refresh your access token](https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing)

> [@rajeevrevada](#):
>
> If I wanted to add 100(say) participants to a meeting How should I proceed in adding participants to the meeting? Should I call the API 100 times to add 100 participants or is there any other way to achieve this use case?

If you wanted to add multiple registrants to a meeting, you’ll want to make separate calls to the [Add a Meeting Registrant API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantcreate). Currently, we don’t have an API to add a batch of registrants but this is something that we plan on adding in the future.

I hope that helps!

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 22, 2021, 10:28am UTC](https://devforum.zoom.us/t/unable-to-get-response-body-while-calling-an-api/47420/15 "2021-05-22T10:28:29Z")

</div>

Closed on May 22, 2021, 10:28am UTC

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