Skip to main content
POST

Overview

Terminates the current session for the specified agent and returns a summary including the start/end time, total duration, and number of memories stored during the session. It also clears the memanto_session_token cookie. No session token is needed: the management check below is enough, so a client that lost its token can still end the session.

Authentication

string
Bearer <key> — required unless the request originates from a loopback client. See Management Endpoint Authentication.
string
Alternative to Authorization: Bearer — same credential.

Path Parameters

string
required
The unique identifier of the agent whose session should be ended.

Next Steps