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
      • PUTSet graph ontology
      • GETList graph ontology
      • POSTAdd Data
      • POSTAdd Data in batch mode
      • POSTAdd Fact Triple
      • POSTClone graph
      • POSTCreate Graph
      • GETList all graphs.
      • POSTDetect Patterns (Experimental)
      • POSTSearch Graph
      • GETGet Graph
      • DELDelete Graph
      • PATCHUpdate Graph.
        • POSTGet Graph Edges
        • POSTGet User Edges
        • GETGet Edge
        • PATCHUpdate Edge
        • DELDelete Edge
LogoLogo
PlaygroundDiscordStatusDashboardSign Up >
SDK ReferenceGraphEdge

Get Graph Edges

POST
https://api.getzep.com/api/v2/graph/edge/graph/:graph_id
POST
/api/v2/graph/edge/graph/:graph_id
1from zep_cloud import Zep
2
3client = Zep(
4 api_key="YOUR_API_KEY",
5)
6client.graph.edge.get_by_graph_id(
7 graph_id="graph_id",
8)
1[
2 {
3 "created_at": "string",
4 "fact": "string",
5 "name": "string",
6 "source_node_uuid": "string",
7 "target_node_uuid": "string",
8 "uuid": "string",
9 "attributes": {},
10 "episodes": [
11 "string"
12 ],
13 "expired_at": "string",
14 "invalid_at": "string",
15 "relevance": 1.1,
16 "scope": "string",
17 "score": 1.1,
18 "selection_rank": 1,
19 "valid_at": "string"
20 }
21]
Returns all edges for a graph.
Was this page helpful?
Previous

Get User Edges

Next
Built with

Path parameters

graph_idstringRequired
Graph ID

Request

Pagination parameters
limitintegerOptional
Maximum number of items to return
uuid_cursorstringOptional
UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page

Response

Edges
created_atstring
Creation time of the edge
factstring
Fact representing the edge and nodes that it connects
namestring
Name of the edge, relation name
source_node_uuidstring
UUID of the source node
target_node_uuidstring
UUID of the target node
uuidstring
UUID of the edge
attributesmap from strings to any
Additional attributes of the edge. Dependent on edge types
episodeslist of strings
List of episode ids that reference these entity edges
expired_atstring
Datetime of when the node was invalidated
invalid_atstring
Datetime of when the fact stopped being true
relevancedouble

Relevance is an experimental rank-aligned score in [0,1] derived from Score via logit transformation. Only populated when using cross_encoder reranker; omitted for other reranker types (e.g., RRF).

scopestring

Scope of the edge (e.g. “entity”, “maybe_related”)

scoredouble

Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker

selection_rankinteger

SelectionRank is the global cross-scope rank assigned by auto scope selection.

valid_atstring
Datetime of when the fact became true

Errors

400
Bad Request Error
500
Internal Server Error