---
title: "Send element comments on a page to the lead as a feedback task"
method: POST
path: "/api/pages/{id}/feedback"
tags: ["Pages"]
---

# Send element comments on a page to the lead as a feedback task

`POST /api/pages/{id}/feedback`

## Request

- Base URL: `http://localhost:3013`
- URL: `http://localhost:3013/api/pages/{id}/feedback`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `pageUrl` string
  - `note` string
  - `comments` object[], required
    - `selector` string, required
    - `comment` string, required
    - `tagName` string
    - `text` string
    - `html` string
  - `contextKey` string
  - `requestedByUserId` string

## Response `201`

Feedback task created

- object
  - `taskId` string, required
  - `status` string, required
  - `agentId` string, nullable, required
  - `task_url` string, required

## Other responses

- `400`: Invalid body, or a context key for another page
- `403`: Page session is scoped to a different page
- `404`: Page not found
- `413`: Payload too large

## Changes

- **2026-10-10** `0cdc75cf1697`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/pages/:id/feedback/post.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) - [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/7e4c7198192a?raw)
