curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/login/sessions?token='import requests
url = "https://sandbox.circularo.com/api/v1/login/sessions?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/login/sessions?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/login/sessions?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/login/sessions?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/login/sessions?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/login/sessions?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"connection": {
"browser": "Chrome",
"browserVersion": "130.0.0.0",
"ip": "203.0.113.42",
"location": {
"city": "Prague",
"country": "Czechia",
"countryCode": "CZ",
"region": "Prague"
},
"os": "Windows 10.0",
"platform": "Microsoft Windows",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
},
"created": "2023-11-07T05:31:56Z",
"lastUsed": "2023-11-07T05:31:56Z",
"token": "Vp8kZ5UBq1nLxY2cF3aD",
"username": "john.doe@example.com",
"validForMilliseconds": 2592000000
}
]{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}List the caller's active sessions
GET /login/sessions
Returns every sign-in of the caller’s own account that is still alive, across all their devices, each with when it started, when it was last used and what it was opened from. It is what a security screen lists so that a person can spot a session they do not recognize.
Each entry carries its own identifier, which is what a client hands to the sign-out endpoint to end that particular session; it is not a credential and cannot be used to authenticate. The session making the call is listed among the others and is not marked in any way - to recognize it, compare this against the identifier its own token carries. API keys and the platform’s own internal sessions are not sessions in this sense and are left out.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/login/sessions?token='import requests
url = "https://sandbox.circularo.com/api/v1/login/sessions?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/login/sessions?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/login/sessions?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/login/sessions?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/login/sessions?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/login/sessions?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"connection": {
"browser": "Chrome",
"browserVersion": "130.0.0.0",
"ip": "203.0.113.42",
"location": {
"city": "Prague",
"country": "Czechia",
"countryCode": "CZ",
"region": "Prague"
},
"os": "Windows 10.0",
"platform": "Microsoft Windows",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
},
"created": "2023-11-07T05:31:56Z",
"lastUsed": "2023-11-07T05:31:56Z",
"token": "Vp8kZ5UBq1nLxY2cF3aD",
"username": "john.doe@example.com",
"validForMilliseconds": 2592000000
}
]{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Response
Returns the caller's sessions that are still usable.