Bug Button and Feedback API

  • Desktop, mobile and web
  • All plans

What it does

Put a button in your own site or app. Your users send a bug, an idea or a question, with up to three annotated screenshots, and it becomes a ticket (or an idea in the Idea Radar) on your project's board. Your agents can then work on it, and the person who wrote gets emails as it moves forward, if they left an address. You can also send messages from a mobile app or a server with one HTTP request.

Video (1:08): Bug button, shown in the real app. An agent adds the button to a page, a visitor reports a bug from it, the report becomes a task on the board, and an agent starts on it while two others keep working.

Where to find it

  • The Bug button in the Backlog header (and the Radar header), next to Public backlog.
  • Share Backlog > Your app > Bug button and API keys.
  • Settings > Backlog > API keys, for the keys of a server.

How to use it

  1. Click Bug button. If the project has no board yet, choose who can see the messages (Only me is recommended) and click Continue.
  2. Install the button: Have an agent install it, or paste the HTML line, the React line, the mobile request or the curl command.
  3. Click Send a test: a real ticket marked as a test lands on your board, with no email and no trigger. Once a message arrived, the steps fold into The bug button works: Show the setup again brings them back.
  4. Open your page: the Feedback button is in a corner. The visitor picks Problem, Idea or Question, writes a message (screenshots and email are optional) and clicks Send.
  5. The message is a card in the backlog, marked Client feedback, with the visitor's words, the page and the browser inside. Click Start on the card to put an agent on it.

Have an agent install it closes the window and opens an agent of the project, which adds the line and says where it put it.

The HTML line:

<script src="https://agentsroom.dev/embed/widget.js" data-key="arp_..." async></script>

Options on the tag: data-label, data-color, data-position (bottom-right, bottom-left, top-right, top-left), data-theme (auto, light, dark), data-lang, data-types (bug,idea,question), data-app-version, data-user-email, data-user-name, data-user-id, data-hide-button. In JavaScript: AgentsRoom.open(), AgentsRoom.identify({ email, name, id }), AgentsRoom.setContext({ plan: "pro" }).

The button picks readable text on your color by itself: white text, with the color darkened a little when white would not read on it, and dark text only on a light color.

To restyle it, write your own CSS on the class .ar-fb-button (the open form is .ar-fb-panel). The widget puts its rules first in the page, so yours win without !important:

