# BugBeacon > Error reporting for AI agents and apps. Send one JSON POST per failure; BugBeacon groups reports into issues by fingerprint and answers with the issue id and whether the issue is new. ## Endpoint POST https://bug-beacon.net/api/v1/notify Content-Type: application/json X-Api-Key: (or "apiKey" in the body) Answers: - 202 {"success": true, "issueId": "<24 hex chars>", "eventId": "...", "isNewIssue": true|false} - 401 no API key; 400 unknown key or missing error.name; body limit 2 MB ## Body Required: error.name. Everything else is optional. - error.name (string): the kind of failure; names the issue, e.g. "ToolTimeoutError" - error.message (string): what happened; ids of 5+ digits, UUIDs and hex addresses are masked for grouping - error.stacktrace (string or array of {file, method, lineNumber, columnNumber, inProject}): V8, JVM and Apple symbol lines are parsed into frames - error.severity: "error" | "warning" | "info" (default "error") - error.unhandled (boolean, default true): send false for failures the agent caught - app: {platform: "web"|"android"|"ios"|"react-native"|"flutter"|"node"|"other", version, build, releaseStage} - fingerprint (string): your own grouping key, e.g. "tool:web_search:timeout"; replaces the default key - breadcrumbs: [{timestamp, category: "navigation"|"ui"|"network"|"console"|"user_action"|"error"|"system", message, level?, metadata?}] - metadata (object): any JSON, e.g. {runId, model, step, tool, args} - user: {id, email?, name?}; user.id drives the affected-user count - device: {os, osVersion, model, browser, locale, ...} - timestamp (ISO 8601) Default grouping key: SHA-256 of error.name + masked message + file:method:line of the top in-project frame. A report matching a resolved issue reopens it. ## Example curl -X POST https://bug-beacon.net/api/v1/notify \ -H "Content-Type: application/json" -H "X-Api-Key: $BUGBEACON_API_KEY" \ -d '{"error": {"name": "ToolTimeoutError", "message": "web_search took over 30 s", "unhandled": false}, "app": {"platform": "node", "version": "0.9.2", "releaseStage": "production"}, "fingerprint": "tool:web_search:timeout", "breadcrumbs": [{"timestamp": "2026-11-24T09:41:05Z", "category": "system", "message": "web_search start"}], "metadata": {"runId": "run_7Q2K", "step": 3}}' ## Rules for agents - Read the key from the BUGBEACON_API_KEY environment variable; never hard-code or log it. - Keep secrets and personal data out of reports. - There is no read API: issues are read by people in the dashboard at https://bug-beacon.net/app/ ## Docs - [Report agent failures](https://bug-beacon.net/guides/report-agent-failures/) - [How grouping works](https://bug-beacon.net/guides/error-grouping/) - [Coding agents](https://bug-beacon.net/guides/teach-your-coding-agent/) - [OpenAPI spec](https://bug-beacon.net/openapi.json)