Skip to main content
POST
/
v1
/
graph
/
traverse
Traverse graph
curl --request POST \
  --url http://localhost:8080/v1/graph/traverse \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "start_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "relation_types": [
    "<string>"
  ],
  "max_depth": 2
}
'
{
  "paths": [
    {
      "path": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "path_length": 123,
      "total_strength": 123
    }
  ],
  "memories": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

API key with mk_ or rk_ prefix

Body

application/json
start_ids
string<uuid>[]
required
relation_types
string[]
max_depth
integer
default:2

Response

200 - application/json

Traversal result

paths
object[]
memories
object[]