---
title: "Get project graph"
method: GET
path: "/api/v1/projects/{project_id}/graph"
tags: ["Projects"]
---

# Get project graph

`GET /api/v1/projects/{project_id}/graph`

## Request

- Base URL: `https://api.studio.kaitoi.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.studio.kaitoi.io/api/v1/projects/{project_id}/graph`
- Auth: HTTP bearer

Returns a sanitized graph snapshot for a project. Internal metadata, execution history, and private storage paths are intentionally omitted.

## Path parameters

- `project_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

A sanitized project graph snapshot.

- PublicGraph
  - `projectId` string, required: Project identifier for this graph snapshot.
  - `version` integer, required: Project version used to build this graph snapshot.
  - `nodes` PublicGraphNode[], required: Nodes in the public graph snapshot.
    - `id` string, required: Stable node instance identifier.
    - `type` string, required: Node type identifier.
    - `title` string, nullable: Node display title.
    - `position` PublicPosition
      - `x` number, required: Node X position on the graph canvas.
      - `y` number, required: Node Y position on the graph canvas.
      - `z` number, nullable: Optional Z position for surfaces that support it.
    - `inputs` PublicNodePin[], required: Publicly visible node inputs.
      - `name` string, required: Pin name as defined by the node.
      - `type` string, nullable: Public data type for the pin.
      - `value` unknown
      - `exposed` boolean: Whether the pin is exposed as a public input/output.
      - `label` string, nullable: Human-readable pin label.
    - `outputs` PublicNodePin[], required: Publicly visible node outputs.
      - `name` string, required: Pin name as defined by the node.
      - `type` string, nullable: Public data type for the pin.
      - `value` unknown
      - `exposed` boolean: Whether the pin is exposed as a public input/output.
      - `label` string, nullable: Human-readable pin label.
  - `connections` PublicConnection[], required: Connections between graph pins.
    - `sourceNodeId` string, required: Source node identifier.
    - `sourcePin` string, required: Source output pin name.
    - `targetNodeId` string, required: Target node identifier.
    - `targetPin` string, required: Target input pin name.

## Other responses

- `401`: Missing, malformed, expired, or revoked bearer token.
- `403`: The API key lacks the required scope or account capability.
- `404`: The project does not exist or is not owned by this user.
- `422`: Validation Error
- `429`: The client or API key exceeded the REST API rate limit.
- `503`: The shared REST API rate limiter is temporarily unavailable.

---

[API](https://skmtc.dev/kaitoi/apis/kaitoi-rest-api.md) · [All operations](https://skmtc.dev/kaitoi/apis/kaitoi-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kaitoi/apis/kaitoi-rest-api/revisions/239a74aa2c64?raw)
