---
title: "Decide Task Approval"
method: POST
path: "/v1/tasks/{task_id}/approvals/{request_id}"
tags: ["API v1", "Tasks", "Tasks CRUD"]
---

# Decide Task Approval

`POST /v1/tasks/{task_id}/approvals/{request_id}`

## Request

- Base URL: `https://api.xpander.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xpander.ai/v1/tasks/{task_id}/approvals/{request_id}`
- Auth: API key in header `x-api-key`

Approve or decline a tool call this task holds; the api key's owner must be one of its approvers

## Path parameters

- `task_id` string, required
- `request_id` string, required

## Request body

- TaskApprovalDecision: Approve or decline one of the task's held tool calls; the api key's owner is the person deciding.
  - `decision` 'approve' | 'decline', required
  - `reason` string, nullable
  - `content` object, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xpander/apis/xpander-ai-api-service.md) - [All operations](https://skmtc.dev/xpander/apis/xpander-ai-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/xpander/apis/xpander-ai-api-service/revisions/725c0066d5df?raw)
