Where to find client ID?

Hello. I am looking to write a simple script to end a meeting via curl. I have been reading the documentation and I am unclear as to how (or where) to obtain my client ID.

Thank you for your help.

Hey @cgeo13, thanks for posting and using Zoom!

You can generate your Client ID by creating an App here.

Since you are using curl, I suggest you create a JWT app.

Thanks,
Tommy

1 Like

Thank you Tommy. Very much appreciated!

1 Like

You are welcome! :slight_smile:

-Tommy

Hello, I am trying to build a very simple web page with php on my site where I will list all my meetings and let user join them from my web page.
I found a php-class that does just that and works with OAuth 2.0. The only thing I need is Client-ID and Client-Secret.
Now, if I log in in my zoom account, under “Profile” I find “Personal Meeting ID” but no Client-ID. If I go to settings and scroll all the way down, I find
Integration Authentication
key: XXXXXXXXXXXXXXXXXX
Secret: XXXXXXXXXXXXXXXXXXXX

I followed Tommy’s lead and try to create an App, but it is soooooo extremely complicated and all with the publishing stuff and everything. And why do I need to buld an app to retrieve a list of my meetings from my web page in the first place?

I appreciate any help.

Hey @live,

I would suggest creating a JWT App type for your use case because it does not sound like you need OAuth (calling Zoom API on 3rd party users behalf).

Once you have created your JWT App, you can use the sample JWT Token, or generate one in your code and use it to call the list meetings endpoint.

GET https://api.zoom.us/v2/users/{userId}/meetings

Headers:

{
   "Authorization": "Bearer JWT_TOKEN_HERE"
}

Let me know if that helps! :slight_smile:

Thanks,
Tommy

1 Like

Hello Tommy, thanks for your help.

I could send a request and retrieve a meeting list, using the sample token, now I need my php-script to create the tokens.
I checked the link to the libraries on jwt.io but they are all veeeeery complicated because they offer a lot of functionalities… :frowning:
Anyway, I will do my work, but still everywhere I see that I have to provide a user_id to make it work and I still don’t know where to find mine…

Hey @live,

You can see example PHP code here:

https://marketplace.zoom.us/docs/guides/auth/jwt#sample-code

Since JWT is an account level API, you can use the list users endpoint to find your user id.

You can also pas in the email as the user_id for most of the endpoints.

Thanks,
Tommy

Hello Tommy, thanks for your answer. The link you posted is to a script that does an API call, but it does not create the tokens.
Anyways, I will do my research about how to generate tokens. Where can I post a tutorial when I find out, so it may help others?

Hey @live,

Our docs to create JWT Tokens are here: https://marketplace.zoom.us/docs/guides/auth/jwt

Feel free to post any helpful resources you find here.

Thanks,
Tommy