Session API

The Session APIs enable you to manage the sessions of existing users.

Managing login

Use this API to authenticate and login a user.

Resource URL

`post` /tspublic/v1/session/login

Request Parameters

username

Username of the user.

Datatype

string

password

Password of the user.

Datatype

string

rememberme

A flag to remember the user session. The system default is false.

Datatype

boolean

Request Example

cURL
curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' --header 'X-Requested-By: ThoughtSpot' -d 'username=test&password=fhfh2323bbn&rememberme=false' 'https://<instance>/callosum/v1/tspublic/v1/session/login'
Request URL
https://<instance>/callosum/v1/tspublic/v1/session/login

Response Example

Not applicable
204 - Successful login

Managing logout

Use this API to log a current user out of an existing session. The user details are captured from the active user session.

Resource URL

`post` /tspublic/v1/session/logout

Request Example

cURL
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'X-Requested-By: ThoughtSpot' 'https://<instance>/callosum/v1/tspublic/v1/session/logout'
Request URL
https://<instance>/callosum/v1/tspublic/v1/session/logout

Response Example

Not applicable
204 - Successful logout