Memory

End a session

POST
End a session by ID

Path parameters

sessionIdstringRequired
Session ID

Request

This endpoint expects an object.
classify
objectOptional
instruction
stringOptional

Response

This endpoint returns an object
classification
objectOptional
session
objectOptional

Errors

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