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

# Graph

> Structure-only conclusion graph as an Arrow IPC stream. Experimental.

The response is an [Arrow IPC stream](https://arrow.apache.org/docs/format/Columnar.html#ipc-streaming-format) with one row per live conclusion, ordered by creation time and then ID. It carries no conclusion text. Fetch text for the conclusions you show with `POST /graph/text`.

| Column | Type | Meaning |
| - | - | - |
| `id` | string | The conclusion's ID |
| `level` | dictionary | `explicit`, `deductive`, `inductive` or `contradiction` |
| `observer`, `observed` | dictionary | The peers whose perspective holds the conclusion |
| `observer_kind` | dictionary | `scope` when the observer is a scope, otherwise `peer` |
| `session` | dictionary, nullable | The session the conclusion came from |
| `created_at` | timestamp (µs, UTC) | When the conclusion was created |
| `times_derived` | uint32 | How many times the conclusion was derived. It starts at 1 and grows each time a duplicate reinforces it |
| `sources` | list of uint32 | Row numbers of this conclusion's sources in the response, in source order |
| `unresolved_outside` | uint32 | Sources that are live but outside the requested observer and observed |
| `unresolved_deleted` | uint32 | Sources that were deleted |
| `unresolved_unknown` | uint32 | Other missing sources, such as an ID with no row in this workspace |
| `lineage` | dictionary | `not_applicable` for an explicit conclusion, `complete` when every source is in the response, `partial` when any is missing, `unknown` for an inference with no recorded sources |
| `is_copy` | bool | A scope backfill copied this conclusion from another perspective |
| `copied_from` | uint32, nullable | Row number of the original, when it is in the response |

The schema metadata key `honcho.graph.version` changes when a column changes meaning or type. New columns don't change it.

A graph with more conclusions than the server's `GRAPH_MAX_CONCLUSIONS` (150,000 by default, provisional) returns a 422. Filter by `observer` or `observed`, and use `GET /graph/overview` to see each pair's count.

Each response carries an `ETag`. Send it back in `If-None-Match` to get a 304 when nothing changed. The server still runs the full query before it compares.

In TypeScript, [flechette](https://idl.uw.edu/flechette/) or [apache-arrow](https://arrow.apache.org/js/) read the stream:

```typescript theme={null}
import { tableFromIPC } from "@uwdata/flechette";

const response = await fetch(`${baseUrl}/v3/workspaces/${workspaceId}/graph`, {
  headers: { Authorization: `Bearer ${apiKey}` },
});
const graph = tableFromIPC(new Uint8Array(await response.arrayBuffer()));
const ids = graph.getChild("id").toArray();
```

In Python, pyarrow, polars and DuckDB read it directly:

```python theme={null}
import httpx
import pyarrow as pa

response = httpx.get(
    f"{base_url}/v3/workspaces/{workspace_id}/graph",
    headers={"Authorization": f"Bearer {api_key}"},
)
graph = pa.ipc.open_stream(response.content).read_all()
```


## OpenAPI

````yaml get /v3/workspaces/{workspace_id}/graph
openapi: 3.1.0
info:
  title: Honcho API
  summary: The Identity Layer for the Agentic World
  description: >-
    Honcho is a platform for giving agents user-centric memory and social
    cognition.
  contact:
    name: Plastic Labs
    url: https://honcho.dev/
    email: hello@plasticlabs.ai
  license:
    name: GNU Affero General Public License v3.0
    url: https://github.com/plastic-labs/honcho/blob/main/LICENSE
  version: 3.7.0
servers:
  - url: https://api.honcho.dev
    description: Production SaaS Platform
security: []
paths:
  /v3/workspaces/{workspace_id}/graph:
    get:
      tags:
        - graph
      summary: Graph
      description: Structure-only conclusion graph as an Arrow IPC stream. Experimental.
      operationId: graph_v3_workspaces__workspace_id__graph_get
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            title: Workspace Id
        - name: observer
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Observer
        - name: observed
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Observed
        - name: if-none-match
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: If-None-Match
      responses:
        '200':
          description: The graph as an Arrow IPC stream.
          content:
            application/vnd.apache.arrow.stream:
              schema:
                type: string
                format: binary
        '304':
          description: The graph matches the If-None-Match ETag.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.