Relations
The Relations operations of the Hub REST API (3 operations).
Generated from Synap-core/backend main at 24fabe7, which can be newer than the stable release self-hosters install.
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.
limit?stringPage size, 1-200 (default 100).
offset?stringRows to skip, newest first (default 0). Not with entityId: that read is not paged.
{ relations }, or { entities, configLinks } with entityId
application/json- response
entities*array<>configLinks*array<>curl -X GET 'https://pod.example.com/api/hub/relations?userId=string&workspaceId=string'{ "entities": [ { "id": "string", "profileSlug": "string", "type": "string", "title": "string", "preview": "string", "description": "string", "properties": { "property1": null, "property2": null }, "systemData": { "property1": null, "property2": null }, "userId": "string", "workspaceId": "string", "documentId": "string", "version": 0, "createdAt": "string", "updatedAt": "string", "lastInteractionAt": "string", "status": "string", "statusCategory": "string" } ], "configLinks": [ { "id": "string", "workspaceId": "string", "fromType": "string", "fromId": "string", "toType": "string", "toId": "string", "linkType": "string", "metadata": { "property1": null, "property2": null }, "createdBy": "string", "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}