---
title: "Check relation"
url: https://hexelstudio.com/docs/api/ciam-iam/relations/check
---

# Check relation

**POST** `/relations/check`

Checks a relation within the caller's organization.

## Headers

- `Authorization: string`

  `Bearer <token>`.

## Body parameters

- `body: object`

  Check request

## Returns

`200` OK (`map[boolean]`)

## Errors

- `400` Bad Request

## Example

```bash
curl --request POST \
  --url 'https://api.hexelstudio.com/v1/relations/check' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### Response (200)

```json
{
  "key": true
}
```

### Response (400)

```json
{
  "key": "string"
}
```
