Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Refresh an Access Token

Request a new access token each time you call our APIs. Use the refresh token together with your secret key, to request a new access and refresh tokens

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

POST

https://www.wix.com/oauth/access

Body Params

NAME
TYPE
DESCRIPTION
grant_type

string

Value must be set to "refresh_token"

client_id

string

The App ID as defined in the Wix Developers Center

client_secret

string

The Secret Key for your app as defined in your Wix Developers Center

refresh_token

string

The refresh token issued with the access token.

Response Object

NAME
TYPE
DESCRIPTION
refresh_token

string

The Refresh Token in order to request a new Access Token

access_token

string

The new Access token

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Request

Copy Code
1curl -X POST \
2 https://www.wix.com/oauth/access \
3 -H 'Content-Type: application/json' \
4 -d '{
5 "grant_type": "refresh_token",
6 "client_id": <APP_ID>,
7 "client_secret": <APP_SECRET>,
8 "refresh_token": <REFRESH_TOKEN>
9}'