# Unable to get account settings

**URL:** <https://devforum.zoom.us/t/unable-to-get-account-settings/1724>\
**Category:** API and Webhooks\
**Created:** [September 17, 2018, 6:31pm UTC](https://devforum.zoom.us/t/unable-to-get-account-settings/1724 "2018-09-17T18:31:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dayal\_Gaitonde](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dayal\_Gaitonde](https://devforum.zoom.us/u/Dayal_Gaitonde)\
**Post date:** [September 17, 2018, 6:31pm UTC](https://devforum.zoom.us/t/unable-to-get-account-settings/1724/1 "2018-09-17T18:31:07Z")

</div>

I am unable to retrieve account settings via the retrieve account settings API -&nbsp;

```
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&nbsp;successfully get the list of sub-accounts.

Please advise.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [September 19, 2018, 5:09pm UTC](https://devforum.zoom.us/t/unable-to-get-account-settings/1724/2 "2018-09-19T17:09:46Z")

</div>

Hi Dayal,&nbsp;

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

Thanks

---

<div class="post-metadata">

**Author:** ![Dayal\_Gaitonde](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dayal\_Gaitonde](https://devforum.zoom.us/u/Dayal_Gaitonde)\
**Post date:** [September 19, 2018, 5:28pm UTC](https://devforum.zoom.us/t/unable-to-get-account-settings/1724/3 "2018-09-19T17:28:17Z")

</div>

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

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

```

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

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [September 21, 2018, 6:43pm UTC](https://devforum.zoom.us/t/unable-to-get-account-settings/1724/4 "2018-09-21T18:43:15Z")

</div>

Hi Dayal,&nbsp;

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.&nbsp;

curl -X GET \  
[https://api.zoom.us/v2/accounts/wBMf7cqeQgik5oecX2zXVw/settings](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’

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Dayal\_Gaitonde1](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@Dayal\_Gaitonde1](https://devforum.zoom.us/u/Dayal_Gaitonde1)\
**Post date:** [September 21, 2018, 7:06pm UTC](https://devforum.zoom.us/t/unable-to-get-account-settings/1724/5 "2018-09-21T19:06:37Z")

</div>

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