---
title: "Retrieve a Relation"
method: GET
path: "/relations/{id}"
tags: ["Relations"]
---

# Retrieve a Relation

`GET /relations/{id}`

Retrieve a single relation by unique identifier.

## Path parameters

- `id` integer, required

## Query parameters

- `fields` string[]
- `meta` string

## Response `200`

Successful request

- object
  - `data` Relations
    - `id` integer — Unique identifier for the relation.
    - `many_collection` string — Collection that has the field that holds the foreign key.
    - `many_field` string — Foreign key. Field that holds the primary key of the related collection.
    - `one_collection` string — Collection on the _one_ side of the relationship.
    - `one_field` string, nullable — Alias column that serves as the _one_ side of the relationship.
    - `one_collection_field` string, nullable
    - `one_allowed_collections` string[], nullable
    - `junction_field` string, nullable — Field on the junction table that holds the many field of the related relation.
    - `sort_field` string, nullable
    - `one_deselect_action` string

## Other responses

- `401` — Error: Unauthorized request
- `404` — Error: Not found.

---

[API](https://skmtc.dev/utomic-media/apis/dynamic-api-specification.md) · [All operations](https://skmtc.dev/utomic-media/apis/dynamic-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/utomic-media/dynamic-api-specification/revisions/4a0ccd34700e/schema)
