This endpoint returns a boolean indicating if a session token is valid for a specified user.


GET    /api/useraccount/validatesessiontoken/{userAccountId}/{sessionToken}



Request


Url Params

userAccountId
int
the id of the user account
sessionTokenguidthe id of the session token


Authorization

The following authorization header is required.  The authorisation header should be set to a 'Bearer Token' type


Token


Response

The response will be a boolean indicating if the session token is valid.


Examples


C# Example


var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://{platform API url}/api/useraccount/validatesessiontoken/{userAccountId}/{sessionToken}");
request.Headers.Add("Authorization", "Bearer {access token}");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());


cURL Example


curl --location 'https://{platform API url}/api/useraccount/validatesessiontoken/{userAccountId}/{sessionToken}' \
--header 'Authorization: Bearer {access token}'