.ar-fb-button { background: #0b5fff; color: #fff; border-radius: 8px; font: 600 15px/1.2 Inter, sans-serif; }
.ar-fb-button:hover { background: #0047d6; }

The corner stays set by data-position. For a button entirely of your own, use data-hide-button and call AgentsRoom.open().

If your site sends a Content Security Policy, allow https://agentsroom.dev in script-src, connect-src and frame-src.

Send a message from code

curl -X POST https://agentsroom.dev/api/v1/feedback \
  -H "Authorization: Bearer arp_..." \
  -H "Content-Type: application/json" \
  -d '{"type":"bug","message":"The export button does nothing","email":"[email protected]"}'

Fields: type (bug, idea, question), message (required), and optionally title, email, name, category, pageUrl, appVersion, externalUserId, locale, images (up to 3), context. Send an Idempotency-Key header to retry without creating a second ticket.

The answer (201) carries id, kind (ticket or idea), status (open, in_progress, done, not_planned), trackingToken and followUrl (null on a private board). Read one message back with GET /api/v1/feedback/:id and the header X-Feedback-Token: <trackingToken>: its state and the team's replies. GET /api/v1/feedback lists the public messages, when the key may read and the board is not private. The full contract is in https://agentsroom.dev/api/openapi.json.

Attach a private diagnostic archive

The person who reported a message can attach a diagnostic file to it: logs, settings, a state dump, anything your app collects once they agree. Only your team can download it: it never shows on the public page and no key can read it back.

  • Format: one gzip-compressed JSON file (.json.gz, JSON in UTF-8 once decompressed). Remove secrets and personal data before you compress it: the file is kept as sent.
  • Consent: the request must carry the field consent=granted. Send it only after the reporter said yes.
  • Who can send it: only the reporter. Through the API, that is whoever holds the message's trackingToken. On the public page (or your own domain), that is the person signed in with the address the message was sent from.
  • Where it works: on a ticket, and on an idea still in the Idea Radar. When the idea becomes a ticket, its archives move to the ticket.

From your app, with the tracking token you got when the message was sent:

curl -X POST https://agentsroom.dev/api/v1/feedback/<id>/diagnostics \
  -H "Authorization: Bearer arp_..." \
  -H "X-Feedback-Token: <trackingToken>" \
  -F consent=granted \
  -F "[email protected];type=application/gzip"

The answer (201) carries the archive: id, fileName, sizeBytes, unpackedBytes, sha256, createdAt, expiresAt. With the same two headers, GET lists the archives sent through the API for this message (never their content), and DELETE ...?archiveId=<id> withdraws one. A secret key needs the right "send messages" to send or delete, "read messages" to list.

From the public page of a ticket or of an idea, for a reporter who is signed in (it also works on your own domain): POST /api/public-backlog/<slug>/tickets/<id>/diagnostics or .../ideas/<id>/diagnostics, same two form fields. GET lists their own archives, DELETE ?archiveId= removes one.

In AgentsRoom, open the ticket: the Client feedback block lists its archives (N diagnostic archives, marked Team only), with the size, the sender and the date. Download saves the file; the bin button, then Delete for good, deletes it. The idea panel of the Radar shows the archives sent while it was an idea, the same way. Nothing shows when there is no archive.

Through the API, your team downloads the archives while signed in to AgentsRoom, if they can open the ticket (you, and the members of your team board): GET /api/backlog/<ticketId>/diagnostics lists them with the sender's address and a downloadUrl, GET /api/ideas/<ideaId>/diagnostics does the same for an idea, and GET /api/backlog-diagnostics/<archiveId> returns the file. DELETE on that last address deletes it.

Two kinds of keys

  • Public key (arp_...): made to be seen, in a page or an app. It sends messages and reads back its own. Limit it to your sites with Accepted sites.
  • Secret key (arb_...): for a server or a script, shown once. You tick its rights: send messages, read messages, read or write the backlog, read or write the Radar. Never put one in a page (a browser gets a 403).

Let an agent handle the messages

Let an agent handle the messages opens a ready-made On arrival trigger on Feedback received. The run is restricted by default: the text was written by strangers, so the agent reads the event and the code, read-only, and has no shell and no AgentsRoom tools.

Settings

  • Accepted sites (per public key, default: any site).
  • Also let this key read the public tickets of the board (per public key, off by default).
  • Email when it is done (Share Backlog > Notifications, doneEmailMode): A few minutes after the ticket is done (new boards), When I click Notify (boards made before), or When I announce a version.

Agent tools (MCP)

settings_get / settings_set with scope: "project": feedbackKeys lists the keys (never a secret), { create: "<name>" } makes a public key, { revoke: "<id>" } revokes one. An agent cannot make a secret key nor widen rights or sites.

Providers

All providers, no difference: a message becomes a ticket, and any agent can work on it.

Mobile

In the backlog menu of the phone: API keys, the list and an emergency revoke. Diagnostic archives are not shown on the phone: they are downloaded and opened on a computer. Creating and installing a key is done on the desktop. The Feedback received trigger is editable on the phone.

Limits

  • Messages received per month, all keys of the account: Free 100, Plus 500, Pro unlimited. Tests do not count. Beyond that, 429 MONTHLY_LIMIT_REACHED until the first of the next month (UTC).
  • Anti-abuse, on every plan: 10 messages per hour per IP address and 300 per hour per public key, 2,000 per day per public key (429 RATE_LIMITED).
  • Up to 10 public keys per project.
  • Not available in Local mode.
  • Diagnostic archives: 10 MB per file, 50 MB once decompressed, 5 per ticket or idea, 10 per hour per reporter, 50 per day per board. Each one is deleted with its file 90 days after it was sent, or within a day after its ticket and idea are deleted. Refusals: 400 CONSENT_REQUIRED, 403 NOT_REPORTER, 409 ITEM_FULL, 411 LENGTH_REQUIRED, 413 TOO_LARGE or UNPACKED_TOO_LARGE, 415 NOT_GZIP or NOT_JSON, 429 RATE_LIMITED or BOARD_DAILY_LIMIT.

Common questions

  • Is there a video that shows it? Yes, from the Bug button to an agent working on the report: https://youtu.be/8M6MDkIG9sg
  • Does an agent start by itself when a report arrives? Not by default: the report waits on the board until you click Start on its card (or drop it in Development). The optional Feedback received trigger only writes a read-only diagnosis.
  • Can I change how the button looks? Yes: data-color sets its color, and your own CSS on .ar-fb-button changes anything else (colors, radius, font, shadow). Your rules win over the widget's.
  • In which language is the form? In the visitor's browser language. data-lang on the tag forces one.
  • Can I embed the feedback form on my own website? Yes, with the Bug button, including on a private board.
  • Is it safe to put the key in my page? Yes for a public key: it can only send messages and read back the sender's own. Limit it to your sites, and revoke it at any time.
  • Do my users need an account? No, and an email address is optional. Without one they receive no email.
  • Does the old data-backlog code still work? Yes, on public and link-only boards. It is still refused on a private board: use a key.
  • Can my users attach a diagnostic file that stays private? Yes, a .json.gz archive, with their consent: only your team can download it. See "Attach a private diagnostic archive" above.
  • Can a diagnostic archive be sent before the report becomes a ticket? Yes. While the report is an idea in the Idea Radar, the archive is attached to the idea, and it moves to the ticket when the idea is promoted.
  • Who can download a diagnostic archive? The people who can open the ticket in AgentsRoom: the board owner and the members of a team board. Not the visitors of the public page, not a key, not the reporter (they keep their own copy).
  • A message was refused with 403. Check that the board is enabled, that the site is in Accepted sites, and that a secret key is not used from a browser.