---
title: "Get relationship"
method: GET
path: "/v1/workspaces/{workspaceId}/relationship-rules/{relationshipRuleId}"
---

# Get relationship

`GET /v1/workspaces/{workspaceId}/relationship-rules/{relationshipRuleId}`

## Path parameters

- `workspaceId` string, required
- `relationshipRuleId` string, required

## Response `200`

OK response

- RelationshipRule
  - `cel` string, required
  - `description` string
  - `id` string, required
  - `metadata` object, required
  - `name` string, required
  - `reference` string, required
  - `workspaceId` string, required

## Other responses

- `400` — Invalid request
- `404` — Resource not found

## Changes

> 50 revisions in range; 1 could not be searched.

- **2026-03-10** `4507a7cb420a` — 4 breaking, 2 warning, 1 info
  - removed the required property `fromType` from the response with the `200` status
  - removed the required property `matcher` from the response with the `200` status
  - removed the required property `relationshipType` from the response with the `200` status
  - removed the required property `toType` from the response with the `200` status
  - …3 more
- **2026-02-19** `e61389fc98ac` — 1 breaking, 6 info
  - removed the required property `cel` from the response with the `200` status
  - added the optional property `fromSelector` to the response with the `200` status
  - added the optional property `toSelector` to the response with the `200` status
  - added the required property `fromType` to the response with the `200` status
  - …3 more

[Change history](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api/changes/v1/workspaces/:workspaceId/relationship-rules/:relationshipRuleId/get.md)

---

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