Skip to main content
POST
/
loglife
/
register
Register a new user
curl --request POST \
  --url http://localhost:18789/loglife/register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "+15551234567",
  "name": "Alice Smith",
  "model": "anthropic/claude-sonnet-4-5"
}
'
{
  "registered": true,
  "userId": "alice-smith",
  "existing": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
phone
string
required

Phone number in E.164 format

Example:

"+15551234567"

name
string

Display name (used to derive the user/agent ID)

Example:

"Alice Smith"

model
string

LLM model override for this user (defaults to the global default)

Example:

"anthropic/claude-sonnet-4-5"

Response

User registered (or already exists)

registered
boolean
Example:

true

userId
string

The generated user/agent ID

Example:

"alice-smith"

existing
boolean

True if the phone was already registered