Skip to content

List active sessions

GET
/api/v1/me/sessions
curl --request GET \
--url http://localhost:3000/api/v1/me/sessions \
--header 'Authorization: Bearer <token>'
x-organization-id
string format: uuid

UUID of the organization (tenant) the request acts in. It selects the tenant and grants nothing: the server checks membership or an open tenant switch. Not needed for global operations. A malformed value returns 400. API keys are fixed to their own organization; another organization returns 403. The x-organization-source header grants nothing.

Media typeapplication/json
object
items
required

Sessions

Array<object>
object
id
required

Session ID

string
ipAddress
required

IP address

string
userAgent

User agent

string
deviceType

Device type

string
browser

Browser

string
operatingSystem

Operating system

string
location

Location

string
startedAt
required

Session started at

string format: date-time
lastActivityAt
required

Last activity at

string format: date-time
expiresAt
required

Session expires at

string format: date-time
isCurrent
required

Is current session

boolean
isActive
required

Is active (not terminated or expired)

boolean
total
required

Total count

number
Examplegenerated
{
"items": [
{
"id": "example",
"ipAddress": "example",
"userAgent": "example",
"deviceType": "example",
"browser": "example",
"operatingSystem": "example",
"location": "example",
"startedAt": "2026-04-15T12:00:00Z",
"lastActivityAt": "2026-04-15T12:00:00Z",
"expiresAt": "2026-04-15T12:00:00Z",
"isCurrent": true,
"isActive": true
}
],
"total": 1
}