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
LogoLogo
PlaygroundDiscordStatusDashboardSign Up >
SDK ReferenceGraph

Add Data

POST
https://api.getzep.com/api/v2/graph
POST
/api/v2/graph
1from zep_cloud import Zep
2
3client = Zep(
4 api_key="YOUR_API_KEY",
5)
6client.graph.add(
7 data="data",
8 type="text",
9)
1{
2 "content": "string",
3 "created_at": "string",
4 "uuid": "string",
5 "processed": true,
6 "role": "string",
7 "role_type": "norole",
8 "session_id": "string",
9 "source": "text",
10 "source_description": "string"
11}
Add data to the graph.
Was this page helpful?
Previous

Add Data in batch mode

Next
Built with

Request

Add data request
datastringRequired
typeenumRequired
Allowed values:
created_atstringOptional
group_idstringOptional
source_descriptionstringOptional<=500 characters
user_idstringOptional

Response

Added episode
contentstring
created_atstring
uuidstring
processedboolean
rolestring
Optional role, will only be present if the episode was created using memory.add API
role_typeenum

Optional role_type, will only be present if the episode was created using memory.add API

session_idstring
sourceenum
Allowed values:
source_descriptionstring

Errors

400
Bad Request Error
500
Internal Server Error