# How zoom rest api accepts data?

**URL:** <https://devforum.zoom.us/t/how-zoom-rest-api-accepts-data/649>\
**Category:** API and Webhooks\
**Created:** [July 19, 2017, 4:59am UTC](https://devforum.zoom.us/t/how-zoom-rest-api-accepts-data/649 "2017-07-19T04:59:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyank\_Kotiyal](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@Priyank\_Kotiyal](https://devforum.zoom.us/u/Priyank_Kotiyal)\
**Post date:** [July 19, 2017, 4:59am UTC](https://devforum.zoom.us/t/how-zoom-rest-api-accepts-data/649/1 "2017-07-19T04:59:26Z")

</div>

If I pass data in query string then it works fine. But if I pass data in body&nbsp;then it doesn’t work. Screen shots are from POSTMAN.

Following one worked -:

[https://api.zoom.us/v1/user/getbyemail?api\_key=xxxxxx&api\_secret=xxxxxx&email=email@domain.com](https://api.zoom.us/v1/user/getbyemail?api_key=xxxxxx&api_secret=xxxxxx&data_type=JSON&email=email@domain.com).

 ![](https://support.zoom.us/hc/user_images/Zjrk9Imy-B-IPbkVPvBXQQ.png)

Following not worked -:

Method : POST

URL -: [https://api.zoom.us/v1/user/getbyemail](https://api.zoom.us/v1/user/getbyemail)

data:&nbsp;{“api\_key”:“xxxxxxxxx”,“api\_secret”:“xxxxxxxx”,"":“email”:“[email@domain.com](mailto:email@domain.com)”}

 ![](https://support.zoom.us/hc/user_images/PY8r7xpezR4sAnePkx2F8A.png)

May I know how zoom rest api accepts&nbsp;data? i.e in body, header or only in query string?

---

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [July 19, 2017, 4:40pm UTC](https://devforum.zoom.us/t/how-zoom-rest-api-accepts-data/649/2 "2017-07-19T16:40:10Z")

</div>

Hi Priyank,

The API accepts POST form url encoded data. Not sure, without looking at the code, why the first way works because it should be in the form data (body) and not the query string.

The second example does not work because you are trying to post raw data, a json object it looks like.

The best way in postman is in the example below

 ![](https://support.zoom.us/hc/user_images/TLeb1df86YkC5pgpNonn3w.png)

---

<div class="post-metadata">

**Author:** ![Priyank\_Kotiyal](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@Priyank\_Kotiyal](https://devforum.zoom.us/u/Priyank_Kotiyal)\
**Post date:** [July 20, 2017, 4:46am UTC](https://devforum.zoom.us/t/how-zoom-rest-api-accepts-data/649/3 "2017-07-20T04:46:02Z")

</div>

Hi Joshua,

&nbsp; &nbsp; &nbsp; Thanks a lot. It worked fine now. Actually previously I was sending data in JSON format. After changing content type to “application/x-www-form-urlencoded” it worked fine.

Previously I have tried&nbsp;-:

request.ContentType = “application/text” and&nbsp;request.ContentType = “application/json”

After using following it worked fine -:

request.ContentType = “application/x-www-form-urlencoded”;

Best regards

Priyank
