---
title: "Get document relations (path param)"
method: GET
path: "/document_intelligence/relations/{pofid}"
tags: ["Analytics AI — Knowledge Graph"]
---

# Get document relations (path param)

`GET /document_intelligence/relations/{pofid}`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/document_intelligence/relations/{pofid}`
- Auth: HTTP bearer

Get document relationships — references, supersedes, attachment_of, invoice_for, payment_for, contract_with. Shows linked documents and relation type. Use include_all_sources=true to include all detection sources (default: user-facing...

## Path parameters

- `pofid` string, required

## Query parameters

- `direction` string
- `limit` string
- `include_all_sources` boolean

## Response `200`

Success

- object: Document relations
  - `status` 'success' | 'error', required: HTTP-Level Status
  - `job_id` string, required
  - `message` string: Human-readable status message
  - `pipeline` string: Name of the executed pipeline
  - `operation` string: Executed operation
  - `processing_time` string: Total processing time including queue (format: 123.45ms)
  - `result` object, required: The actual processing result
    - `status` 'completed' | 'failed' | 'timeout': Job-Level Status
    - `message` string: Pipeline-specific status message
    - `duration_ms` string: Pure pipeline processing time in ms
    - `output` object: Output
      - `relations` object[]
      - `total` number

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
