- Memory
- User
- Group
- Graph
- GraphEdge
- GraphEpisode
- GraphNode
- DeprecatedMemory
- GETReturns a fact by UUID
- DELDelete a fact for the given UUID
- POSTEnd multiple sessions.
- POSTSearch sessions for the specified query.
- PATCHUpdate a session
- POSTEnd a session
- GETReturns all facts for a session by ID
- POSTAdds facts to a session
- PATCHUpdates the metadata of a message.
- POSTDeprecated:Use search_sessions method instead
- GETReturns a session's summaries by ID
- GETSynthesize a question
- DeprecatedUser
- DeprecatedGroup
- DeprecatedDocument
- GETGets a list of DocumentCollections
- GETGets a DocumentCollection
- POSTCreates a new DocumentCollection
- DELDeletes a DocumentCollection
- PATCHUpdates a DocumentCollection
- POSTCreates Multiple Documents in a DocumentCollection
- POSTBatch Deletes Documents from a DocumentCollection by UUID
- POSTBatch Gets Documents from a DocumentCollection
- PATCHBatch Updates Documents in a DocumentCollection
- GETGets a Document from a DocumentCollection by UUID
- DELDelete Document from a DocumentCollection by UUID
- PATCHUpdates a Document
- POSTSearches Documents in a DocumentCollection
Request
1 import requests 2 3 # End a session (POST /sessions/:sessionId/end) 4 response = requests.post( 5 "https://api.getzep.com/api/v2/sessions/sessionId/end", 6 headers={ 7 "Authorization": "Api-Key ", 8 "Content-Type": "application/json" 9 }, 10 json={}, 11 ) 12 13 print(response.json())
Response