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
      • GETGet Entity Types
      • PUTSet Entity Types
      • POSTAdd Data
      • POSTAdd Data in batch mode
      • POSTAdd Fact Triple
      • POSTClone graph
      • POSTSearch Graph
        • GETGet Group Episodes
        • GETGet User Episodes
        • GETGet Episode
        • DELDelete Episode
        • GETReturn any nodes and edges mentioned in an episode
LogoLogo
PlaygroundDiscordStatusDashboardSign Up >
SDK ReferenceGraphEpisode

Get User Episodes

GET
https://api.getzep.com/api/v2/graph/episodes/user/:user_id
GET
/api/v2/graph/episodes/user/:user_id
1from zep_cloud import Zep
2
3client = Zep(
4 api_key="YOUR_API_KEY",
5)
6client.graph.episode.get_by_user_id(
7 user_id="user_id",
8 lastn=1,
9)
1{
2 "episodes": [
3 {
4 "content": "string",
5 "created_at": "string",
6 "uuid": "string",
7 "processed": true,
8 "role": "string",
9 "role_type": "norole",
10 "session_id": "string",
11 "source": "text",
12 "source_description": "string"
13 }
14 ]
15}
Returns episodes by user id.
Was this page helpful?
Previous

Get Episode

Next
Built with

Path parameters

user_idstringRequired
User ID

Query parameters

lastnintegerOptional
The number of most recent episodes entries to retrieve.

Response

Episodes
episodeslist of objects

Errors

400
Bad Request Error
500
Internal Server Error