Relations
The Relations operations of the Hub REST API (3 operations).
bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
userId*stringworkspaceId*stringentityId?stringFilter to relations involving this entity (either side).
type?stringFilter by relation type.
Array of relations
application/json- response
[index: integer]?curl -X GET 'https://pod.example.com/api/hub/relations?userId=string&workspaceId=string'[ { "id": "string", "userId": "string", "workspaceId": "string", "sourceEntityId": "string", "targetEntityId": "string", "type": "string", "metadata": { "property1": null, "property2": null }, "createdAt": "string" }]bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
userId*stringworkspaceId*stringsourceEntityId*stringtargetEntityId*stringtype*stringRelation type identifier (e.g. parent_of, references).
metadata?agentUserId?stringreasoning?stringsourceMessageId?stringCreated relation
application/json- response
id*stringuserId*stringworkspaceId?string|nullsourceEntityId*stringtargetEntityId*stringtype*stringmetadata?createdAt?string|curl -X POST 'https://pod.example.com/api/hub/relations' \ -H 'Content-Type: application/json' \ -d '{ "userId": "string", "workspaceId": "string", "sourceEntityId": "string", "targetEntityId": "string", "type": "string"}'{ "id": "string", "userId": "string", "workspaceId": "string", "sourceEntityId": "string", "targetEntityId": "string", "type": "string", "metadata": { "property1": null, "property2": null }, "createdAt": "string"}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
relationId*stringapplication/json- body
userId?stringworkspaceId?stringagentUserId?stringreasoning?stringsourceMessageId?stringDeletion result
application/json- response
ok*boolean[key: string]?unknowncurl -X DELETE 'https://pod.example.com/api/hub/relations/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "ok": true, "property1": null, "property2": null}