List Sessions
curl --request GET \
--url https://api.vertracloud.app/v1/users/me/sessionsimport requests
url = "https://api.vertracloud.app/v1/users/me/sessions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/users/me/sessions', 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://api.vertracloud.app/v1/users/me/sessions",
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://api.vertracloud.app/v1/users/me/sessions"
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://api.vertracloud.app/v1/users/me/sessions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/users/me/sessions")
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{
"response": [
{
"id": "session-abc123",
"user_id": "user-123456789012345678",
"provider": "email",
"ip_address": "203.0.113.10",
"location": "Fortaleza, BR",
"device": "Chrome on macOS",
"expires_at": "2026-10-20T15:00:00.000Z",
"created_at": "2026-09-20T15:00:00.000Z",
"updated_at": "2026-09-21T09:00:00.000Z",
"is_current": true
}
]
}
Users
List Sessions
Lists the authenticated user’s active login sessions.
GET
/
v1
/
users
/
me
/
sessions
List Sessions
curl --request GET \
--url https://api.vertracloud.app/v1/users/me/sessionsimport requests
url = "https://api.vertracloud.app/v1/users/me/sessions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/users/me/sessions', 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://api.vertracloud.app/v1/users/me/sessions",
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://api.vertracloud.app/v1/users/me/sessions"
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://api.vertracloud.app/v1/users/me/sessions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/users/me/sessions")
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{
"response": [
{
"id": "session-abc123",
"user_id": "user-123456789012345678",
"provider": "email",
"ip_address": "203.0.113.10",
"location": "Fortaleza, BR",
"device": "Chrome on macOS",
"expires_at": "2026-10-20T15:00:00.000Z",
"created_at": "2026-09-20T15:00:00.000Z",
"updated_at": "2026-09-21T09:00:00.000Z",
"is_current": true
}
]
}
Response
array
An array of active sessions.
Show Toggle object
Show Toggle object
string
The session ID.
string
The owning user’s ID.
string
How the session was created (e.g.
email, google, github).string | null
The IP address the session was created from, if known.
string | null
A coarse location derived from the IP, if known.
string | null
A description of the device/browser, if known.
string
When the session expires.
string
When the session was created.
string
When the session was last used.
boolean
Whether this is the session tied to the credential making the current request.
{
"response": [
{
"id": "session-abc123",
"user_id": "user-123456789012345678",
"provider": "email",
"ip_address": "203.0.113.10",
"location": "Fortaleza, BR",
"device": "Chrome on macOS",
"expires_at": "2026-10-20T15:00:00.000Z",
"created_at": "2026-09-20T15:00:00.000Z",
"updated_at": "2026-09-21T09:00:00.000Z",
"is_current": true
}
]
}
Error Responses
string
The error code indicating the reason for failure. Possible values:
UNAUTHORIZED: The user is not authenticated.USER_NOT_FOUND: The authenticated user was not found.INTERNAL_SERVER_ERROR: An unexpected server error occurred.
{
"code": "UNAUTHORIZED"
}
Revoking a session is a dashboard-only action — it isn’t reachable with an API key.