---
title: "The process diagram on one page"
method: GET
path: "/v1/chart-to-data/pdfs/{documentId}/pages/{page}/diagram"
tags: ["Chart Extraction"]
---

# The process diagram on one page

`GET /v1/chart-to-data/pdfs/{documentId}/pages/{page}/diagram`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/chart-to-data/pdfs/{documentId}/pages/{page}/diagram`
- Auth: HTTP bearer

The process diagram read from one page of a PDF: its nodes, edges and lanes. The first request queues the read on a worker; poll until `status` is `done` or `failed`. A diagram already found by the file's scan is returned at once. `clip` reads a pipe diagram from one part of the page only.

## Path parameters

- `documentId` string, uuid, required
- `page` integer, required

## Query parameters

- `clip` string

## Response `200`

The read's state and, once done, the diagram.

- object
  - `status` 'queued' | 'running' | 'done' | 'failed'
  - `error_code` string, nullable
  - `error_message` string, nullable
  - `view` ChartToDataDiagramView, nullable: Null until the read is done.
    - `reader` 'pipe' | 'station', nullable
    - `page` object
      - `width` number
      - `height` number
    - `nodes` object[]
      - `id` string
      - `label` string
      - `kind` string
      - `lane` string, nullable
      - `bbox` number[]
      - `symbol` number[]
      - `at` number[]
      - `items` string[]
      - `evidence` string
    - `edges` object[]
      - `id` string
      - `from` string
      - `to` string
      - `kind` string
      - `directed` boolean: True only when an arrowhead or the line order says which way the connection runs.
      - `evidence` string
      - `path` array[]: Pipe diagrams only: the drawn line segments as polylines of [x, y] points in PDF points.
        - array[]
          - number[]
    - `lanes` object[]
      - `name` string
      - `nodes` string[]

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `413`: The uploaded file exceeds the size limit.
- `422`: The page number is not a page of the PDF.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/chart-to-data/pdfs/:documentId/pages/:page/diagram/get.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
