Sessions represent coding work periods. Each session groups related observations.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Gentleman-Programming/engram/llms.txt
Use this file to discover all available pages before exploring further.
Create Session
POST /sessions
Create a new session or update an existing one.
Request Body
Unique session identifier. Use UUIDs or timestamps for uniqueness.
Project name (e.g., “engram”, “my-app”)
Working directory path
Response
The session ID
Always “created”
Example
End Session
POST /sessions/{id}/end
Mark a session as completed with an optional summary.
Path Parameters
Session ID to end
Request Body
Optional session summary describing what was accomplished
Response
The session ID
Always “completed”
Example
Get Recent Sessions
GET /sessions/recent
Retrieve recent sessions, optionally filtered by project.
Query Parameters
Filter by project name
Maximum number of sessions to return (1-100)
Response
Returns an array of session summaries:Session ID
Project name
ISO 8601 timestamp when session started
ISO 8601 timestamp when session ended (null if still active)
Session summary if provided
Number of observations in this session