> ## Documentation Index
> Fetch the complete documentation index at: https://docs.causeloop.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Cluster Subgraph

> GET /clusters/{cluster_id}/graph — subgraph for a single cluster.

Wave 4B (API-IMPLEMENTATION-SPEC.md §6.3): edges are the REAL persisted
graph_weave edges for this run (`repo.list_graph_edges`), restricted to
pairs where both endpoints are members of this cluster, exposing
`components: {cos, bm25, structural}` from each edge's provenance —
replacing the previous fabricated pattern co-occurrence edges.



## OpenAPI

````yaml /openapi.json get /v1/clusters/{cluster_id}/graph
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/clusters/{cluster_id}/graph:
    get:
      tags:
        - clusters
      summary: Get Cluster Subgraph
      description: |-
        GET /clusters/{cluster_id}/graph — subgraph for a single cluster.

        Wave 4B (API-IMPLEMENTATION-SPEC.md §6.3): edges are the REAL persisted
        graph_weave edges for this run (`repo.list_graph_edges`), restricted to
        pairs where both endpoints are members of this cluster, exposing
        `components: {cos, bm25, structural}` from each edge's provenance —
        replacing the previous fabricated pattern co-occurrence edges.
      operationId: get_cluster_subgraph_v1_clusters__cluster_id__graph_get
      parameters:
        - in: path
          name: cluster_id
          required: true
          schema:
            title: Cluster Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````