Memory

Returns all sessions in a specified order

GET
Get all sessions with optional page number, page size, order by field and order direction for pagination.

Query parameters

page_numberintegerOptional
Page number for pagination, starting from 1
page_sizeintegerOptional
Number of sessions to retrieve per page
order_bystringOptional

Field to order the results by: created_at, updated_at, user_id, session_id

ascbooleanOptional
Order direction: true for ascending, false for descending

Response

This endpoint returns an object
response_count
integerOptional
sessions
list of objectsOptional
total_count
integerOptional

Errors

GET
1curl https://api.getzep.com/api/v2/sessions-ordered \
2 -H "Authorization: Api-Key <apiKey>"
1{
2 "response_count": 1,
3 "sessions": [
4 {
5 "classifications": {
6 "classifications": "classifications"
7 },
8 "created_at": "created_at",
9 "deleted_at": "deleted_at",
10 "ended_at": "ended_at",
11 "fact_version_uuid": "fact_version_uuid",
12 "facts": [
13 "facts"
14 ],
15 "id": 1,
16 "project_uuid": "project_uuid",
17 "session_id": "session_id",
18 "updated_at": "updated_at",
19 "user_id": "user_id",
20 "uuid": "uuid"
21 }
22 ],
23 "total_count": 1
24}