---
title: "Returns the entity relationships."
method: GET
path: "/v2/entities/{document_id}/relationships"
tags: ["Documents"]
---

# Returns the entity relationships.

`GET /v2/entities/{document_id}/relationships`

## Request

- Base URL: `http://localhost:8082`
- URL: `http://localhost:8082/v2/entities/{document_id}/relationships`
- Auth: none declared. Required headers: `authorization`
- TypeScript: <https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/docs/v2/entities/:document_id/relationships/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the entity relationships.

## Path parameters

- `document_id` string, required

## Headers

- `authorization` string, required

## Response `200`

OK

- CoreapiDocumentResponse[]
  - `attributes` CoreapiAttributeMapResponse
  - `data` object
  - `header` CoreapiResponseHeader
    - `author` string
    - `created_at` string
    - `document_id` string
    - `fingerprint` string
    - `job_id` string
    - `next_version_id` string
    - `nfts` CoreapiNFT[]
      - `collection_id` integer
      - `item_id` string
    - `previous_version_id` string
    - `read_access` string[]
    - `status` string
    - `version_id` string
    - `write_access` string[]
  - `scheme` 'generic' | 'entity'

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api.md) - [All operations](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/llms.txt) - [OpenAPI document](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/revisions/36808f8744e0?raw)
