---
title: "Simulate policy evaluation"
url: https://hexelstudio.com/docs/api/ciam-iam/authz/simulate
---

# Simulate policy evaluation

**POST** `/authz/simulate`

## Headers

- `Authorization: string`

  `Bearer <token>`.

## Body parameters

- `body: object`

  Simulate Request

## Returns

`200` OK (`SimulateResponse`)

- `results: optional array of SimulateResult`

  - `action: optional string`

  - `allowed: optional boolean`

  - `reason: optional string`

## Errors

- `400` Bad Request

## Example

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

### Response (200)

```json
{
  "results": [
    {
      "action": "string",
      "allowed": true,
      "reason": "string"
    }
  ]
}
```

### Response (400)

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