---
title: "List Relations"
method: GET
path: "/relations"
tags: ["Relations"]
---

# List Relations

`GET /relations`

List the relations.

## Query parameters

- `fields` string[]
- `limit` integer
- `offset` integer
- `meta` string
- `sort` string[]
- `search` string
- `page` integer

## 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)
