---
title: Answer or skip a pending agent question
description: "Answers or skips a pending user_input.requested question set (WIBLO-159); the body carries exactly one of answers or skip: true."
api_method: POST
api_path: "/v1/agent-runs/{runId}/threads/{threadId}/user-inputs/{requestId}/respond"
canonical_url: https://wiblo.app/docs/developers/api/agent-threads/respond-agent-user-input
last_updated: 2026-07-28T17:31:44+02:00
md_url: https://wiblo.app/docs/developers/api/agent-threads/respond-agent-user-input.md
---

# Answer or skip a pending agent question

`POST /v1/agent-runs/{runId}/threads/{threadId}/user-inputs/{requestId}/respond`

Answers or skips a pending `user_input.requested` question set (WIBLO-159); the body carries exactly one of `answers` or `skip: true`. While the asking turn is still live the response resolves the provider's in-turn gate and the SAME turn continues (`resolved_hot`) — answered with the user's choices, or told the user declined on a skip. After the turn settled, an answer is re-driven as the next turn's tagged user message (`resolved_parked`, `turnId` names it; refused with `AGENT_RUN_ENDED` on an ended run), while a skip just settles the request durably with no turn (allowed even on an ended run). Settles the request via a `user_input.resolved` event — the first resolution wins, a second gets `AGENT_USER_INPUT_ALREADY_RESOLVED`. A concurrent turn admission race returns `TURN_ALREADY_ACTIVE`; retry when the active turn settles. Per-user rate-limited at 30/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `runId` | `string` | Yes |  |
| `threadId` | `string` | Yes |  |
| `requestId` | `string` | Yes |  |

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `answers` | `array<AgentUserInputAnswer>` | No |  |
| `skip` | `true` | No |  |

### The AgentUserInputAnswer object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `questionId` | `string` | Yes |  |
| `selected` | `array<string>` | No | Defaults to `[]`. |
| `otherText` | `string \| null` | No | Defaults to `null`. |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/agent-runs/{runId}/threads/{threadId}/user-inputs/{requestId}/respond \
  -X POST \
  -H "Authorization: Bearer $WIBLO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "answers": [],
  "skip": true
}'
```

**TypeScript**

```ts
import { createSdk, respondAgentUserInput } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await respondAgentUserInput({
  client: sdk,
  path: { runId: "...", threadId: "...", requestId: "..." },
  body: {
    "answers": [],
    "skip": true
  },
})
```

## Responses

**`200`** — The answer was delivered (hot gate or parked re-drive). Returns `RespondUserInputResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `requestId` | `string` | Yes |  |
| `status` | `"resolved_hot" \| "resolved_parked"` | Yes |  |
| `turnId` | `string \| null` | No | Defaults to `null`. |

**`400`** — Request body failed Zod validation, or the answers do not match the pending questions (`VALIDATION_FAILED`). Returns `ApiErrorEnvelope`.

**`401`** — No valid session cookie or `wbl_*` bearer was present. Returns `ApiErrorEnvelope`.

**`404`** — No visible thread with this id (`AGENT_THREAD_NOT_FOUND`) or no pending user-input request with this id (`AGENT_USER_INPUT_NOT_FOUND`). Returns `ApiErrorEnvelope`.

**`409`** — Already answered or cancelled (`AGENT_USER_INPUT_ALREADY_RESOLVED`), a turn admission race (`TURN_ALREADY_ACTIVE`) — retry when the active turn settles — or an answer on an ended run (`AGENT_RUN_ENDED`; ended runs never reprovision, only skip works). Returns `ApiErrorEnvelope`.

**`422`** — Path param failed validation (`INVALID_PARAMS`). Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.
