---
title: "Act on an approval"
method: POST
path: "/api/v1/approvals/{id}/action"
tags: ["Approvals"]
---

# Act on an approval

`POST /api/v1/approvals/{id}/action`

## Request

- Base URL: `http://dobby-ai.com`
- URL: `http://dobby-ai.com/api/v1/approvals/{id}/action`
- Auth: HTTP bearer

Approve or reject a pending approval request

## Path parameters

- `id` string, required

## Request body

- object
  - `action` 'approve' | 'reject' | 'request_changes', required: The action to take
  - `note` string: Optional note or feedback

## Response `200`

Action completed

- object
  - `success` boolean
  - `data` Approval
    - `id` string
    - `task_id` string
    - `agent_id` string
    - `agent_name` string
    - `action_type` string
    - `action_description` string
    - `status` 'pending' | 'approved' | 'rejected' | 'expired'
    - `priority` 'low' | 'medium' | 'high' | 'urgent'
    - `created_at` string, date-time
  - `message` string

## Other responses

- `401`: Unauthorized - Missing or invalid authentication
- `404`: Not Found - Resource does not exist

---

[API](https://skmtc.dev/dobby-ai/apis/dobby-platform-api.md) · [All operations](https://skmtc.dev/dobby-ai/apis/dobby-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dobby-ai/apis/dobby-platform-api/revisions/398634f0306f?raw)
