# Viewing the sample code generated on the endpoint pages

**URL:** <https://devforum.zoom.us/t/viewing-the-sample-code-generated-on-the-endpoint-pages/31685>\
**Category:** API and Webhooks\
**Created:** [September 29, 2020, 6:47pm UTC](https://devforum.zoom.us/t/viewing-the-sample-code-generated-on-the-endpoint-pages/31685 "2020-09-29T18:47:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmichael](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmichael/32/15650_2.png) [@tmichael](https://devforum.zoom.us/u/tmichael)\
**Post date:** [September 29, 2020, 6:47pm UTC](https://devforum.zoom.us/t/viewing-the-sample-code-generated-on-the-endpoint-pages/31685/1 "2020-09-29T18:47:12Z")

</div>

Hi, I am trying to view the generated sample code found near the bottom of the API endpoint pages, as you can see here: [Create a meeting for a user](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate)

However, when I hit send, I just get this message back:

{  
“code”: 124,  
“message”: “Invalid access token.”  
}

Here is a screenshot:

 ![Screenshot 2020-09-29 144532](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/a/6aa658f6f57a476ccf278d99eafd104c96f3e151.png)

What do I need to send along in order for this to work?

Thanks!

---

<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:** [September 30, 2020, 9:33pm UTC](https://devforum.zoom.us/t/viewing-the-sample-code-generated-on-the-endpoint-pages/31685/2 "2020-09-30T21:33:55Z")

</div>

Hey @tmichael,

Are you passing values for userId and token?

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

If you want a valid test request, you’ll need to populate these fields. However, you can generate the code snippet for test purposes by putting place holders, not hitting send, and clicking Code Generation:

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

Let me know if this helps!

Best,  
Will

---

<div class="post-metadata">

**Author:** ![tmichael](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmichael/32/15650_2.png) [@tmichael](https://devforum.zoom.us/u/tmichael)\
**Post date:** [October 1, 2020, 4:52pm UTC](https://devforum.zoom.us/t/viewing-the-sample-code-generated-on-the-endpoint-pages/31685/3 "2020-10-01T16:52:48Z")

</div>

Thanks! That worked perfectly! I was not aware that I could pass in placeholders for the required parameters.

Thanks again!

---

<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 2, 2020, 2:56pm UTC](https://devforum.zoom.us/t/viewing-the-sample-code-generated-on-the-endpoint-pages/31685/4 "2020-10-02T14:56:37Z")

</div>

Hey @tmichael,

Awesome—Glad that did the trick! 🙂

Best,  
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:** [November 2, 2020, 12:56am UTC](https://devforum.zoom.us/t/viewing-the-sample-code-generated-on-the-endpoint-pages/31685/5 "2020-11-02T00:56:38Z")

</div>

Closed on November 2, 2020, 12:56am UTC

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