---
title: "Respond To Human Request"
method: POST
path: "/v2/runs/{run_id}/human-requests/{request_id}/respond"
tags: ["Runs"]
---

# Respond To Human Request

`POST /v2/runs/{run_id}/human-requests/{request_id}/respond`

## Request

- Base URL: `https://api.duvo.ai`
- URL: `https://api.duvo.ai/v2/runs/{run_id}/human-requests/{request_id}/respond`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/duvo/apis/duvo-public-api/docs/v2/runs/:run_id/human-requests/:request_id/respond/post.ts> (a function with typed inputs; its response is checked against the schema)

Respond to a human-in-the-loop request. Use 'approved' (true/false) for approval-type requests, or 'answers' ({question: answer}) for question-type requests. Only works when the run is in 'waiting' status.

## Path parameters

- `run_id` string, uuid, required
- `request_id` string, uuid, required

## Request body

- object
  - `answers` object: For question-type requests: a map of question text to answer. Multi-select answers should be comma-separated.
  - `approved` boolean: For approval-type requests: true to approve, false to deny

## Response `200`

Default Response

- object
  - `human_request` object, required
    - `id` string, uuid, required: Unique human-request identifier
    - `run_id` string, uuid, required: ID of the run this request belongs to
    - `title` string, required: Short title for the request
    - `description` string, nullable, required: Longer description of the request
    - `response` string, nullable, required: The response provided by the user
    - `responded_at` string, nullable, required: ISO 8601 timestamp when the user responded
    - `created_at` string, required: ISO 8601 timestamp when the request was created

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/duvo/apis/duvo-public-api.md) - [All operations](https://skmtc.dev/duvo/apis/duvo-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duvo/apis/duvo-public-api/revisions/dafcf3d868a9?raw)
