Skip to content

Dashboard

Tickets

How reports become tickets in Linear or your own webhook, and how to verify one.

How a ticket is made

  1. The user clicks Done (or the session ends another way).
  2. Showbug writes a title, summary, expected and actual behaviour, steps to reproduce, a severity, an area and a frequency from the transcript and diagnostics.
  3. The ticket is created in your tracker with that text, the page, the identified user, the browser, a transcript excerpt, console errors, failed requests, the last clicks and a link to the session.
  4. The ticket link appears on the session’s page in the dashboard.

The steps are derived from the conversation and the page activity. Check them against the recording before acting on them.

Connecting a tracker

Today one tracker is connected for the whole Showbug workspace, by the Showbug team. Every project’s reports go to it. To connect yours, send your Showbug contact either your Linear team, or your webhook URL.

Per-project connections, set up by your admins in the dashboard, areComing soon.

No tracker yet?

Reports are still recorded and summarised. Their ticket status is skipped and you work from the dashboard.

Linear

  • Each report becomes an issue in one Linear team, with the title and the full Markdown description.
  • Severity sets the priority: critical → Urgent, high → High, medium → Medium, low → Low.
  • Optional labels can be added to every issue.

Webhooks

Showbug sends a POST with a JSON body to your HTTPS endpoint for each report, with these headers:

HeaderValue
Content-Typeapplication/json
X-Feedback-TimestampUnix time in seconds when the request was signed.
X-Feedback-Signaturesha256= + hex HMAC-SHA256 of {timestamp}.{raw body} with your shared secret.
X-Feedback-Idempotency-KeyThe same for every delivery of one report. Use it to ignore duplicates.

Answer with any 2xx status. To show a link to your ticket in the dashboard, answer with JSON such as {"id": "BUG-42", "url": "https://tracker.example.com/BUG-42"}.

Webhook payload

{
  "event": "ticket.requested",
  "version": 1,
  "ticket": {
    "title": "Save button does nothing on the billing page",
    "summary": "The user changed the billing email and clicked Save…",
    "expected": "A confirmation that the email was saved",
    "actual": "Nothing happens; a 500 appears in the network log",
    "repro_steps": ["Open /settings/billing", "Change the email", "Click Save"],
    "severity": "high",
    "area": "billing",
    "frequency": "always",
    "confidence": "medium",
    "missing_info": [],
    "labels": [],
    "page_url": "https://app.example.com/settings/billing",
    "recording_url": "https://showbugai.com/dashboard/org_…/sessions/ses_…",
    "body_markdown": "## Summary\n…",
    "source": "llm",
    "project_id": "prj_…",
    "session_id": "ses_…",
    "idempotency_key": "prj_…:ses_…"
  }
}
FieldValues
severitylow, medium, high, critical
frequencyalways, sometimes, once, unknown
confidencelow, medium, high: could a developer act on it without asking the user?
sourcellm, or fallback when the summary was built without the language model
body_markdownThe full ticket text, ready to paste into any tracker.

Keys are sorted alphabetically in the real body. New fields may be added; ignore ones you do not know.

Verifying the signature

Verify every request before trusting it. Use the raw request body, reject timestamps older than five minutes, and compare in constant time.

Node.js

import crypto from "node:crypto";

// rawBody: the exact bytes received (not re-serialised JSON).
export function verifyShowbug(rawBody, headers, secret) {
  const timestamp = headers["x-feedback-timestamp"];
  const signature = headers["x-feedback-signature"] ?? "";
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;

  const expected =
    "sha256=" +
    crypto.createHmac("sha256", secret).update(`${timestamp}.`).update(rawBody).digest("hex");
  const a = Buffer.from(signature);
  const b = Buffer.from(expected);
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

Python

import hashlib, hmac, time

def verify_showbug(raw_body: bytes, headers, secret: str) -> bool:
    timestamp = headers.get("X-Feedback-Timestamp", "")
    signature = headers.get("X-Feedback-Signature", "")
    if not timestamp.isdigit() or abs(time.time() - int(timestamp)) > 300:
        return False
    mac = hmac.new(secret.encode(), timestamp.encode() + b"." + raw_body, hashlib.sha256)
    return hmac.compare_digest(signature, "sha256=" + mac.hexdigest())

Retries and failures

  • Each delivery is tried up to 3 times, with backoff, on network errors, timeouts, 408, 425, 429 and 5xx. A Retry-After header is respected. Each attempt is signed again with a fresh timestamp.
  • Other 4xx answers fail at once.
  • A failed ticket shows its reason on the session page. Admins and owners can retry it there; the same idempotency key is used.