In-game bug reporter
Send player bug reports, build logs, and screenshots from Unity, Godot, TypeScript, or curl to tasks.
Build an in-game bug reporter
Ship a built-in bug and balance reporter inside your game without embedding an API key or secret in the game binary. Player reports arrive in a public portal's Reports inbox with structured JSON state (build, seed, platform, logs) and up to 4 screenshots, and can file backlog tasks automatically.
- 01Studio Admin
Enable intake
Turn on Send feedback and Reports from a game on a public portal, pick a Destination project, and copy the public Intake ID.
- 02Game client
Reserve & upload
POST /uploads with installId and file size, then PUT up to 4 PNG/JPEG/WebP/GIF screenshots (10 MB max each).
- 03Game client
Submit report
POST /reports with installId, stable reportKey, category, player text, JSON payload (64 KB max), and screenshot IDs.
- 04Portal & Tasks
Triage or auto-file
Clean reports appear in Reports and optionally create backlog tasks. Links and duplicates are held for review.
- Spam or abuse from an install
- Mark a report as spam in the portal to block that installId and network address. Rotate the Intake ID anytime in portal Settings.
- Offline player or crash mid-send
- Persist the report and its generated reportKey on disk and retry in the background. Resending the same reportKey deduplicates cleanly.
Implement the reporter in your engine
- 1.
Turn on Reports from a game
In a public portal's Settings, enable Send feedback, then turn on Reports from a game and copy the Intake ID (starts with gi_).
- 2.
Map reports to a project
Open Edit form, pick a Destination project, and enable File game reports as tasks so verified reports land directly in your backlog.
- 3.
Generate one persistent installId per install
Create a random UUID on first launch and store it locally. Rate limits, screenshot reservations, and spam blocks tie to this ID.
- 4.
Attach build metadata and send with a reportKey
Attach a JSON payload (up to 64 KB) with build hash, platform, level/seed, and recent log lines, plus a unique reportKey per report for safe retries.
using System;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.Networking;
public sealed class ProjectFeedReporter
{
private readonly string _baseUrl;
private readonly string _installId;
public ProjectFeedReporter(string intakeId)
{
_baseUrl = $"https://projectfeed.app/portal/intake/{intakeId}";
_installId = PlayerPrefs.GetString("pf_install_id", "");
if (string.IsNullOrEmpty(_installId))
{
_installId = Guid.NewGuid().ToString();
PlayerPrefs.SetString("pf_install_id", _installId);
PlayerPrefs.Save();
}
}
// Generate reportKey once when the player creates the draft and persist it
// alongside screenshotReservationIds so retries reuse the exact same key.
public async Task<string> SendReportAsync(
string reportKey,
string category,
string title,
string description,
string buildVersion,
string[] screenshotReservationIds)
{
string body = JsonUtility.ToJson(new ReportBody
{
installId = _installId,
reportKey = reportKey,
category = category,
title = title,
description = description,
screenshots = screenshotReservationIds
});
using var req = new UnityWebRequest($"{_baseUrl}/reports", "POST");
req.uploadHandler = new UploadHandlerRaw(Encoding.UTF8.GetBytes(body));
req.downloadHandler = new DownloadHandlerBuffer();
req.SetRequestHeader("Content-Type", "application/json");
req.SetRequestHeader("User-Agent", $"MyGame/{buildVersion}");
var op = req.SendWebRequest();
while (!op.isDone) await Task.Yield();
if (req.result != UnityWebRequest.Result.Success)
throw new Exception($"Intake failed ({req.responseCode}): {req.downloadHandler.text}");
return req.downloadHandler.text;
}
[Serializable]
private struct ReportBody
{
public string installId;
public string reportKey;
public string category;
public string title;
public string description;
public string[] screenshots;
}
}extends Node
const INTAKE_URL := "https://projectfeed.app/portal/intake/gi_YOUR_INTAKE_ID"
# Persist report_key and uploaded reservation IDs per draft report so retries
# reuse the same key instead of creating duplicates or re-uploading screenshots.
func send_report(
install_id: String,
report_key: String,
title: String,
desc: String,
screenshots: Array = []
) -> Dictionary:
var payload := {
"installId": install_id,
"reportKey": report_key,
"category": "bug",
"title": title.substr(0, 140),
"description": desc,
"payload": { "build": ProjectSettings.get_setting("application/config/version"), "os": OS.get_name() },
"screenshots": screenshots
}
return await _post_json(INTAKE_URL + "/reports", payload)
func upload_screenshot(install_id: String, png_bytes: PackedByteArray) -> String:
var slot := await _post_json(INTAKE_URL + "/uploads", {
"installId": install_id,
"fileName": "capture.png",
"mimeType": "image/png",
"fileSize": png_bytes.size()
})
if slot.get("ok", false):
await _put_bytes("https://projectfeed.app" + slot["uploadUrl"], png_bytes, "image/png")
return slot["reservationId"]
return ""const intakeId = "gi_YOUR_INTAKE_ID";
const base = `https://projectfeed.app/portal/intake/${intakeId}`;
// 1. Reserve and upload an optional PNG screenshot
const slotRes = await fetch(`${base}/uploads`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
installId,
fileName: "screenshot.png",
mimeType: "image/png",
fileSize: pngBytes.byteLength,
}),
});
const slot = await slotRes.json();
await fetch(`https://projectfeed.app${slot.uploadUrl}`, {
method: "PUT",
headers: { "Content-Type": "image/png", "Content-Length": String(pngBytes.byteLength) },
body: pngBytes,
});
// 2. Submit the report with a stable reportKey for safe retries
const reportRes = await fetch(`${base}/reports`, {
method: "POST",
headers: { "Content-Type": "application/json", "User-Agent": "MyGame/0.4.1" },
body: JSON.stringify({
installId,
reportKey,
category: "bug",
title: "Fell through floor by east gate",
description: "Happens on run 3 after the cart stops.",
payload: { build: "0.4.1", seed: 1184 },
screenshots: [slot.reservationId],
}),
});# 1. Read intake status and category keys
curl https://projectfeed.app/portal/intake/gi_YOUR_INTAKE_ID
# 2. Send a test bug report (no API key required)
curl -X POST https://projectfeed.app/portal/intake/gi_YOUR_INTAKE_ID/reports \
-H "Content-Type: application/json" \
-H "User-Agent: MyGame/0.4.1" \
-d '{
"installId": "6f1d0c7e-2b8a-4d0f-9a51-3c2e7b9d4a10",
"reportKey": "c0b5e2a4-1d7f-4e8b-9c3a-5f6e7d8c9b0a-r1",
"category": "bug",
"title": "Fell through floor by east gate",
"description": "Reproduces after cart stop.",
"payload": { "build": "0.4.1", "seed": 1184 }
}'Verify intake limits before launch
Default limits allow 10 reports/hour per install, 30/hour per network address, and 1,000/day per portal, with 256 KB max JSON body. Query GET /portal/intake/<intakeId> when the player opens your feedback modal to fetch live category keys and check whether feedback is currently paused.
Fix in-game feedback problems
- The game receives 404 not_found
- Confirm the portal is still public, Reports from a game is on, and the shipped build uses the current Intake ID (rotating the ID invalidates older IDs immediately).
- Reports arrive in the inbox but do not create tasks
- Check that a Destination project is set in Edit form and File game reports as tasks is enabled. Reports containing URLs or duplicate text from the last 24 hours are held and never auto-create tasks.
- A screenshot upload returns 400 invalid
- Ensure the PUT uses the exact Content-Length and Content-Type returned by /uploads, matches the file magic bytes, finishes within 30 minutes, and comes from the same installId as /reports.