For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
PlaygroundDiscordStatusDashboardSign Up >
DocumentationSDK ReferenceGraphiti
DocumentationSDK ReferenceGraphiti
  • SDK Reference
      • POSTAdd Session
      • GETGet Session.
      • GETGet Sessions
      • GETGet Session Memory
      • GETGet Messages for Session
      • POSTAdd Memory to Session
      • DELDelete Session
LogoLogo
PlaygroundDiscordStatusDashboardSign Up >
SDK ReferenceMemory

Get Messages for Session

GET
https://api.getzep.com/api/v2/sessions/:sessionId/messages
GET
/api/v2/sessions/:sessionId/messages
$curl https://api.getzep.com/api/v2/sessions/sessionId/messages
1{
2 "messages": [
3 {
4 "content": "string",
5 "role_type": "norole",
6 "created_at": "string",
7 "metadata": {},
8 "processed": true,
9 "role": "string",
10 "token_count": 1,
11 "updated_at": "string",
12 "uuid": "string"
13 }
14 ],
15 "row_count": 1,
16 "total_count": 1
17}
Returns messages for a session.
Was this page helpful?
Previous

Add Memory to Session

Next
Built with

Path parameters

sessionIdstringRequired
Session ID

Query parameters

limitintegerOptional
Limit the number of results returned
cursorintegerOptional
Cursor for pagination

Response

OK
messageslist of objects
A list of message objects.
row_countinteger
The number of messages returned.
total_countinteger
The total number of messages.

Errors

404
Not Found Error
500
Internal Server Error