Creates a new access token.
Important: This endpoint is relevant only for custom authentication (legacy). For OAuth, use Create Access Token.
You must pass your app ID, your app’s secret key, the refresh token, and {“grant_type”: “refresh_token”}
to create a new access token.
Request type. You must pass "refresh_token"
to request a new access token when using custom authentication (legacy).
Your app ID, as defined in the Wix Dev Center.
Your app's secret key ID, as defined in the Dev Center.
Your app instance’s refresh token.
Your app instance’s refresh token that never expires. Identical to the one that you’ve sent in the request.
Created access token that you can use to make Wix API calls. It expires after 5 minutes.
curl -X POST \
'https://www.wixapis.com/oauth/access' \
-H 'Content-Type: application/json' \
-d '{
"grant_type": "refresh_token",
"client_id": "<APP_ID>",
"client_secret": "<APP_SECRET_KEY>",
"refresh_token": "<REFRESH_TOKEN>"
}'
{
"access_token": "<SAMPLE_ACCESS_TOKEN>",
"refresh_token": "<SAMPLE_REFRESH_TOKEN>"
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.