# POSTMAN Collections returns 401

**URL:** <https://devforum.zoom.us/t/postman-collections-returns-401/33673>\
**Category:** API and Webhooks\
**Created:** [October 19, 2020, 3:53pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673 "2020-10-19T15:53:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kannan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannan1/32/17318_2.png) [@kannan1](https://devforum.zoom.us/u/kannan1)\
**Post date:** [October 19, 2020, 3:53pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/1 "2020-10-19T15:53:50Z")

</div>

**Description**  
Hi all,

When I try and run the POST /meetings/meetingId/registrants endpoint in a POSTMAN Collection, I receive a 401 unauthorized error. However when I run this POST request by itself, it runs fine. Any thoughts? This is an OAuth app.

---

<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:** [October 20, 2020, 4:48pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/2 "2020-10-20T16:48:36Z")

</div>

Hi @kannan1,

Happy to look into this for you—can you share an example of the request in Postman (or a screenshot)? Please include request URL and headers sections, as well as the response. This will help me to debug.

Thanks!  
-Will

---

<div class="post-metadata">

**Author:** ![kannan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannan1/32/17318_2.png) [@kannan1](https://devforum.zoom.us/u/kannan1)\
**Post date:** [October 20, 2020, 7:20pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/3 "2020-10-20T19:20:11Z")

</div>

Hi @will.zoom,

I would be happy to share an example of the request in Postman.

```
    POST {{baseUrl}}/meetings/meetingsid/registrants
    Authorization: Bearer
    Cookie:
    Cache-Control:
    Postman-Token
    Content-Type = application/json
    Content-Length
    Host
    User-Agent: PostmanRuntime/7.26.5
   Accept-Encoding: gzip, deflate, br
   Connection: Keep-alive

```

I have removed the bear token for security reasons. I also read up in the documentation that in order to send a collection in POSTMAN you need to use a JWT token. I also don’t get a response when I send the collection. However here is the response when I send it by itself:

{  
“registrant\_id”: “L84f9XCtTMiZWyA9aBsWqw”,  
“id”: "ID Number,  
“topic”: “Test”,  
“start\_time”: “2020-11-30T19:00:00Z”,  
“join\_url”: “Zoom URL”  
}

---

<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:** [October 21, 2020, 3:34pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/4 "2020-10-21T15:34:02Z")

</div>

Hey @kannan1,

Although I can’t see the request body you’re passing, here is an example of how you should be sending this request in Postman:

**Request URL/Body**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/d/3d93507a3cff88acb2c03c60b972ed5e43a900a8.png)

**Request Headers**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/5/3540e6e1fc933446280580d59689ba4e993f0515.png)

**Authorization**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/7/677a58b89cd0e0becfdb26bb41c1a542780cabcd.png)

And in response, you should get something like this:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/4/34dfce2df5f4b31b0ea5c9490597e58279ac33c7.png)

Let me know if this helps!

Best,  
Will

---

<div class="post-metadata">

