---
title: "Decide a Titan approval the task waits on"
url: https://hexelstudio.com/docs/api/harness/tasks/decide-a-titan-approval-the-task-waits-on
---

# Decide a Titan approval the task waits on

**POST** `/harness/tasks/{id}/approvals/{approval}`

Forwarded to Titan's user approval route with your Titan user-route token
(`X-Titan-User-Token`). Titan's refusals are `titan_refused` with `details.titan_code`;
`502 titan_unavailable`, `503 approvals_unavailable`.


## Path parameters

- `approval: string`

  Titan's approval id.

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for your organization.

- `X-Workspace-Id: string`

  The workspace the request acts in (`ws_...`). It never grants access by itself.

- `X-Environment-Id: string`

  The environment the request acts in (`env_...`). It never grants access by itself.

## Body parameters

- `decision: string`

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

- `reason: optional string`

  Accepted; not forwarded.

- `proof: optional any`

  A phone's decision JWS.

## Returns

`200` Titan took the decision. (`object`)

- `decided: boolean`

- `titan: optional object`

  Titan's answer.

## Errors

- `default` 

## Example

```bash
curl --request POST \
  --url 'https://api.hexelstudio.com/v1/harness/tasks/{id}/approvals/{approval}' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'X-Workspace-Id: X_WORKSPACE_ID' \
  --header 'X-Environment-Id: X_ENVIRONMENT_ID' \
  --header 'Content-Type: application/json' \
  --data '{
  "decision": "approve",
  "reason": "string",
  "proof": "string"
}'
```

### Response (200)

```json
{
  "decided": true,
  "titan": {}
}
```
