Where to find the account ID?

Hi,
We have created a zoom admin user(admin account) with some additional users(user account). I would like to test the following rest API. It throws 404 error when I tried to use the “account number” value available in the Admin user’s account profile page.

/accounts/{accountId}/recordings

My zoom app has following required scopes for the above API

  1. recording:read:admin
  2. account:read:admin

Can you please let me know how to access the above API? I would like to list all the meetings/recordings done by all the users in the respective account(admin account)?

I appreciate your help.

Thanks,
smsivanesan

Hey @sivanesan.murugesan,

To get the account ID, you can JWT decode an OAuth access_token.

Thanks,
Tommy

Hi Tommy,

I have already tried with that. I mean, I got the same account ID(as the decoded one) from “/v2/users/me” API and used in the " /accounts/{accountId}/recordings". But no luck. It was throwing 404 error.

Thanks,
smsivanesan

Hey @sivanesan.murugesan,

Can you share the full GET request url including the accountId so I can debug?

Thanks,
Tommy

Hi Tommy, Sorry for the late response.

Here are the GET requests, I tried.
GET Request: 1
https://api.zoom.us/accounts/me/recordings
headers:
Authorization: bearer
Result: 404

GET Request: 2
https://api.zoom.us/accounts/_Mqr6z4ERnSGTuTcgoOCWA/recordings
headers:
Authorization: bearer
Result: 404

Following APIs are working for the same user:
/v2/users/me/recordings?page_number=1&page_size=30&from=2019-09-01
/v2/users/me

Thanks,
smsivanesan

Hey @sivanesan.murugesan,

Please make sure you are using a valid endpoint url. The two urls you shared are missing the /v2/ path.

Try these:

https://api.zoom.us/v2/accounts/me/recordings

https://api.zoom.us/v2/accounts/_Mqr6z4ERnSGTuTcgoOCWA/recordings

Thanks,
Tommy

Thanks Tommy. Below one works fine now.
https://api.zoom.us/v2/accounts/me/recordings

Other one with accountId throws 401 error. Looking at it. Will come back to you if I see any further issues.

Thanks,
smsivanesan

Happy to hear it’s working! :slight_smile:

Let us know if you run into any other issues!

Thanks,
Tommy

I’m writing scripts using JWT, as an admin is there a way to get it without OAuth?

Hey @EVant,

You can get the account ID via the Get User endpoint.

Thanks,
Tommy