POST

Request an Access Token


Creates your app’s refresh token and an initial access token.

Deprecated: This method is deprecated and is no longer available for new apps. Existing apps that already use custom authentication (deprecated) can continue using it. To migrate to the new authentication, see Authenticate Using OAuth.

Important: Authentication methods differ depending on whether you're building a Wix app or a Wix Headless project.

Wix sends your app the authorization code after a new user has completed the installation process and given your app permission to access their data.

You must pass the authorization code, your app ID, your app’s secret key, and {"grant_type": "authorization_code"} to create the refresh token and an initial access token.

Endpoint
POST
https://www.wixapis.com/oauth/access

Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?