Skip to content

List active sessions

GET
/api/v1/auth/sessions
curl --request GET \
--url https://api.ultimateteam.ai/api/v1/auth/sessions \
--header 'X-API-Key: <X-API-Key>'

Return the caller’s active sessions. Auth is stateless JWT with no durable session registry, so this synthesizes the single session backing the current request from its own token claims.

Successful Response

Media typeapplication/json
Response List Sessions Api V1 Auth Sessions Get
Array<object>
SessionRow

One row in GET /api/v1/auth/sessions.

Attributes: id: Session identifier (the token’s jti claim). device: Best-effort device label from the request’s User-Agent. ip: Best-effort client IP address. last_active: When this session’s token was issued (iat). current: Whether this is the session making the request.

object
current
required
Current
boolean
device
required
Device
string
id
required
Id
string
ip
required
Ip
string
last_active
required
Last Active
string
Examplegenerated
[
{
"current": true,
"device": "example",
"id": "example",
"ip": "example",
"last_active": "example"
}
]