Skip to main content
POST

Overview

Starts a new session for the specified agent and returns a JWT session token that authorizes subsequent memory operations (remember, recall, answer, etc.). The session is initialized with the server’s default duration (typically 6 hours) and tracked in ~/.memanto/sessions/. The endpoint takes no request body; session duration is controlled by server configuration (SESSION_DEFAULT_DURATION_HOURS). In addition to returning session_token in the response body, this endpoint sets an HttpOnly, SameSite=Strict cookie (memanto_session_token) so browser clients can authenticate without reading the token from JavaScript. See Cookie-Based Authentication.

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 to activate.

Next Steps

After activating an agent, store the returned session_token and use it in the X-Session-Token header for: