# Unable to create user by API

**URL:** <https://devforum.zoom.us/t/unable-to-create-user-by-api/12680>\
**Category:** API and Webhooks\
**Created:** [April 11, 2020, 1:04pm UTC](https://devforum.zoom.us/t/unable-to-create-user-by-api/12680 "2020-04-11T13:04:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarveshc](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@sarveshc](https://devforum.zoom.us/u/sarveshc)\
**Post date:** [April 11, 2020, 1:04pm UTC](https://devforum.zoom.us/t/unable-to-create-user-by-api/12680/1 "2020-04-11T13:04:45Z")

</div>

**Description**  
Unable to create user by API

**Error**  
**(1)** I am able to create Zoom meetings from my C# code, but with same JWToken unable to create user, response received (400 Bad Request).

**(2)** Also unable to test API from zoom API test environment receive invalid client ID.

 ![ZoomError](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/bdaaab5ffca111f11baf84356f941ffc0c67a24e.jpeg)

**Which App Type (JWT)?**  
JWT

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Request URL “[api.zoom.us/v2/users](http://api.zoom.us/v2/users)”  
Headers “authorization”  
Body “{“action”:“create”,  
“user\_info”:{“email”:”{{HIDDEN}}",“type”:1,“first\_name”:“Nawazish”,“last\_name”:“Khan”,“password”:“12345”}}"
2. See error: 400 Bad Request

---

<div class="post-metadata">

**Author:** ![bdeanindy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bdeanindy/32/154_2.png) [@bdeanindy](https://devforum.zoom.us/u/bdeanindy)\
**Post date:** [April 11, 2020, 5:44pm UTC](https://devforum.zoom.us/t/unable-to-create-user-by-api/12680/2 "2020-04-11T17:44:24Z")

</div>

This doesn’t appear as a valid request to me.  
The “Authorization” header should have an accompanying value.

Could you try using [Postman](https://marketplace.zoom.us/docs/guides/tools-resources/postman/using-postman-to-test-zoom-apis) to determine if this is a code or actual issue please?

---

<div class="post-metadata">

**Author:** ![sarveshc](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@sarveshc](https://devforum.zoom.us/u/sarveshc)\
**Post date:** [April 12, 2020, 7:41am UTC](https://devforum.zoom.us/t/unable-to-create-user-by-api/12680/3 "2020-04-12T07:41:44Z")

</div>

Yes I have pass “Authorization” header accompanying value with request same as “Create meetings” which is working fine.

I have not try with “Postman” but try from Zoom Interface “[https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate)”  
where I am getting error on the time of “Get Access Token”

 ![ZoomError](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/bdaaab5ffca111f11baf84356f941ffc0c67a24e.jpeg)

---

<div class="post-metadata">

**Author:** ![sarveshc](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@sarveshc](https://devforum.zoom.us/u/sarveshc)\
**Post date:** [April 12, 2020, 8:48am UTC](https://devforum.zoom.us/t/unable-to-create-user-by-api/12680/4 "2020-04-12T08:48:33Z")

</div>

> [@sarveshc](#):
>
> Yes I have pass “Authorization” header accompanying value with request same as “Create meetings” which is working fine.
> 
> I have not try with “Postman” but try from Zoom Interface “[https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate”](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate%E2%80%9D)  
> where I am getting error on the time of “Get Access Token”

From Postman getting same error “400 Bad Request” same as my C# code  
Kindly go through bellow postman screenshot

 ![ZoomError2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1a089e57e2f97ee52ea454aa16148f7dbc563df1.png)

---

<div class="post-metadata">

**Author:** ![sarveshc](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@sarveshc](https://devforum.zoom.us/u/sarveshc)\
**Post date:** [April 12, 2020, 8:51am UTC](https://devforum.zoom.us/t/unable-to-create-user-by-api/12680/5 "2020-04-12T08:51:25Z")

</div>

![ZoomError3](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/3d9ea1aaf61041aefafb2a453f74d188dc5063ff.jpeg)

---

<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 13, 2020, 9:34pm UTC](https://devforum.zoom.us/t/unable-to-create-user-by-api/12680/6 "2020-04-13T21:34:09Z")

</div>

Hey @sarveshc,

In postman, make sure to choose the “raw” “JSON” option instead of “form-data” like this:

![Screen Shot 2020-04-13 at 3.33.06 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/6872eedf04a6253c14736172c1c6b70fc071e995.jpeg)

Your authorization header looks correct! `"Authorization": "Bearer JWT_TOKEN_HERE"`

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:27pm UTC](https://devforum.zoom.us/t/unable-to-create-user-by-api/12680/7 "2020-08-21T20:27:40Z")

</div>


