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
        • GETReturns a fact by UUID
        • DELDelete a fact for the given UUID
        • POSTEnd multiple sessions.
        • POSTSearch sessions for the specified query.
        • PATCHUpdate a session.
        • POSTDeprecated: Classify Session
        • POSTEnd a session
        • GETReturns all facts for a session by ID
        • POSTAdds facts to a session
        • GETGet Message
        • PATCHUpdates the metadata of a message.
        • POSTDeprecated: Use search_sessions method instead
        • GETReturns a session's summaries by ID
        • GETSynthesize a question
LogoLogo
PlaygroundDiscordStatusDashboardSign Up >
SDK ReferenceDeprecatedMemory

Deprecated: Use search_sessions method instead

Deprecated
POST
https://api.getzep.com/api/v2/sessions/:sessionId/search
POST
/api/v2/sessions/:sessionId/search
$curl -X POST https://api.getzep.com/api/v2/sessions/sessionId/search \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{}'
1[
2 {
3 "message": {
4 "content": "string",
5 "role_type": "norole",
6 "created_at": "string",
7 "metadata": {},
8 "processed": true,
9 "role": "string",
10 "token_count": 1,
11 "updated_at": "string",
12 "uuid": "string"
13 },
14 "metadata": {},
15 "score": 1.1,
16 "summary": {
17 "content": "string",
18 "created_at": "string",
19 "metadata": {},
20 "related_message_uuids": [
21 "string"
22 ],
23 "token_count": 1,
24 "uuid": "string"
25 }
26 }
27]
Was this page helpful?
Previous

Returns a session's summaries by ID

Next
Built with

Path parameters

sessionIdstringRequired
The ID of the session for which memory should be searched.

Query parameters

limitintegerOptional

The maximum number of search results to return. Defaults to None (no limit).

Request

A SearchPayload object representing the search query.
metadatamap from strings to anyOptional
Metadata Filter
min_fact_ratingdoubleOptional
min_scoredoubleOptional
mmr_lambdadoubleOptional
search_scopeenumOptional
Allowed values:
search_typeenumOptional
Allowed values:
textstringOptional

Response

A list of SearchResult objects representing the search results.
messageobject
metadatamap from strings to any
scoredouble
summaryobject

Errors

404
Not Found Error
500
Internal Server Error