---
title: "List relationships"
method: GET
path: "/storage/relationships/list"
tags: ["Storage - Relationships"]
---

# List relationships

`GET /storage/relationships/list`

List all relationships in the workspace

## Query parameters

- `datasetUuid` string, uuid — Filter relationships by dataset identifier.
- `modelUuid` string, uuid — Filter relationships by model identifier.

## Response `200`

Successful response

- object
  - `relationships` object[], required — List of relationships.
    - `uuid` string, required
    - `workspaceUuid` string, required
    - `fromDatasetUuid` string, required
    - `fromModelUuid` string, required
    - `fromColumnSlug` string, required
    - `fromPropertySlug` string, nullable, required
    - `toDatasetUuid` string, required
    - `toModelUuid` string, required
    - `toColumnSlug` string, required
    - `toPropertySlug` string, nullable, required
    - `fromSelectedColumnSlugs` string[], nullable, required
    - `toSelectedColumnSlugs` string[], nullable, required
    - `relation` 'oneToMany' | 'oneToOne' | 'manyToOne', required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/getcargo/apis/cargo-api.md) · [All operations](https://skmtc.net/getcargo/apis/cargo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getcargo/cargo-api/versions/1d5a19e01d83/schema)
