Skip to main content
POST
/
auth
/
login
optional session login (hosted deployments only)
curl --request POST \
  --url http://localhost:3917/auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "agent-1",
  "domain": "localhost",
  "public_key": "...",
  "signature": "...",
  "timestamp": 1700000000
}
'
{
  "agent_id": "agent-1",
  "ok": true,
  "session_token": "sess_abc123"
}

Body

application/json

Login payload: agent_id, domain, timestamp, signature, and public_key.

The body is of type any.

Response

Login accepted; returns a session token.