# Error When create webinar registrants code: -1

**URL:** <https://devforum.zoom.us/t/error-when-create-webinar-registrants-code-1/24578>\
**Category:** API and Webhooks\
**Created:** [July 20, 2020, 12:59am UTC](https://devforum.zoom.us/t/error-when-create-webinar-registrants-code-1/24578 "2020-07-20T00:59:22Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![philip](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/philip/32/5103_2.png) [@philip](https://devforum.zoom.us/u/philip)\
**Post date:** [August 11, 2020, 2:58pm UTC](https://devforum.zoom.us/t/error-when-create-webinar-registrants-code-1/24578/21 "2020-08-11T14:58:21Z")

</div>

> [@conventionline](#):
>
> `$KEY_ZOOM`

Hey Michael: Could I ask you where you got the $KEY\_ZOOM value from? I have been struggling to generate a token I can use in this context to perform API calls from within Zapier but I keep getting "The app returned “Invalid access token.”

I have been through the OAUTH token generation process but I still don’t understand where that token is supposed to come from…

---

<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:** [August 11, 2020, 8:41pm UTC](https://devforum.zoom.us/t/error-when-create-webinar-registrants-code-1/24578/22 "2020-08-11T20:41:01Z")

</div>

Hey @philip,

The `$KEY_ZOOM` is just a variable in their code. What specially are you trying to do?

You can use [OAuth](https://marketplace.zoom.us/docs/guides/build/oauth-app) to [get an access\_token](https://marketplace.zoom.us/docs/guides/auth/oauth), or generate a [JWT Token](https://marketplace.zoom.us/docs/guides/auth/jwt) from a [JWT App](https://marketplace.zoom.us/docs/guides/build/jwt-app).

Thanks,  
Tommy

[Previous page](https://devforum.zoom.us/t/error-when-create-webinar-registrants-code-1/24578.md?page=1)
