Session Management
Activate Agent
Activate an agent to start a new session and obtain a session token for memory operations.
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).
Authentication
API clients do not send an API key orAuthorization header.
Path Parameters
The unique identifier of the agent to activate.
Next Steps
After activating an agent, store the returnedsession_token and use it in the X-Session-Token header for:
- Remember to store new memories
- Recall to search stored memories
- Generate AI Answer to synthesize a grounded response
- Get Current Session to inspect the active session