# My app "authorization code" never arrises

**URL:** <https://forum.wixstudio.com/t/my-app-authorization-code-never-arrises/56616>\
**Category:** Ask the community\
**Tags:** api, code, wix-apps-market, question\
**Created:** [February 22, 2024, 2:19pm UTC](https://forum.wixstudio.com/t/my-app-authorization-code-never-arrises/56616 "2024-02-22T14:19:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiago\_Gouvea](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tiago_gouvea/32/88730_2.png) [@Tiago\_Gouvea](https://forum.wixstudio.com/u/Tiago_Gouvea)\
**Post date:** [February 22, 2024, 2:19pm UTC](https://forum.wixstudio.com/t/my-app-authorization-code-never-arrises/56616/1 "2024-02-22T14:19:40Z")

</div>

**Question:**  
I created an App with basic permissions, and added it to my site, but, never received the “authorization code”.

I need this code to get an Access Token and make SDK calls.

**Product:**  
Wix App

**What are you trying to achieve:**  
I want to get the Access Token, to use SDK to interact with the Wix API.

**What have you already tried:**  
I added and removed the app many times, but never received the “authorization code”.

**Additional information:**  
The [documentation](https://dev.wix.com/docs/rest/api-reference/authorization/oauth-2/request-an-access-token) says:

“Post - Request an Access Token  
Once a user has completed the installation process and given your app permission to access their data, **use the authorization code we sent you** , together with your secret key, to request an access token and a refresh token. (The access token is only valid for 5 minutes.) You can find your secret key in the [Wix Developers Center](https://dev.wix.com/dc3/my-apps).”

---

<div class="post-metadata">

**Author:** ![anthony](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/anthony/32/79536_2.png) [@anthony](https://forum.wixstudio.com/u/anthony)\
**Post date:** [February 23, 2024, 7:46pm UTC](https://forum.wixstudio.com/t/my-app-authorization-code-never-arrises/56616/2 "2024-02-23T19:46:15Z")

</div>

Adding and removing the app won’t give an authorization code. You need to send the information specified in the POST request to then endpoint you linked and it will respond with the access token and refresh token.

---

<div class="post-metadata">

**Author:** ![Tiago\_Gouvea](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tiago_gouvea/32/88730_2.png) [@Tiago\_Gouvea](https://forum.wixstudio.com/u/Tiago_Gouvea)\
**Post date:** [February 26, 2024, 11:29am UTC](https://forum.wixstudio.com/t/my-app-authorization-code-never-arrises/56616/3 "2024-02-26T11:29:46Z")

</div>

Thank you @anthony .

After sending the message here I was able to get the tokens. But now I’m facing other issues, like the server returns A LOT off 500 (internal server error) and I’m felling hard to work with it.

---

<div class="post-metadata">

**Author:** ![anthony](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/anthony/32/79536_2.png) [@anthony](https://forum.wixstudio.com/u/anthony)\
**Post date:** [February 29, 2024, 5:06pm UTC](https://forum.wixstudio.com/t/my-app-authorization-code-never-arrises/56616/4 "2024-02-29T17:06:44Z")

</div>

Can you share the code that is creating the error and associated error messages?
