# Account level app - get account id

**URL:** <https://devforum.zoom.us/t/account-level-app-get-account-id/33320>\
**Category:** API and Webhooks\
**Created:** [October 15, 2020, 7:41am UTC](https://devforum.zoom.us/t/account-level-app-get-account-id/33320 "2020-10-15T07:41:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgp](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@pgp](https://devforum.zoom.us/u/pgp)\
**Post date:** [October 15, 2020, 7:41am UTC](https://devforum.zoom.us/t/account-level-app-get-account-id/33320/1 "2020-10-15T07:41:53Z")

</div>

Hi,

I have an account level oauth app. The idea is this app gets webhooks from different accounts.

When I get a webhook I want to use the access token to do something.

In order to do that I need to know which access token to use based on the account id in the webhook.

I have read that the account\_id is in the access token JWT - but when I decode the access token it is not there for me.

When I fetch an access token when the code is redirected to me - how do I know which account it is for?

Or, how do I get the account id to be in the access token as Ive seen in other posts?

Many thanks

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 16, 2020, 3:05pm UTC](https://devforum.zoom.us/t/account-level-app-get-account-id/33320/2 "2020-10-16T15:05:40Z")

</div>

Hey @pgp,

Is it possible to provide an example of the webhook and token you’re referring to, to make sure we’re on the same page? Our Webhook payloads will include and account ID, but I’m not sure exactly which token you’re referring to.

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![pgp](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@pgp](https://devforum.zoom.us/u/pgp)\
**Post date:** [October 16, 2020, 3:28pm UTC](https://devforum.zoom.us/t/account-level-app-get-account-id/33320/3 "2020-10-16T15:28:06Z")

</div>

Hi @will.zoom

I’m referring to the access token (Bearer token used in API calls) - I was trying to get the account\_id from the token, as I read here: [Where to find the account ID?](https://devforum.zoom.us/t/where-to-find-the-account-id/7159)

Currently I am doing a call to /v2/users/me to get the account\_id - but being able to get it from the token would mean I dont need to do that call or include the scope to make the call.

I have the account ID from the webhook.

Many thanks

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 19, 2020, 6:05pm UTC](https://devforum.zoom.us/t/account-level-app-get-account-id/33320/4 "2020-10-19T18:05:59Z")

</div>

Hey @pgp,

Ah, I see—thanks for clarifying!

Please see my post here, which walks through how to decode an access token to get an account ID:

> [@Deauthorization endpoint user identification](https://devforum.zoom.us/t/deauthorization-endpoint-user-identification/33047/6):
>
> Hey @dave2 , Thank you for clarifying, and my sincere apologies for not catching your concern from the onset. I understand now that you’re essentially looking to make this connection with a customer’s Account ID as soon as they authorize/install the app, so that you can then have this record on your end when they uninstall (but please correct me if I’m misunderstanding). While there’s not a completely straight forward way to track this, there is a suggestion I can make: When an account author…

Let me know if this helps,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 19, 2020, 4:06am UTC](https://devforum.zoom.us/t/account-level-app-get-account-id/33320/5 "2020-11-19T04:06:07Z")

</div>

Closed on November 19, 2020, 4:06am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
