Memory

Lists messages for a session

GET
Lists messages for a session, specified by limit and cursor.

Path parameters

sessionIdstringRequired
Session ID

Query parameters

limitintegerOptional
Limit the number of results returned
cursorintegerOptional
Cursor for pagination

Response

This endpoint returns an object
messages
list of objectsOptional
A list of message objects.
row_count
integerOptional
The number of messages returned.
total_count
integerOptional
The total number of messages.

Errors

GET
1curl https://api.getzep.com/api/v2/sessions/sessionId/messages
1{
2 "messages": [
3 {
4 "content": "content",
5 "created_at": "created_at",
6 "role": "role",
7 "role_type": "norole",
8 "token_count": 1,
9 "updated_at": "updated_at",
10 "uuid": "uuid"
11 }
12 ],
13 "row_count": 1,
14 "total_count": 1
15}