---
title: "Check a relation tuple"
method: GET
path: "/check"
tags: ["read"]
---

# Check a relation tuple

`GET /check`

To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).

## Query parameters

- `namespace` string
- `object` string
- `relation` string
- `subject_id` string
- `subject_set.namespace` string
- `subject_set.object` string
- `subject_set.relation` string
- `max-depth` integer

## Response `200`

getCheckResponse

- GetCheckResponse — The content of the allowed field is mirrored in the HTTP status code.
  - `allowed` boolean, required — whether the relation tuple is allowed

## Other responses

- `400` — genericError
- `403` — getCheckResponse
- `500` — genericError

## Changes

- **2022-02-09** `a88adf308b2b` — 4 info
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `403`
  - added the media type `application/json` for the response with the status `500`
- **2022-01-21** `110a4dab6e84` — 3 info
  - the `query` request parameter `namespace` became optional
  - the `query` request parameter `object` became optional
  - the `query` request parameter `relation` became optional
- **2021-12-13** `2f265b90b524` — 1 info
  - added the new optional `query` request parameter `max-depth`
- **2021-10-07** `e90046dbd055` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ory/apis/ory-keto-api/changes/check/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/a88adf308b2b/schema)
