Developers

GetSessionId

Usage

Use this method to obtain the value of the sessionId. You can use this value to filter sessions by this id in the Event Tracking page of your Knowledge instance.

  client.getSessionId()

Mandatory parameters

This method does not have any mandatory parameters.

Options

This method does not have any options.

Response data format

This method returns the ID of the session that is active at the time of the request:

  {
      "sessionId": string
  }

Example

The following example saves the sessionId in a variable.

var sessionId = client.getSessionId()