POST

Token Info


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.

Endpoint
POST
https://www.wixapis.com/oauth2/token-info

Body Params
tokenstring

Access token.

Response Object
activeboolean

Whether the token is active.


subjectTypeenum

Type of subject to which the token is issued.


subjectIdstring

ID of the subject to which the token is issued.


expnumber

Token expiration timestamp.


iatnumber

Token issue timestamp.


clientIdnumber

ID of the app that created the token, as defined in the Wix Dev Center.


accountIdnumber

ID of the account that created the token, as defined in the Wix Dev Center.


siteIdnumber

ID of the site to which the token is issued.


instanceIdnumber

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.

Request
cURL
curl -X POST ֿ 'https://www.wixapis.com/oauth2/token-info' -d '{ "token": "OauthNG.JWS.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" }'
Response
JSON
{ "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" }
Errors

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

Did this help?