# Error in Add Meeting Registrant API: 401 Unauthorised, Invalid Token, Invalid Request

**URL:** <https://devforum.zoom.us/t/error-in-add-meeting-registrant-api-401-unauthorised-invalid-token-invalid-request/55028>\
**Category:** API and Webhooks\
**Created:** [July 31, 2021, 6:18am UTC](https://devforum.zoom.us/t/error-in-add-meeting-registrant-api-401-unauthorised-invalid-token-invalid-request/55028 "2021-07-31T06:18:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![demo91673](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@demo91673](https://devforum.zoom.us/u/demo91673)\
**Post date:** [July 31, 2021, 6:18am UTC](https://devforum.zoom.us/t/error-in-add-meeting-registrant-api-401-unauthorised-invalid-token-invalid-request/55028/1 "2021-07-31T06:18:48Z")

</div>

**Description**  
Getting 401 error while trying to add meeting registrant

**Error**  
PHP Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST [https://zoom.us/oauth/token`]([https://zoom.us/oauth/token`](https://zoom.us/oauth/token%60)) resulted in a `401 Unauthorized` response: {“reason”:“Invalid Token!”,“error”:“invalid\_request”}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
Add Meeting Registrant API

> **[Add meeting registrant - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantcreate)**
>
> Register a participant for a meeting. Note that there is a maximum limit of 4999 registrants per meeting and users will see an error if the capacity has...

**Screenshots (If applicable)**

 ![2021-07-31__2_](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/d/2d721e69b769b540e2632848ab42f9564791083c.png)

**Additional context**  
Able to create a meeting with the token, but not able to add a registrant to the meeting

---

<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:** [August 2, 2021, 7:52pm UTC](https://devforum.zoom.us/t/error-in-add-meeting-registrant-api-401-unauthorised-invalid-token-invalid-request/55028/2 "2021-08-02T19:52:22Z")

</div>

Hi @demo91673,

Can you confirm that the meeting host has a license? This is a prerequisite for this API and will throw this kind of error if the host of the meeting to which you’re registering users is not licensed.

Let me know—thanks!  
Will

---

<div class="post-metadata">

**Author:** ![demo91673](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@demo91673](https://devforum.zoom.us/u/demo91673)\
**Post date:** [August 3, 2021, 6:14am UTC](https://devforum.zoom.us/t/error-in-add-meeting-registrant-api-401-unauthorised-invalid-token-invalid-request/55028/3 "2021-08-03T06:14:13Z")

</div>

Okay, But create a meeting by the host (it’s licenced)  
can we add a participant to send invite links (it’s required licenced?)

---

<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:** [August 4, 2021, 2:06pm UTC](https://devforum.zoom.us/t/error-in-add-meeting-registrant-api-401-unauthorised-invalid-token-invalid-request/55028/4 "2021-08-04T14:06:02Z")

</div>

@demo91673 as long as the host of the meeting to which you’re registering participants is licensed, you should be able to register any user (regardless of their license).

Thanks!  
Will

---

<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:** [September 4, 2021, 12:06am UTC](https://devforum.zoom.us/t/error-in-add-meeting-registrant-api-401-unauthorised-invalid-token-invalid-request/55028/5 "2021-09-04T00:06:54Z")

</div>

Closed on September 4, 2021, 12:06am UTC

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