# Can't get refresh token at Account-level app AND OAuth app

**URL:** <https://devforum.zoom.us/t/cant-get-refresh-token-at-account-level-app-and-oauth-app/75110>\
**Category:** Authentication\
**Tags:** oauth\
**Created:** [August 30, 2022, 8:51am UTC](https://devforum.zoom.us/t/cant-get-refresh-token-at-account-level-app-and-oauth-app/75110 "2022-08-30T08:51:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![koseki](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/koseki/32/40926_2.png) [@koseki](https://devforum.zoom.us/u/koseki)\
**Post date:** [August 30, 2022, 8:51am UTC](https://devforum.zoom.us/t/cant-get-refresh-token-at-account-level-app-and-oauth-app/75110/1 "2022-08-30T08:51:49Z")

</div>

**Description**

- Does the Account-level app need to authenticate every hour when the access token expires?
- I can’t get refresh token at Account-level app AND OAuth app.
- As the background, I would like to create an application that periodically acquires webinar reports from the customer’s Zoom account and reports them.

**Error?**  
API /oauth/token expects access token and refresh token in response but doesn’t actually include refresh token

**How To Reproduce**

1. Request [https://zoom.us/oauth/authorize?response\_type=code&client\_id={id}&redirect\_uri={uri}](https://zoom.us/oauth/authorize?response_type=code&client_id=%7Bid%7D&redirect_uri=%7Buri%7D)  
#=\> I log in to Zoom and be redirected to MyApp to get the code

2. Request

curl -X POST   
-u {id:secret}   
-H ‘Content-Type: application/x-www-form-urlencoded’   
‘[https://zoom.us/oauth/token?grant\_type=authorization\_code&code={code}&redirect\_uri={uri}](https://zoom.us/oauth/token?grant_type=authorization_code&code=%7Bcode%7D&redirect_uri=%7Buri%7D)’

#=\> I can get access token but not refresh token.

{  
“access\_token”:“access token”,  
“expires\_in”:3599,  
“scope”:“report:read:admin”  
}

---

<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:** [September 1, 2022, 4:29pm UTC](https://devforum.zoom.us/t/cant-get-refresh-token-at-account-level-app-and-oauth-app/75110/2 "2022-09-01T16:29:59Z")

</div>

Hi @koseki  
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
To answer your questions:

> - Does the Account-level app need to authenticate every hour when the access token expires?

If you are working with a Server-to-Server OAuth app, yes you need to send the request for a new access token every hour (or before it expires) BUT if you are talking about an OAuth Account-level app, ,you should be able to use the refresh\_token to request a new access token everytime it expires but not re authenticate.

> - I can’t get refresh token at Account-level app AND OAuth app.

Server-to-Server OAuth apps DO NOT have refresh tokens. You will need to send a request to the oauth endpoint every hour for a new access token.  
The Oauth app should give you a refresh token in the initial response.

Now from the example that you shared, it looks like you are indeed missing the refresh token which is something I have not seen before.

To support you better please feel free to reach out to support here:

> **[Zoom Developer Support](https://devsupport.zoom.us/hc/en-us)**

Open up a ticket with them and you can add the link to this thread and I will take a look from there!  
Best,  
Elisa
