Skip to main content

Installation

Usage

This adds a POST /feedback endpoint to your app.

What it does

feedbackRouter returns an Express router that handles POST /feedback. When an agent calls it, the report is submitted to your writeback dashboard. The endpoint accepts a JSON body: Example request:
Response:

Options

Document it for agents

For agents to know your feedback endpoint exists, document it in your OpenAPI spec or API description:

Getting an ingest key

Sign up at dashboard.writeback.dev and create a project. Your ingest key is write-only — safe to include in environment variables.