---
title: "Respond to agent prompt"
method: POST
path: "/agent/sessions/{sessionId}/respond"
tags: ["agent"]
---

# Respond to agent prompt

`POST /agent/sessions/{sessionId}/respond`

Submits user's response to an agent prompt.

## Path parameters

- `sessionId` string, required

## Query parameters

- `remoteNode` string

## Request body

- AgentUserPromptResponse — User's response to an agent prompt
  - `promptId` string, required
  - `selectedOptionIds` string[]
  - `freeTextResponse` string
  - `cancelled` boolean

## Response `200`

Response accepted

- AgentStatusResponse — Simple status response
  - `status` string, required

## Other responses

- `400` — Invalid request
- `401` — Not authenticated
- `404` — Session not found
- `410` — Prompt expired or already answered
- `default` — Unexpected error

## Changes

- **2026-05-24** (v1) `8a2d5d3e9608` — 5 warning
  - added the new `rate_limited` enum value to the `code` response property for the response status `400`
  - added the new `rate_limited` enum value to the `code` response property for the response status `401`
  - added the new `rate_limited` enum value to the `code` response property for the response status `404`
  - added the new `rate_limited` enum value to the `code` response property for the response status `410`
  - …1 more
- **2026-04-30** (v1) `50e1d517afc1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/dagucloud/apis/dagu/changes/agent/sessions/:sessionId/respond/post.md)

---

[API](https://skmtc.dev/dagucloud/apis/dagu.md) · [All operations](https://skmtc.dev/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc.dev/dagucloud/apis/dagu/revisions/c5b8d495669e?raw)
