Retrieves information about a specific access token.
Access tokens are specific to a subject and a client. A client (app) creates and issues an access token to a subject. The client may request a valid token from a subject to perform a certain action, such as an API call.
This endpoint works with both OAuth and custom authentication tokens.
Access token.
Whether the token is active.
Type of subject to which the token is issued.
ID of the subject to which the token is issued.
Token expiration timestamp.
Token issue timestamp.
ID of the app that created the token, as defined in the Wix Dev Center.
ID of the account that created the token, as defined in the Wix Dev Center.
ID of the site to which the token is issued.
The instance ID of the app that the access token was created for. Subscribe to the Instance App Installed webhook to receive a notification including the new app instance ID whenever a version of your app is installed on a Wix site.
curl -X POST ֿ
'https://www.wixapis.com/oauth2/token-info'
-d '{
"token": "OauthNG.JWS.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
}'
{
"active": "true",
"subjectType": "APP",
"subjectId": "a8098c1a-f86e-11da-bd1a-00112444be1e",
"exp": "1715096067",
"iat": "1715081667",
"clientId": "7f58c233-72b6-4e45-889c-56aca8dbb2ba",
"siteId": "65c5e710-5e64-4b54-a807-237a554d28a7",
"instanceId": "1ec48d1e-1919-4b9f-8e08-f7a242fdbf52"
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.