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
fact_version_uuid
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 "fact_version_uuid": "fact_version_uuid",
9 "facts": [
10 "facts"
11 ],
12 "id": 1,
13 "metadata": {
14 "metadata": {
15 "key": "value"
16 }
17 },
18 "project_uuid": "project_uuid",
19 "session_id": "session_id",
20 "updated_at": "updated_at",
21 "user_id": "user_id",
22 "uuid": "uuid"
23}