Memory

End multiple sessions

POST
End multiple sessions by their IDs

Request

This endpoint expects an object.
session_ids
list of stringsRequired
instruction
stringOptional

Response

This endpoint returns an object
sessions
list of objectsOptional

Errors

POST
1curl -X POST https://api.getzep.com/api/v2/sessions/end \
2 -H "Authorization: Api-Key <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "session_ids": [
6 "session_ids"
7 ]
8}'
1{
2 "sessions": [
3 {
4 "classifications": {
5 "classifications": "classifications"
6 },
7 "created_at": "created_at",
8 "deleted_at": "deleted_at",
9 "ended_at": "ended_at",
10 "fact_version_uuid": "fact_version_uuid",
11 "facts": [
12 "facts"
13 ],
14 "id": 1,
15 "project_uuid": "project_uuid",
16 "session_id": "session_id",
17 "updated_at": "updated_at",
18 "user_id": "user_id",
19 "uuid": "uuid"
20 }
21 ]
22}