---
title: "Answer Question"
method: POST
path: "/api/agents/questions/{question_id}/answer"
tags: ["agents"]
---

# Answer Question

`POST /api/agents/questions/{question_id}/answer`

## Request

- Base URL: `https://api.advisorppc.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.advisorppc.com/api/agents/questions/{question_id}/answer`
- Auth: HTTP bearer

Store the tenant's answer, mark the question answered, and — when the
question blocked a ``needs_input`` run and no other question is still
pending — flip that run back to ``queued`` (same commit as the answer, so
a process death cannot strand it) and resume it in the background.

## Path parameters

- `question_id` integer, required

## Headers

- `X-Tenant-Id` integer, nullable

## Request body

- AppRoutersAgentsAnswerIn: Request body for answering a question (1..4000 chars, validated by Pydantic before the handler runs).
  - `answer` string, required

## Response `200`

Successful Response

- AnswerOut: Response after storing an answer — the question's new answered state.
  - `id` integer, required
  - `status` string, required
  - `answer` string, nullable, required
  - `answered_at` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/advisorppc/apis/advisorppc-api.md) · [All operations](https://skmtc.dev/advisorppc/apis/advisorppc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/advisorppc/apis/advisorppc-api/revisions/3441bd729e0c?raw)
