Skip to main content
GET
/
loglife
/
sessions
Get session data
curl --request GET \
  --url http://localhost:18789/loglife/sessions \
  --header 'Authorization: Bearer <token>'
{
  "sessionKey": "<string>",
  "sessionId": "<string>",
  "updatedAt": 123,
  "abortedLastRun": true,
  "chatType": "<string>",
  "lastChannel": "<string>",
  "origin": {
    "label": "<string>",
    "from": "<string>",
    "to": "<string>"
  },
  "deliveryContext": {
    "channel": "<string>",
    "to": "<string>"
  },
  "compactionCount": 123,
  "inputTokens": 123,
  "outputTokens": 123,
  "totalTokens": 123,
  "model": "<string>"
}

Authorizations

Authorization
string
header
required

The API key configured in openclaw.json under plugins.entries.loglife.config.apiKey

Query Parameters

phone
string

Phone number (e.g. +15551234567). Matches against origin.from in sessions.json.

sessionId
string

Session UUID

key
string

Session key (the top-level key in sessions.json)

Response

Session found

sessionKey
string
sessionId
string
updatedAt
number

Unix timestamp (ms)

abortedLastRun
boolean
chatType
string
lastChannel
string
origin
object
deliveryContext
object
compactionCount
integer
inputTokens
integer
outputTokens
integer
totalTokens
integer
model
string