Skip to main content
GET
/
v1
/
graph
/
relationships
Get relationships
curl --request GET \
  --url http://localhost:8080/v1/graph/relationships \
  --header 'Authorization: Bearer <token>'
{
  "relationships": [
    {
      "source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "strength": 123,
      "traversal_count": 123
    }
  ],
  "count": 123
}

Authorizations

Authorization
string
header
required

API key with mk_ or rk_ prefix

Query Parameters

agent_id
string<uuid>
required
memory_id
string<uuid>

Response

200 - application/json

Relationship list

relationships
object[]
count
integer