# While making the create meeting api call, getting 400 status code with code in json as 401

**URL:** <https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450>\
**Category:** API and Webhooks\
**Created:** [January 25, 2021, 7:45am UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450 "2021-01-25T07:45:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rankguru\_dev](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@rankguru\_dev](https://devforum.zoom.us/u/rankguru_dev)\
**Post date:** [January 25, 2021, 7:45am UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/1 "2021-01-25T07:45:32Z")

</div>

**Description**  
While creating the meeting using create meeting api, we are getting the error as mentioned below.  
**Error**  
{  
“code”: 401,  
“message”: "Found illegal Freemarker variables in the template: ${meetingTime} "  
}  
**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT  
**Which Endpoint/s?**  
create meeting endpoint.

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

1. Request URL / Headers (without credentials) / Body
2. See error

**Screenshots (If applicable)**

 ![Screenshot from 2021-01-25 13-10-19](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/f/bf891e0be958420ce55d1483e06635c11f158740.png)  
**Additional context**  
Add any other context about the problem here.

---

<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:** [January 25, 2021, 10:38pm UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/2 "2021-01-25T22:38:33Z")

</div>

Hey @rankguru_dev,

Thank you for reaching out to the Zoom Developer Forum. It sounds like the Meeting Schedule email template was [customized.](https://support.zoom.us/hc/en-us/articles/213735683-Customizing-the-meeting-schedule-email-template) Please follow our guide on customizing the email template to ensure that you are using valid variables.

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![rankguru\_dev](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@rankguru\_dev](https://devforum.zoom.us/u/rankguru_dev)\
**Post date:** [January 27, 2021, 10:08am UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/3 "2021-01-27T10:08:21Z")

</div>

Hi @MaxM ,

We do not have vanity URL enabled to customize the Meeting Schedule email template.  
This is happening only when I am using schedule\_for field in the request payload.  
I have already set schedule privilege as well.  
So, please help me out with this.

---

<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:** [January 27, 2021, 11:12pm UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/4 "2021-01-27T23:12:16Z")

</div>

Hey @rankguru_dev,

Thank you for the update. How are you authenticating this request? Are you using JWT or Oauth?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![rankguru\_dev](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@rankguru\_dev](https://devforum.zoom.us/u/rankguru_dev)\
**Post date:** [January 28, 2021, 4:25am UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/5 "2021-01-28T04:25:40Z")

</div>

We are using JWT to authenticate the request.

---

<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:** [January 28, 2021, 10:48pm UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/6 "2021-01-28T22:48:43Z")

</div>

Hey @rankguru_dev,

Thank you for reaching out to the Zoom Developer Forum. I’ll note that the `/me` route is only available when using an [OAuth App](https://marketplace.zoom.us/docs/guides/auth/oauth). Due to the fact that the JWT token is account-level, it doesn’t have a concept of the current user.

Please try using the `userId` or the `email` of the user in order to make this request and let me know if that resolves your issue.

That being said, this doesn’t seem like a helpful error message. If that resolves the issue, I’ll reach out to our internal team in order to have the messaging adjusted.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![rankguru\_dev](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@rankguru\_dev](https://devforum.zoom.us/u/rankguru_dev)\
**Post date:** [January 29, 2021, 4:42am UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/7 "2021-01-29T04:42:36Z")

</div>

Thank you @MaxM for helping me out.The solution given by you works fine.

---

<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:** [January 29, 2021, 10:39pm UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/8 "2021-01-29T22:39:21Z")

</div>

Hey @rankguru_dev,

I’m glad to hear that resolved your issues! If you encounter any further issues or questions, please don’t hesitate to reach out.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![gshukla](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@gshukla](https://devforum.zoom.us/u/gshukla)\
**Post date:** [February 25, 2021, 9:46am UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/9 "2021-02-25T09:46:41Z")

</div>

Hi @MaxM ,  
Today, suddenly I started facing the same issue with Create Meeting Endpoint

[https://api.zoom.us/v2/users/xx@example.com/meetings](https://api.zoom.us/v2/users/xx@example.com/meetings)

Request:  
{  
“topic”: “Some topic”,  
“type”: 1,  
“password”: “test@123”,  
“agenda”: “Some Agenda”,  
“[schedule\_for":"xxxx@example.com](mailto:schedule_for%22:%22xxxx@example.com)”,  
“settings”: {  
“waiting\_room”: false,  
“host\_video”: false,  
“participant\_video”: false,  
“join\_before\_host”: true,  
“mute\_upon\_entry”: true,  
“approval\_type”: 0  
}  
}

Response:  
{  
“code”: 401,  
“message”: "Found illegal Freemarker variables in the template: ${meetingTime} "  
}

When I pass “schedule\_for” empty, then it is working fine but when I pass email id of one of my scheduler the endpoint giving error.

Please help on this.

---

<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:** [February 25, 2021, 10:35pm UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/10 "2021-02-25T22:35:16Z")

</div>

Hey @gshukla,

Thank you for reaching out to the Zoom Developer Forum. I was able to reproduce this issue on my end when testing with an internal account. I’ve since reached out to our engineering team to see if they are able to fix this issue. I’ll be sure to update you here when I have more information. (ZOOM-250259)

Thanks,  
Max

---

<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:** [March 2, 2021, 12:51am UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/11 "2021-03-02T00:51:58Z")

</div>

Hey @gshukla,

Thank you for your patience. Just to confirm, is the account where you’re making these calls under the same email that you use for this Developer Forum? I’m providing information to our internal team but I just want to make sure that I have the right account before doing so.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![idan.zoran](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idan.zoran/32/23848_2.png) [@idan.zoran](https://devforum.zoom.us/u/idan.zoran)\
**Post date:** [March 2, 2021, 2:10am UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/12 "2021-03-02T02:10:41Z")

</div>

I see a similar error message ”: "Found illegal Freemarker variables in the template: {meetingTime} when i use this variable in the HTML version of a Meeting Schedule Email template I modified to be used with the Outlook plug in. The error shows up every time i try to save a template with this variable, {meetingTime}, in the body of my HTM Ltemplate.

---

<div class="post-metadata">

**Author:** ![gshukla](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@gshukla](https://devforum.zoom.us/u/gshukla)\
**Post date:** [March 2, 2021, 4:13am UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/13 "2021-03-02T04:13:57Z")

</div>

Hi @MaxM ,  
No this is my trail account. I have making requests from my Licensed account. Please give me your email id so that I can share more details there?

---

<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:** [March 2, 2021, 7:09pm UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/14 "2021-03-02T19:09:37Z")

</div>

Hey @idan.zoran ,

Can you please provide steps to reproduce the issue and any screenshots that would help us debug this?

Thanks,  
Tommy

---

<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:** [March 2, 2021, 7:10pm UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/15 "2021-03-02T19:10:17Z")

</div>

Hey @gshukla ,

Please share more details with us here: [developersupport@zoom.us](mailto:developersupport@zoom.us). Make sure to include a link to this thread. 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![gshukla](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@gshukla](https://devforum.zoom.us/u/gshukla)\
**Post date:** [March 4, 2021, 12:19pm UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/16 "2021-03-04T12:19:30Z")

</div>

Hi @tommy ,

Mail sent with Subject: “Zoom Create Meeting API “schedule\_for” error: Found illegal Freemarker variables in the template: ${meetingTime}”

Please do needful.

---

<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:** [March 5, 2021, 11:34pm UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/17 "2021-03-05T23:34:11Z")

</div>

Thanks @gshukla ! 🙂

-Tommy

---

<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:** [March 9, 2021, 4:43pm UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/18 "2021-03-09T16:43:29Z")

</div>

Hey @gshukla, @rankguru_dev , @idan.zoran ,

We have confirmed this is a bug, and are working on the appropriate fix.

A workaround in the meantime is to disable the “Use Personal Meeting ID (PMI) when starting an instant meeting” setting / option and it should work.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vedprakash.jha](https://avatars.discourse-cdn.com/v4/letter/v/7ab992/32.png) [@vedprakash.jha](https://devforum.zoom.us/u/vedprakash.jha)\
**Post date:** [April 2, 2021, 4:59pm UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/19 "2021-04-02T16:59:29Z")

</div>

Do we have an ETA on this bug? I’m running into the same issue?  
Also, as suggested above, I tried with

“agenda”: “Test Meeting”,  
“settings”: {  
“use\_pmi”: “false”  
}

but the same error.  
{  
“code”: 401,  
“message”: "Found illegal Freemarker variables in the template: ${meetingTime} "  
}

---

<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 3, 2021, 1:12am UTC](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450/20 "2021-04-03T01:12:58Z")

</div>

Hey @vedprakash.jha,

I don’t have an exact ETA for you but I can see that our engineering team has completed writing the fix for this and is prepared to include it in a future release. Please see our [changelog](https://marketplace.zoom.us/docs/changelog) in order to stay up-to-date with the latest features and fixes.

Thanks,  
Max

[Next page](https://devforum.zoom.us/t/while-making-the-create-meeting-api-call-getting-400-status-code-with-code-in-json-as-401/41450.md?page=2)
