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

1 Like

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

1 Like

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

Hi Tommy,

I tried with Get User endpoint and i got the account id, but when i am trying to use to account id to call this api /v2/accounts/{accountid}/users i am getting a failure message stating that account is not fount, can you please help me here.

Thanks,
Kiran

Hey @kirankumar,

Can you please share the link to the endpoint you are trying to call?

Thanks,
Tommy

Hi Tommy, Thanks for the response actually i figured out the issue now i am able to get all the sub accounts.

Thanks in advance,
Kiran

1 Like

Hey @kirankumar,

That is great! Happy to hear that! :slight_smile:

Thanks,
Tommy

Hi Kiran,

I have the similar issue. May I know the resolution for this issue.

Thanks,
Priyanka.

Hey @priyanka.thummala,

Can you be more specific? You can get your account_id via the Get User API.

Thanks,
Tommy

We are using zoom API’s to build reports in Tableau for our metrics team.

We would need master account ID, so that we can use sub accounts & billing information, plan information pulled from respective APIs

FYI, I have already tried this.

Got the account ID via Get User Endpoint.

But when I am trying to use the same account id to call this API /v2/accounts/{accountid}/users i am getting a failure message stating that “{‘code’: 2001, ‘message’: 'Account does not exist”.

Thanks,

Priyanka.

Hey @priyanka.thummala,

The accountId in the endpoint /v2/accounts/{accountId}/users is the sub account ID.

Are you on an ISV plan?

Thanks,
Tommy