Api / Memory / Relations

GET/v1/memory/relations

Auth: tenant — Status: stable

List relations for the authenticated tenant.

Request

Query parameters

NameTypeDescription
source_idintFilter to edges from this entry.
target_idintFilter to edges to this entry.
relationstringFilter to one relation kind.
limitintDefault 200, hard max 1000.
curl -H "Authorization: Bearer atr_…" \
  "http://arbiter.example.com/v1/memory/relations?source_id=42"

Response

200 OK

{
  "count": 1,
  "relations": [
    {
      "id": 7,
      "tenant_id": 1,
      "source_id": 42,
      "target_id": 43,
      "relation": "supports",
      "created_at": 1777058500
    }
  ]
}

Failure modes

StatusWhenBody
400relation not in enum.{"error": "..."}
401Missing / invalid bearer.{"error": "..."}

See also