Unable to get account settings

I am unable to retrieve account settings via the retrieve account settings API - 

GET https://api.zoom.us/v2/accounts/\<subAccountId\>/settings

I am getting a 400 error w/ the following data response -

{
 "code": -1,
 "message": null
}

Note, the bearer token I am using for the request above is valid as I am using that to successfully get the list of sub-accounts.

Please advise.

Hi Dayal, 

What account ID or email are you using to get the list of sub accounts? 

Thanks

To get the list of sub-accounts I am not providing an account id or email, I am simply calling this API - 

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

The sub-account id I’m getting back and subsequently using to get call the settings API is wBMf7cqeQgik5oecX2zXVw

Hi Dayal, 

This is the curl command I got from POSTman that I used to get the subaccounts settings. You will only need to replace the token on your end. 

curl -X GET \
https://api.zoom.us/v2/accounts/wBMf7cqeQgik5oecX2zXVw/settings \
-H ‘Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3sfsfsf’ \
-H ‘Cache-Control: no-cache’ \
-H ‘Content-Type: application/json’ \
-H ‘Postman-Token: 1ab31d6e-b4e8-4f3b-8679-9378d55aebce’

 

 

Thanks for the followup Michael, but the issue went away and the API started working again a day or two ago.