Skip to main content

Sessions API

Retrieve active conversation sessions from the OpenClaw gateway. These are agent conversation sessions, not wallet payment sessions.

List sessions

Requires session authentication. Returns up to 50 conversation sessions from the gateway.
New instances are provisioned with per-sender session scope, meaning each sender gets an isolated conversation. Sessions reset daily at 4:00 AM server time and are pruned after 30 days (with a maximum of 500 entries per sender). You can change these defaults using the config API.

Response

Session object

Response fields

Gateway errors

When the gateway is unreachable, the endpoint returns HTTP 200 with an empty session list and the error detail:

Errors

Example