# Answer a task interaction

`POST /v1/tasks/{taskId}/interactions/{interactionId}`

Required OAuth scopes: `tasks:write`

## Parameters

- `Idempotency-Key` (header, string, required): Required unique key. For 24 hours, retries with the same key and body replay the original response.
- `interactionId` (path, string, required)
- `taskId` (path, string (uuid), required)

## Request body

- `response` (string | object, required)
  - `answers` (object[], required)
    - `details` (string)
    - `question` (string, required)
    - `selected` (string[], required)

```json
{
  "response": "Approved. Use M5 fasteners."
}
```

## Responses

- `202`
  - `resolved` (boolean, required)
  - `task` (object, required)
    - `id` (string, required)
    - `title` (string, required)
    - `status` ("idle" | "queued" | "running" | "awaiting_input" | "completed" | "cancelled" | "failed", required)
    - `executionMode` ("adam" | "external")
    - `projectId` (string | null, required)
    - `model` (object | null, required)
    - `pendingInteraction` (object | null, required)
    - `createdAt` (string, required)
    - `updatedAt` (string, required)
- `400`: Invalid request
- `401`: Missing or invalid Bearer credential
- `402`: Payment or subscription required
- `403`: Credential is missing a required scope
- `404`: Resource not found
- `409`: Request conflict
- `429`: Rate limit exceeded
- `500`: Internal API error
