Memory

Add a session

POST
Create New Session

Request

This endpoint expects an object.
session_id
stringRequired
The unique identifier of the session.
metadata
map from strings to anyOptional
The metadata associated with the session.
user_id
stringOptional
The unique identifier of the user associated with the session

Response

This endpoint returns an object
classifications
map from strings to stringsOptional
created_at
stringOptional
deleted_at
stringOptional
ended_at
stringOptional
facts
list of stringsOptional
id
integerOptional
metadata
map from strings to anyOptional
project_uuid
stringOptional
session_id
stringOptional
updated_at
stringOptional
user_id
stringOptional
Must be a pointer to allow for null values
uuid
stringOptional

Errors

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