---
title: "Expand a Relation Tuple"
method: GET
path: "/relation-tuples/expand"
tags: ["read"]
---

# Expand a Relation Tuple

`GET /relation-tuples/expand`

Use this endpoint to expand a relation tuple.

## Query parameters

- `namespace` string, required
- `object` string, required
- `relation` string, required
- `max-depth` integer

## Response `200`

expandTree

- ExpandTree
  - `children` ExpandTree[] — The children of the node, possibly none.
  - `subject_id` string — The subject ID the node represents. Either this field, or SubjectSet are set.
  - `subject_set` SubjectSet
    - `namespace` string, required — Namespace of the Subject Set
    - `object` string, required — Object of the Subject Set
    - `relation` string, required — Relation of the Subject Set
  - `type` 'union' | 'exclusion' | 'intersection' | 'leaf' | 'unspecified', required — The type of the node. union Union exclusion Exclusion intersection Intersection leaf Leaf unspecified Unspecified

## Other responses

- `400` — genericError
- `404` — genericError
- `500` — genericError

## Changes

- **2022-07-27** `514d0665dbdb` — 1 warning
  - added the new `unspecified` enum value to the `type` response property for the response status `200`
- **2022-03-29** `770289c14605` — 1 info
  - endpoint added
- **2021-10-07** `e90046dbd055` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ory/apis/ory-keto-api/changes/relation-tuples/expand/get.md)

---

[API](https://skmtc.dev/ory/apis/ory-keto-api.md) · [All operations](https://skmtc.dev/ory/apis/ory-keto-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ory/ory-keto-api/revisions/514d0665dbdb/schema)
