For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
PlaygroundDiscordStatusDashboardSign Up >
DocumentationSDK ReferenceGraphiti
DocumentationSDK ReferenceGraphiti
  • SDK Reference
      • POSTAdd Session
      • GETGet Session.
      • GETGet Sessions
      • GETGet Session Memory
      • GETGet Messages for Session
      • POSTAdd Memory to Session
      • DELDelete Session
LogoLogo
PlaygroundDiscordStatusDashboardSign Up >
SDK ReferenceMemory

Add Session

POST
https://api.getzep.com/api/v2/sessions
POST
/api/v2/sessions
$curl -X POST https://api.getzep.com/api/v2/sessions \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "session_id": "string",
> "user_id": "string"
>}'
1{
2 "classifications": {},
3 "created_at": "string",
4 "deleted_at": "string",
5 "ended_at": "string",
6 "fact_rating_instruction": {
7 "examples": {
8 "high": "string",
9 "low": "string",
10 "medium": "string"
11 },
12 "instruction": "string"
13 },
14 "facts": [
15 "string"
16 ],
17 "id": 1,
18 "metadata": {},
19 "project_uuid": "string",
20 "session_id": "string",
21 "updated_at": "string",
22 "user_id": "string",
23 "uuid": "string"
24}
Creates a new session.
Was this page helpful?

Get Session.

Next
Built with

Request

Session
session_idstringRequired
The unique identifier of the session.
user_idstringRequired
The unique identifier of the user associated with the session
fact_rating_instructionobjectOptional
Deprecated
metadatamap from strings to anyOptional
Deprecated

Response

The added session.
classificationsmap from strings to strings
created_atstring
deleted_atstring
ended_atstring
fact_rating_instructionobject
Deprecated
factslist of strings
Deprecated
idinteger
metadatamap from strings to any
Deprecated
project_uuidstring
session_idstring
updated_atstring
Deprecated
user_idstring
uuidstring

Errors

400
Bad Request Error
500
Internal Server Error