---
title: "List relationship definitions"
method: GET
path: "/v1/relationships"
tags: ["Relationships"]
---

# List relationship definitions

`GET /v1/relationships`

## Request

- Base URL: `https://app.nex.ai/api/developers`
- URL: `https://app.nex.ai/api/developers/v1/relationships`
- Auth: API key in header `Authorization`

Retrieves all relationship definitions in the workspace

## Response `200`

List of relationship definitions

- DeveloperListRelationshipDefinitionsResponse
  - `data` DeveloperRelationshipDefinitionResponse[]
    - `id` string
    - `type` 'one_to_one' | 'one_to_many' | 'many_to_many'
    - `entity_definition_1_id` string
    - `entity_definition_2_id` string
    - `entity_1_to_2_predicate` string
    - `entity_2_to_1_predicate` string
    - `created_at` string, date-time

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `500`: Internal server error

## Changes

- **2026-02-17** `b05d8cb8cf43`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nex/apis/nex-developer-api/changes/v1/relationships/get.md)

---

[API](https://skmtc.dev/nex/apis/nex-developer-api.md) - [All operations](https://skmtc.dev/nex/apis/nex-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nex/apis/nex-developer-api/revisions/51003af13108?raw)
