---
title: "Get Relationship Sources"
method: GET
path: "/api/knowledge-graph/relationships/{relationship_id}/sources"
tags: ["knowledge-graph", "knowledge-graph"]
---

# Get Relationship Sources

`GET /api/knowledge-graph/relationships/{relationship_id}/sources`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/knowledge-graph/relationships/{relationship_id}/sources`
- Auth: none declared

Get source chunks/messages that produced a relationship.

Returns the actual text content where both entities were mentioned together,
which created this relationship in the knowledge graph.

## Path parameters

- `relationship_id` integer, required

## Query parameters

- `limit` integer

## Response `200`

Successful Response

- RelationshipSourceResponse: Response with source chunks for a relationship.
  - `relationship_id` integer, required
  - `source_entity_name` string, required
  - `target_entity_name` string, required
  - `relation_type` string, required
  - `chunks` RelationshipSourceChunk[], required
    - `chunk_id` integer, required
    - `chunk_text` string, required
    - `thread_title` string, nullable
    - `thread_channel_ref` string, nullable
    - `message_timestamp` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
