---
title: "Answer agent question"
method: POST
path: "/v1/replica/{id}/chats/{chat_id}/tool-input"
tags: ["Chats"]
---

# Answer agent question

`POST /v1/replica/{id}/chats/{chat_id}/tool-input`

## Request

- Base URL: `https://api.replicas.dev`
- URL: `https://api.replicas.dev/v1/replica/{id}/chats/{chat_id}/tool-input`
- Auth: HTTP bearer

Answers a question or approval the agent is waiting on. Find pending requests in [Read history](/api-reference/replica/read-history): a tool call with `inputRequest.status` of `pending` carries the `request_id` and its option IDs.

## Path parameters

- `id` string, uuid, required
- `chat_id` string, required

## Headers

- `X-Replicas-Api-Version` '2026-10-07'

## Request body

- object
  - `request_id` string, required
  - `selection_id` string, required: ID of the chosen option

## Response `200`

Whether the request was still pending

- object
  - `resolved` boolean, required

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `404`: Resource not found
- `409`: Conflict - Resource already exists or operation conflicts with current state
- `500`: Internal server error

---

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