List active sessions
GET
/api/v1/auth/sessions
const url = 'https://api.ultimateteam.ai/api/v1/auth/sessions';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
Response List Sessions Api V1 Auth Sessions Get
Array<object>
SessionRowOne 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" }]