# About the behavior of API execution when a user or integrated app is deleted after obtaining an access token

**URL:** <https://devforum.zoom.us/t/about-the-behavior-of-api-execution-when-a-user-or-integrated-app-is-deleted-after-obtaining-an-access-token/100042>\
**Category:** API and Webhooks\
**Created:** [December 13, 2023, 1:50am UTC](https://devforum.zoom.us/t/about-the-behavior-of-api-execution-when-a-user-or-integrated-app-is-deleted-after-obtaining-an-access-token/100042 "2023-12-13T01:50:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pi3kp85](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@pi3kp85](https://devforum.zoom.us/u/pi3kp85)\
**Post date:** [December 13, 2023, 1:50am UTC](https://devforum.zoom.us/t/about-the-behavior-of-api-execution-when-a-user-or-integrated-app-is-deleted-after-obtaining-an-access-token/100042/1 "2023-12-13T01:50:53Z")

</div>

Hello,

I plan to create an OAuth app and implement a Zoom integration feature in an existing web service. I want to obtain an access token and call APIs such as the Meetings API.

After obtaining the access token, if a user or administrator performs the following operations, will API calls using that access token result in an error? If so, what would the HTTP status be, 401, 403, etc.?

1. If the relevant user is deleted from Zoom.
2. If the integrated app on Zoom is deleted.

Sincerely,

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 14, 2023, 7:56pm UTC](https://devforum.zoom.us/t/about-the-behavior-of-api-execution-when-a-user-or-integrated-app-is-deleted-after-obtaining-an-access-token/100042/2 "2023-12-14T19:56:09Z")

</div>

Hi @pi3kp85  
Thanks for reaching out to us and welcome to our community!  
I would expect that the API calls made after the user is deleted or the app is deleted will result in an error. I would expect a 401 unauthorized access token is expired.  
I can do try and do some testing on my end and will get back to you to confirm this behavior

---

<div class="post-metadata">

**Author:** ![pi3kp85](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@pi3kp85](https://devforum.zoom.us/u/pi3kp85)\
**Post date:** [December 18, 2023, 1:47am UTC](https://devforum.zoom.us/t/about-the-behavior-of-api-execution-when-a-user-or-integrated-app-is-deleted-after-obtaining-an-access-token/100042/3 "2023-12-18T01:47:33Z")

</div>

Dear Elisa,

Thank you for your response, and thank you for conducting the test.  
I’m looking forward to your reply.

Sincerely,

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 20, 2023, 8:55pm UTC](https://devforum.zoom.us/t/about-the-behavior-of-api-execution-when-a-user-or-integrated-app-is-deleted-after-obtaining-an-access-token/100042/4 "2023-12-20T20:55:30Z")

</div>

Hi @pi3kp85  
I just wanted to get back to you after the testing I did.  
In case that the app is deleted or the user is deleted from Zoom, you will get the following error:

```auto
{
    "code": 124,
    "message": "Invalid access token."
}

Status 401: Unauthorized

```

Hope this helps!  
Elisa

---

<div class="post-metadata">

**Author:** ![pi3kp85](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@pi3kp85](https://devforum.zoom.us/u/pi3kp85)\
**Post date:** [December 21, 2023, 10:01am UTC](https://devforum.zoom.us/t/about-the-behavior-of-api-execution-when-a-user-or-integrated-app-is-deleted-after-obtaining-an-access-token/100042/5 "2023-12-21T10:01:56Z")

</div>

Dear Elisa,

Thank you for the test and clear response.  
It was very helpful.

Sincerely,

---

<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:** [December 22, 2023, 10:02am UTC](https://devforum.zoom.us/t/about-the-behavior-of-api-execution-when-a-user-or-integrated-app-is-deleted-after-obtaining-an-access-token/100042/6 "2023-12-22T10:02:57Z")

</div>

Closed on December 22, 2023, 10:02am UTC

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