---
title: "Retrieve relation"
method: GET
path: "/api/v1/relations/{relationID}"
tags: ["Relation"]
---

# Retrieve relation

`GET /api/v1/relations/{relationID}`

Get a relation object.

## Path parameters

- `relationID` integer, required

## Response `200`

OK

- Relation
  - `id` integer, required — ID of the relation
  - `type` 'edit' | 'attachment' | 'duplicate', required — Type of relationship. Possible values are: `edit`, `attachment`, `duplicate`. - `edit` relation is created after editing annotation in user interface (rotation or split of the document) - `attachment` is a relationship representing the state that one or more documents are attachments to another document - `duplicate` relation is created after importing the same document that already exists in Rossum for current organization
  - `key` string, nullable, required — Key used to distinguish several instances of the same type. - For `attachment` relations, this is null - For `duplicate` relations, this is set to a hash of document content - For `edit` relations, this is typically null
  - `parent` string, uri, nullable, required — URL of the parent annotation in case of 1-M relationship
  - `annotations` string[], required — List of related annotations
  - `url` string, uri, required — URL of the relation

## Other responses

- `304` — Object was not modified (e.g. ETag matches `If-None-Match` header).
- `400` — Invalid input data.
- `401` — The username/password is invalid or token is invalid (e.g. expired).
- `403` — Insufficient permission, missing authentication, invalid CSRF token and similar issue.
- `404` — The specified resource was not found.
- `409` — Conflict
- `429` — Request rate is too high, wait before sending more requests. See [Rate Limiting](/guides/overview#rate-limiting) for more details.
- `500` — Server failure while processing the request.
- `502` — Invalid response from the upstream server.
- `503` — We're temporarily offline for maintenance. Please try again later.
- `504` — Upstream server could not complete the request in time.

---

[API](https://skmtc.dev/rossum/apis/rossum-api.md) · [All operations](https://skmtc.dev/rossum/apis/rossum-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rossum/rossum-api/revisions/f1b5a910991d/schema)
