Graph Relations By Source ID
Retrieve all entity relationships extracted from a single source.
When to use it
- Debugging graph construction – verify HydraDB extracted the relationships you expected
- Visualizations – build entity graphs in admin UIs
- Audit – confirm what entities and connections exist for a specific document
Endpoint
- Auth: Bearer token
- Idempotency: Read-only
- Async: No
Example
Query parameters
Response
Entity types
Thetype field on each entity is normalized at extraction. Common types:
Behavior notes
is_memory: true to look up relations for a memory item. The default (false) targets knowledge sources.Related endpoints
- Browse sources first: List data – find the
source_idyou want to inspect - Retrieve content: Fetch content – get the original file or text
- Use in recall: Full recall with
graph_context: true– see graph context applied to a query
Errors
Common codes:400 INVALID_PARAMETERS, 404 SOURCE_NOT_FOUND, 422 VALIDATION_ERROR. See Error Responses for the full list.
Read more: Essentials → Context GraphsAuthorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The source ID to fetch relations for
"<str>"
Unique identifier for the tenant/organization
"tenant_1234"
Whether to fetch relations for memories
"<str>"
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
"sub_tenant_4567"
Maximum number of relations to return
"<str>"
Response
Successful Response
List of relations retrieved
Triple with multiple evidence items from different chunks
Indicates whether the request was successful
true
Response message describing the operation result