---
title: "Decide approval"
url: https://hexelstudio.com/docs/api/titan/administration/decide-approval
---

# Decide approval

**POST** `/titan/admin/approvals/{id}:decide`

While device-signed decisions is on, the person the approval's session acts for can't approve here (DEVICE_SIGNATURE_REQUIRED, 403): they decide with their phone on the user route. Other approvers decide as before, and the quorum counts a phone-signed vote only while that phone is active. With approver groups on for the deployment, a role's group_ids count: a person counts through a group only if they were in it when the approval was created and still are (checked with CIAM now); when CIAM can't be reached, a person eligible only through a group gets APPROVER_GROUPS_UNAVAILABLE (503, retry).

## Path parameters

- `id: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

- `Titan-Enforcement-Deployment: optional string`

  The enforcement deployment this call acts on (its td-... id). Required on the shared plane, where one Gateway serves many tenants and there is no default: a missing, unknown, repeated or other organization's deployment answers 403, like a failed authorization. Optional on a dedicated cell, which defaults to its one deployment.

## Body parameters

- `decision: string`

  One of: `"approve"`, `"deny"`

## Returns

`200` Successful response; exact status varies by operation. (`object`)

- `execution_id: optional string`

- `state: string`

  One of: `"pending"`, `"approved"`, `"denied"`

## Errors

- `400` Admin error
- `402` Admin error
- `403` Admin error
- `404` Admin error
- `409` Admin error
- `413` Admin error
- `415` Admin error
- `503` Admin error

## Example

```bash
curl --request POST \
  --url 'https://api.hexelstudio.com/v1/titan/admin/approvals/{id}:decide' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "decision": "approve"
}'
```

### Response (200)

```json
{
  "execution_id": "string",
  "state": "pending"
}
```

### Response (400)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (402)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (403)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (404)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (409)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (413)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (415)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (503)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
