Retrieves context identifiers for the current administrative session, including account ID, user ID, site ID, and app ID.
This method provides access to important contextual information that can be used to identify the current session's administrative context within the Wix platform.
This method takes no parameters.
An object containing the context identifiers:
| Property | Type | Description |
|---|---|---|
accountId | string | The account identifier for the current session. |
userId | string | The user identifier for the current session. |
siteId | string (optional) | The site identifier, if available for the current session. |
appId | string (optional) | The app identifier, if available for the current session. |
Get context identifiers for the current session:
The method may throw errors in the following cases:
getContextIds method is not available on the host (requires updated host initialization package)