**Author:** ![kannan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannan1/32/17318_2.png) [@kannan1](https://devforum.zoom.us/u/kannan1)\
**Post date:** [October 21, 2020, 5:39pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/5 "2020-10-21T17:39:33Z")

</div>

Hi @will.zoom, thanks for following up. Will this work if I run it in a collection? That is where I get the 401 error.  
I can run it fine by itself though.

---

<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:** [October 21, 2020, 10:59pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/6 "2020-10-21T22:59:55Z")

</div>

Hey @kannan1,

If these details are the same, it should run in a collection as well. Can you double check your collection variables are set correctly as well? (i.e., baseUrl contains ‘https’, etc.)

Let me know!  
Will

---

<div class="post-metadata">

**Author:** ![kannan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannan1/32/17318_2.png) [@kannan1](https://devforum.zoom.us/u/kannan1)\
**Post date:** [October 22, 2020, 12:41pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/7 "2020-10-22T12:41:41Z")

</div>

Hey @will.zoom the details are the same and the variables look to be set correctly. Do I need to set up the variables in the collection itself?

---

<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:** [October 23, 2020, 1:59pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/8 "2020-10-23T13:59:53Z")

</div>

Hey @kannan1,

Yes—If you’re using a collection, I would ensure that collection’s global variables are set correctly as well.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![kannan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannan1/32/17318_2.png) [@kannan1](https://devforum.zoom.us/u/kannan1)\
**Post date:** [October 27, 2020, 8:09pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/9 "2020-10-27T20:09:52Z")

</div>

Hey @will.zoom so I added my variables to the collection global variables and I am still getting a 401. Any thoughts?

---

<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:** [October 28, 2020, 6:13pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/10 "2020-10-28T18:13:57Z")

</div>

Hey @kannan1,

Can you share a screenshot of the exact request/response in Postman that’s returning the 401?

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![kannan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannan1/32/17318_2.png) [@kannan1](https://devforum.zoom.us/u/kannan1)\
**Post date:** [October 28, 2020, 7:09pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/11 "2020-10-28T19:09:30Z")

</div>

Hey @will.zoom here is what the response looks like in the collection runner:

 ![failedattempt](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/a/aa40a195281ee621e0c6eb0f56f692a400d482ef.png)

And here is what the collection looks like:

 ![collectionsetup](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/1/316ba395dacc51577f39b7ef3c2519015677fd86.png)

---

<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:** [October 29, 2020, 7:08pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/12 "2020-10-29T19:08:37Z")

</div>

Hey @kannan1,

Can you try adding an initial value for your variables (even if they’re the same) and see if that helps? If you still have trouble, I might recommend posting on the Postman Forum here to see if they can help you debug, since the Zoom request itself seems to work otherwise:

> **[Postman](https://community.postman.com/)**
>
> A place to talk about anything Postman

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![kannan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannan1/32/17318_2.png) [@kannan1](https://devforum.zoom.us/u/kannan1)\
**Post date:** [November 3, 2020, 3:06pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/13 "2020-11-03T15:06:46Z")

</div>

Hey @will.zoom

Thanks, I will post to the POSTMAN group, I tried adding an initial value and still got a 401.

---

<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:** [November 4, 2020, 1:01am UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/14 "2020-11-04T01:01:04Z")

</div>

Thanks @kannan1!

Let us know if you still aren’t able to resolve the issue.

-Tommy

---

<div class="post-metadata">

**Author:** ![kannan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannan1/32/17318_2.png) [@kannan1](https://devforum.zoom.us/u/kannan1)\
**Post date:** [November 9, 2020, 9:11pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/15 "2020-11-09T21:11:49Z")

</div>

Hi @tommy,

I am still stuck on this and I have not heard anything from the POSTMAN group. How are individuals normally sending requests?

---

<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:** [November 11, 2020, 3:06pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/16 "2020-11-11T15:06:18Z")

</div>

Hey @kannan1,

Sorry to hear you’re still having issues! I just DM’d you to set up a call to help debug, if you’d like. 🙂

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![kannan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannan1/32/17318_2.png) [@kannan1](https://devforum.zoom.us/u/kannan1)\
**Post date:** [November 11, 2020, 3:18pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/17 "2020-11-11T15:18:04Z")

</div>

Thanks @will.zoom, I just scheduled time with you.

---

<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:** [November 12, 2020, 5:16pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/18 "2020-11-12T17:16:49Z")

</div>

Thanks, @kannan1! Chat with you tomorrow.

Best,  
Will

---

<div class="post-metadata">

**Author:** ![kannan1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannan1/32/17318_2.png) [@kannan1](https://devforum.zoom.us/u/kannan1)\
**Post date:** [November 18, 2020, 7:31pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/19 "2020-11-18T19:31:53Z")

</div>

So after working with @will.zoom it seems like its an issue with POSTMAN not sending the body. I have a ticket out to them now, If I wanted to send a POST request as an AJAX what would I need to include in the header?

---

<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:** [November 19, 2020, 5:29pm UTC](https://devforum.zoom.us/t/postman-collections-returns-401/33673/20 "2020-11-19T17:29:58Z")

</div>

Hey @kannan1,

Good question—this would look something like this, with `content-type` and `authorization` headers:

```auto
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://api.zoom.us/v2/meetings/%7BmeetingId%7D/registrants",
  "method": "POST",
  "headers": {
    "content-type": "application/json",
    "authorization": "Bearer {token}"
  },
  "processData": false,
  "data": "{\"email\":\"myemail@mycompany.com\",\"first_name\":\"Mike\",\"last_name\":\"Brown\",\"address\":\"123 Main ST\",\"city\":\"San Jose\",\"country\":\"US\",\"zip\":\"95550\",\"state\":\"CA\",\"phone\":\"111-444-4444\",\"industry\":\"Tech\",\"org\":\"IT\",\"job_title\":\"DA\",\"purchasing_time_frame\":\"More Than 6 Months\",\"role_in_purchase_process\":\"Influencer\",\"no_of_employees\":\"1-20\",\"comments\":\"Excited to host you.\",\"custom_questions\":[{\"title\":\"Favorite thing about Zoom\",\"value\":\"Meet Happy\"}]}"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});

```

Let me know if this helps,  
Will

[Next page](https://devforum.zoom.us/t/postman-collections-returns-401/33673.md?page=2)
