Docs
How to put retro in your app, send feedback from anywhere, and manage it through the REST API or an AI agent. The full contract β every endpoint, object and error β lives in the repository.
Read the full contract (CONTRACT.md) βWidget
A zero-dependency web component served from this host. Add it with one script tag (it mounts itself) or place the element wherever you want. Works in Qwik, Astro, React, jQuery pages and Phaser games alike.
<script src="https://retro.3m4.net/widget.js" data-project-key="retro_pub_β¦" defer></script><script src="https://retro.3m4.net/widget.js" defer></script>
<retro-widget project-key="retro_pub_β¦" position="bottom-right" lang="auto" theme="auto"></retro-widget>Attributes
project-keyβ the project's public key (required).positionβbottom-right|bottom-leftlangβ auto (localStorage 3m4.lang β <html lang> β browser) or any of the 34 supported locales.themeβ auto (localStorage 3m4.theme β system), light or dark.accentβ hex colour; overrides the accent set in the project settings.hide-launcherβ no floating button; open the panel yourself with retro.open().
JavaScript API
window.retro exposes open({type?, message?}), close(), identify({id?, email?}), setMeta(object), setLang(), setTheme() and on(event, cb) with the events open, close, submitted and error.
// Headless: your own button, your own metadata
retro.identify({ id: user.id, email: user.email });
retro.setMeta({ plan: "pro", build: "1.4.0" });
retro.on("submitted", ({ number }) => toast(`Thanks! Ticket #${number}`));
document.querySelector("#report-bug").onclick = () => retro.open({ type: "bug" });Screenshots: on desktop the widget grabs one frame through the browser's screen-capture dialog; everywhere it also accepts a file or a pasted image. Images are downscaled to 1600 px and compressed before upload. The panel hides itself during capture.
Ingest API
POST /api/ingest/feedback with the project's public key in the X-Project-Key header (or a project_key field). JSON and form-encoded bodies are both accepted, CORS is open, and the response carries the item's number so you can show it to the user.
curl -X POST https://retro.3m4.net/api/ingest/feedback \
-H "X-Project-Key: retro_pub_β¦" -H "Content-Type: application/json" \
-d '{
"type": "bug",
"message": "The export button does nothing on Safari 17",
"email": "ana@example.com",
"page_url": "https://myapp.example.com/editor",
"app_version": "1.4.0",
"metadata": { "browser": "Safari 17" }
}'- type (required): bug, feedback or feature β must be enabled on the project.
- message (required, β€ 5000 chars); title optional, defaults to the first line.
- sentiment (positive / negative / neutral) for type=feedback; email, reporter_id, page_url, app_version, locale and a metadata object (β€ 8 KB) are optional.
- screenshot: a data URL (PNG/JPEG/WebP, β€ 1.5 MB). Dropped, not rejected, past the storage cap.
- website: honeypot β leave it empty. Bots that fill it get a fake 201 and nothing is stored.
<form method="post" action="https://retro.3m4.net/api/ingest/feedback">
<input type="hidden" name="project_key" value="retro_pub_β¦">
<input type="hidden" name="type" value="feedback">
<textarea name="message" required></textarea>
<input type="email" name="email" placeholder="Email (optional)">
<input type="text" name="website" style="display:none" tabindex="-1" autocomplete="off">
<button>Send</button>
</form>Base URL
https://retro.3m4.net/apiAuthentication
Three kinds of credentials, each for one job:
- Dashboard sessions: JWT bearer tokens issued by /auth/login. Hold every scope.
- Management API: API keys with a role (viewer / editor / admin). Header X-API-Key: retro_live_β¦ (or Authorization: Bearer).
- Ingest API and widget: project public keys. Header X-Project-Key: retro_pub_β¦. They identify one project and can only submit feedback.
Projects
A project is one app. It owns a public key, the board settings (slug, enabled, votes, submissions), the enabled feedback types and the widget options.
| Method | Path | Scope | Notes |
|---|---|---|---|
| GET | /projects?q= | projects:read | |
| POST | /projects | projects:write | {name, key?, description?, url?} β 201 Β· 402 limit_reached |
| GET | /projects/:id | projects:read | |
| PATCH | /projects/:id | projects:write | name, url, board_slug, board_enabled, types_enabled, β¦ |
| DELETE | /projects/:id | projects:delete | cascades |
| POST | /projects/:id/rotate-key | projects:write | old public key stops immediately |
| GET | /projects/:id/summary | feedback:read | counts by status / type / sentiment |
curl -X POST https://retro.3m4.net/api/projects \
-H "X-API-Key: retro_live_β¦" -H "Content-Type: application/json" \
-d '{"name": "My app", "url": "https://myapp.example.com"}'Feedback
Items have a per-project number, a type, an optional sentiment, a status (new β triaged β planned β in_progress β done | declined), a priority, tags, private notes and at most one screenshot. Promoting an item creates a roadmap item and links them.
| Method | Path | Scope | Notes |
|---|---|---|---|
| GET | /projects/:id/feedback?q=&type=&status=&sentiment=&priority=&tag=&page=&sort= | feedback:read | comma-separated lists for type/status |
| GET | /projects/:id/feedback/:item | feedback:read | :item = UUID or #number |
| PATCH | /projects/:id/feedback/:item | feedback:write | {status?, priority?, tags?, title?, type?, sentiment?, roadmap_item_id?} |
| POST | /projects/:id/feedback/:item/notes | feedback:write | {body} |
| POST | /projects/:id/feedback/:item/promote | feedback:write + board:write | β roadmap item, idempotent |
| GET | /projects/:id/feedback/:item/screenshot | feedback:read | image bytes |
| DELETE | /projects/:id/feedback/:item | feedback:delete |
curl -X PATCH https://retro.3m4.net/api/projects/$PROJECT/feedback/42 \
-H "X-API-Key: retro_live_β¦" -H "Content-Type: application/json" \
-d '{"status": "triaged", "priority": "high", "tags": ["export", "safari"]}'Roadmap & changelog
Roadmap items live in three columns and can be reordered; public ones appear on the board and collect votes. Changelog entries are Markdown with an optional version; drafts stay private until published.
| Method | Path | Scope | Notes |
|---|---|---|---|
| GET | /projects/:id/roadmap?status= | board:read | |
| POST | /projects/:id/roadmap | board:write | {title, description?, status?, public?} Β· 402 |
| PATCH | /projects/:id/roadmap/:rid | board:write | done β completed_at; linked feedback follows |
| PUT | /projects/:id/roadmap/reorder | board:write | {status, ids} |
| DELETE | /projects/:id/roadmap/:rid | board:delete | unlinks feedback |
| GET | /projects/:id/changelog?include_drafts=true | board:read | |
| POST | /projects/:id/changelog | board:write | {title, body (markdown), version?, publish?} |
| PATCH | /projects/:id/changelog/:cid | board:write | published: true|false |
| DELETE | /projects/:id/changelog/:cid | board:delete |
Public board endpoints
No key needed. They answer only while the project's board is enabled. Votes are de-duplicated per voter_id (a UUID the browser keeps) and per hashed IP per day.
| Method | Path | Scope | Notes |
|---|---|---|---|
| GET | /boards/:slug | β | roadmap (public items) + latest changelog |
| GET | /boards/:slug/changelog?page= | β | |
| POST | /boards/:slug/items/:rid/vote | β | {voter_id} Β· idempotent |
| DELETE | /boards/:slug/items/:rid/vote | β | {voter_id} |
| POST | /boards/:slug/feedback | β | same body as ingest, type defaults to feature |
Webhooks
Get a signed POST on your server when feedback arrives or changes status, when a roadmap item moves, or when a changelog entry is published. Add endpoints in the project settings; each one gets a secret shown once.
| Method | Path | Scope | Notes |
|---|---|---|---|
| GET | /projects/:id/webhooks | projects:read | |
| POST | /projects/:id/webhooks | projects:write | {url (https), events?, description?} β secret shown once Β· 402 webhooks |
| PATCH | /projects/:id/webhooks/:wid | projects:write | {url?, events?, description?, enabled?} |
| POST | /projects/:id/webhooks/:wid/test | projects:write | queues a ping |
| GET | /projects/:id/webhooks/:wid/deliveries?limit= | projects:read | |
| DELETE | /projects/:id/webhooks/:wid | projects:delete |
Duplicates & saved views
Every new item is compared with the project's recent items (trigram similarity); likely duplicates show up in the detail drawer and can be merged in one click (the merged item becomes a declined duplicate). Saved views keep your favourite inbox filters one click away.
| Method | Path | Scope | Notes |
|---|---|---|---|
| GET | /projects/:id/feedback?duplicates=hide | feedback:read | hide merged items |
| POST | /projects/:id/feedback/:item/merge | feedback:write | {into} β item becomes a declined duplicate |
| POST | /projects/:id/feedback/:item/reply | feedback:write | {body} β emails the reporter Β· 400 no_reporter_email Β· 503 mail_disabled |
| GET | /projects/:id/views | feedback:read | |
| POST | /projects/:id/views | feedback:write | {name, filters} Β· max 20 |
| PATCH | /projects/:id/views/:vid | feedback:write | |
| DELETE | /projects/:id/views/:vid | feedback:write | |
| GET | /projects/:id/export?format=json|csv | feedback:read + board:read | retro.project.v1 or CSV; no screenshots |
| GET | /account/notifications | usage:read | |
| PATCH | /account/notifications | projects:write | {email_new_feedback?, email_digest_minutes: 0|15|60|1440} |
Webhooks Β· payload
Events: feedback.created, feedback.status_changed, roadmap.status_changed, changelog.published, ping.
{
"id": "6f1cβ¦", // delivery id (X-Retro-Delivery)
"event": "feedback.created",
"created_at": "2026-10-16T09:12:00Z",
"project": { "id": "β¦", "key": "my-app", "name": "My app" },
"data": { "number": 42, "type": "bug", "title": "Export does nothing", "status": "new", "previous_status": null, β¦ }
}Headers: X-Retro-Event, X-Retro-Delivery (unique id, use it to de-duplicate) and X-Retro-Signature (sha256=<hex HMAC-SHA256 of the raw body with your secret>).
A 2xx within 10 s counts as delivered; anything else is retried with exponential backoff (1 min β 2 h, 8 attempts). The deliveries log in the project settings shows every attempt.
Verify the signature
import { createHmac, timingSafeEqual } from "node:crypto";
app.post("/hooks/retro", express.raw({ type: "*/*" }), (req, res) => {
const expected = "sha256=" + createHmac("sha256", process.env.RETRO_WEBHOOK_SECRET).update(req.body).digest("hex");
const given = req.get("X-Retro-Signature") ?? "";
if (given.length !== expected.length || !timingSafeEqual(Buffer.from(given), Buffer.from(expected))) return res.sendStatus(401);
const event = JSON.parse(req.body); // use event.id to de-duplicate retries
res.sendStatus(204);
});import hmac, hashlib
from flask import request, abort
@app.post("/hooks/retro")
def retro_hook():
expected = "sha256=" + hmac.new(SECRET.encode(), request.get_data(), hashlib.sha256).hexdigest()
if not hmac.compare_digest(request.headers.get("X-Retro-Signature", ""), expected):
abort(401)
event = request.get_json() # event["id"] de-duplicates retries
return "", 204Export
One call returns everything in a project as retro.project.v1 JSON (feedback with notes, roadmap, changelog) or a CSV of the feedback items. Screenshots are never included. The same buttons live in the project settings.
curl -H "X-API-Key: retro_live_β¦" "https://retro.3m4.net/api/projects/$PROJECT/export?format=csv" -o feedback.csvSpam protection (Cloudflare Turnstile)
The honeypot field and per-IP rate limits are always on. For public-facing apps you can add a Cloudflare Turnstile challenge: set the site key and secret in the project settings and the widget and board render it automatically. API clients must send turnstile_token; invalid tokens get 400 captcha_failed, and if Cloudflare is unreachable the item is accepted and tagged unverified.
Notifications & replies
The account owner gets an email per project when new feedback arrives, instantly or grouped every 15 minutes, hour or day (Dashboard β API keys β Notifications). From the inbox you can reply to any reporter who left an email: the mail goes out from retro with your address as Reply-To. Both need outbound mail configured on the server (MAIL_ENABLED).
Errors & limits
Errors are JSON: { "error": { "code", "message" } }. Creating past a plan limit answers 402 limit_reached with error.which = projects | api_keys | roadmap_items. Feedback over the monthly budget is still accepted.
Privacy: retro never stores raw IP addresses β only a salted daily hash used for rate limits and vote de-duplication. User agents are truncated and metadata is capped at 8 KB.
MCP (AI agents)
The MCP server exposes the management API as tools, filtered by the role of the key you connect with. Destructive tools ask for confirmation. A triage_inbox prompt walks a model through new items.
claude mcp add retro --scope user --env RETRO_API_KEY=retro_live_β¦ -- npx -y retro-feedback-mcpclaude mcp add --transport http retro https://retro.3m4.net/mcp --header "Authorization: Bearer retro_live_β¦"Tools: list_projects, get_project, create_project, update_project, rotate_project_key, delete_project, list_feedback, get_feedback, feedback_summary, list_tags, update_feedback, add_note, promote_to_roadmap, delete_feedback, list_roadmap, create_roadmap_item, update_roadmap_item, delete_roadmap_item, list_changelog, create_changelog_entry, update_changelog_entry, delete_changelog_entry, get_usage, get_audit_log.