Feedback API
The feedback API collects two kinds of user feedback plus client error reports.
- App feedback at
/admin/v1/app-feedback— bug reports, feature requests, other comments, and Contact Support requests submitted via the in-app feedback form (/account/feedback/new). A Contact Support request additionally sends an email to Myra support (see Contact Support below). - Session feedback at
/admin/v1/feedback— per-conversation ratings submitted at the end of a chat session. - Client errors at
/admin/v1/client-errors— uncaught exceptions and failed fetch reports captured by the SPA.
All endpoints require an authenticated admin session, with one exception: POST /admin/v1/client-errors is public and unauthenticated, so the SPA can report crashes before an admin session exists.
Storage faults. A failed database read on any of these endpoints (the app-feedback list, metrics and images, the content-report list, the lookup before a content-report update, the caller's own feedback list) answers 503 { "error": "temporarily unavailable; retry later" } (nothing written; retry). A failed write (app-feedback create / update / delete, client-error reports, content reports, the feedback settings) answers the sanitised 500 { "error": "internal error", "request_id": "…" } unless nothing was written. Neither carries the database's or the encryption layer's own error text (the cause is logged under the request_id). See Storage faults.
App feedback — listing entries
GET /admin/v1/app-feedback
Required permission: FEEDBACK_TRIAGE (platform admin). A tenant admin cannot read the inbox — submitting feedback and triaging it are different privileges.
Optional query parameters:
type— one ofbug,feature,other,support. Absent or empty → no type filter. Any other value — an unknown string, or a repeatedtypeparameter — is rejected400 {"code": "invalid_type"}(it used to be bound as-is and silently answer an empty list).status— narrow the inbox to ONE triage lifecycle status: one ofreceived,triaged,responded,escalated,resolved,auto_resolved,needs_human,diagnostic. Absent or empty → the default inbox. Any other value — an unknown string, or a repeated or valuelessstatusparameter — is rejected400 {"code": "invalid_status"}(it used to fall back silently to the full inbox). Without astatus, the inbox lists every entry except automatic app diagnostics — those are listed only withstatus=diagnostic. The CS-automation surface passesstatus=needs_humanto show only the human queue — items the automation could not safely auto-resolve or auto-ticket. Praise that was auto-resolved and actionable bug/feature that was auto-ticketed drop out, so the manual pile shrinks to only what a human must see.roadmap—pendinglists only feature requests owed a roadmap reply (see Roadmap reply below), oldest first. Absent or empty → no roadmap filter. Any other value — an unknown string, or a repeated or valuelessroadmapparameter — is rejected400 {"code": "invalid_roadmap"}(it used to be ignored and silently answer the full inbox).worklist—overduelists only entries that are unanswered and past their reply deadline (feature requests: 14 days, held ones included; all other types: 2 days), oldest first. Absent or empty → no filter. Any other value — an unknown string, different case, or a repeated or valuelessworklistparameter — is rejected400 {"code": "invalid_worklist"}.limit— maximum entries to return. Default50; a value above200is silently capped at200. Anything but a plain integer ≥ 1 (0,-1,1e2, empty, repeated) is400 {"code": "invalid_limit"}.offset— number of entries to skip, for paging. Default0. Anything but a plain integer ≥ 0 is400 {"code": "invalid_offset"}.
Returns an array of entries. Each entry contains:
| Field | Type | Description |
|---|---|---|
id |
string | Entry identifier. |
user_id |
string | null | Submitting user. |
user_email |
string | null | Email of the submitting user. |
type |
bug | feature | other | support |
Category. support is a Contact Support request. |
summary |
string | Short summary. |
description |
string | null | Long description. |
url |
string | null | URL of the page from which the feedback was submitted. Any other JSON type → 400 invalid_url (a shape check: answered before the support authorization and rate window, nothing charged or written). On POST the value is scrubbed like the client-error url (query and fragment dropped, the segment after a shared / share segment stored as :token); a malformed string (relative, non-http(s), dot segment) is not stored, the report is still created (201) and a fixed-text WARN is logged without the value. |
client_context |
object | null | Client-side context captured with the submission (as documented for Reports); null when none or when the stored value cannot be decoded. It is always an object or null, never a JSON string. The admin inbox renders it as the Browser diagnostic panel. Unknown keys carry their numbers exactly as sent (an integer such as 9007199254740991 and a fraction such as 0.30000000000000004 are returned digit for digit, not rounded). |
created_at |
unix seconds | Submission timestamp. |
processed |
0 | 1 | Processed flag. |
status |
string | null | Triage lifecycle status (see Automated triage). |
category |
string | null | AI category (bug, feature_request, question, praise, complaint, other). |
severity |
string | null | AI severity (low, medium, high, critical). |
confidence |
integer | null | AI confidence percent (0–100). |
linked_ticket |
string | null | The YouTrack issue id (e.g. PROJ-1234) this item was auto-created/linked to, or null. |
ticket_link_removed_at |
integer | null | Unix seconds when a person removed the ticket link; automatic linking stays off until a person sets a ticket. null otherwise. |
responded_at |
unix seconds | null | When a user-facing response was sent, or null. |
image_content_type |
string | null | Legacy single-inline image type (image/png/image/jpeg) for entries submitted before multi-image support; null otherwise. |
image_count |
integer | How many evidence images this entry carries. The image bytes are not included in the list — fetch them by id (see evidence images below). |
personal_data_withheld |
"processing_restricted" | absent |
Present only when the entry's author is under a GDPR Art. 18 processing hold. The diagnostics and screenshots are then withheld: client_context, url and image_content_type are null and image_count is 0, so the admin page requests no images. For an automatic app diagnostic (the client-generated microphone/device probe, recognised by its content whatever its status, so legacy rows count too) the probe text is machine-generated device data, so it is withheld too: description is null and summary is the fixed label AIG_MIC_DIAG (without the error name). Other entries keep summary and description. A content edit of such an entry is refused (see PATCH). An unreadable restriction state is treated as restricted (fail closed). Entries without an author are not affected. |
App feedback — reading one entry
GET /admin/v1/app-feedback/<ID>
Required permission: FEEDBACK_TRIAGE, the same as the list. Without it the request is refused before any read.
Returns the one entry with that id as an object. It has exactly the fields of a list entry (see the table above), computed by the same query. The Art. 18 withholding is therefore identical: for a processing-restricted author the answer is 200 with client_context, url and image_content_type set to null, image_count set to 0 and personal_data_withheld: "processing_restricted", as the inbox shows it. No status filter applies. An automatic app diagnostic, which the default list leaves out, is returned too. The admin web app's item page (/platform/feedback/<ID>) and its edit page read the entry this way.
Accepted <ID>: 1 to 36 characters, each a letter, a digit, - or _. That is the shape of every stored id: a UUID, or a seeded id.
| Answer | When |
|---|---|
200 the entry |
the id names an entry |
404 { "error": "not found", "code": "not_found" } |
no entry has this id, or the id is malformed (longer than 36 characters, or any other character, e.g. a space, ., ' or a non-ASCII letter, also when percent-encoded), or it differs from a stored id only in letter case. The answers are identical, and a malformed id is answered without a database read. A percent-encoded / (%2F) is decoded before routing, so it makes a different path, not an id: it does not reach this route. |
403 |
the caller lacks FEEDBACK_TRIAGE |
503 |
the database read failed (retry). It is never a 404, so an outage cannot read as "deleted". |
The response carries Cache-Control: private, no-store, because the entry holds the reporter's text and e-mail address.
App feedback — submitting an entry
POST /admin/v1/app-feedback
Required role: authenticated. Submitting type: "support" additionally requires the SUPPORT_CONTACT permission (see Contact Support).
Submits a new entry. Both summary and description are required.
The body must be valid JSON: a string carrying an invalid escape (for example a lone UTF-16 surrogate such as \ud83d) is refused 400 malformed_body and nothing is stored. The web app replaces any lone surrogate with U+FFFD (�) before sending.
The JSON envelope of this upload route may hold at most 32,768 JSON values (structural elements); a denser body is refused 413 body_too_complex before it is parsed. The base64 file itself is one string and does not count against it.
Request body fields:
| Field | Type | Required | Result |
|---|---|---|---|
summary |
string | Yes | Short summary; scrubbed to valid UTF-8 and truncated to 255 bytes. Absent, "" or a blank value (whitespace, Unicode spaces and zero-width characters only) → 400 ("summary required", code summary_required, the same answer as ""; blank is judged on the stored, cut value; invalid UTF-8 is scrubbed, not rejected); explicit null, a number, boolean, object or array → 400 (same error text, code invalid_summary). Nothing persisted. |
description |
string | Yes | Long description; scrubbed to valid UTF-8 and truncated to 4000 bytes. Absent, "" or a blank value → 400 with a stable {"error": "…", "code": "description_required"} (the same answer as ""), nothing persisted. Blank is judged on the stored (cut) value; invalid UTF-8 is scrubbed, not rejected. Absent and whitespace-only are answered identically — a required field's rejection does not degrade to a permissive path. (Blank is the nothing-visible rule linked above — NBSP, zero-width and ideographic spaces, tag characters and the like count as blank, not only ASCII whitespace. JSON null or a non-string value — number, boolean, object, array — is not a description and is answered 400 invalid_description, never stringified into the row. A non-string summary is answered 400 invalid_summary.) |
type |
string | No | See the table below. |
url |
string | null | No | Originating page URL; truncated to 1024 bytes. |
client_context |
object | No | Diagnostic envelope, validated by the same validator as the client-error client_context (referrer / current_route are URL-scrubbed, see there). As on the anonymous client-error route, a context the validator refuses is answered 400 { "error": "<reason>", "code": "…" } — code is invalid_client_context (not an object; a JSON array, including [], is refused; a number that is not finite such as 1e999, or nesting deeper than 32 levels below the object, is refused with 400 under an unknown key; under a typed key the value is dropped and _<key>_invalid: true is set (201); the server-reserved _unknown, _unknown_truncated, _unknown_keys, _unknown_keys_truncated names are dropped), invalid_schema_version or client_context_too_large — and nothing is persisted. The SPA keeps its context well inside the cap: it always shortens every top-level text value longer than 1024 characters to that length plus a trailing "…" (a trailing "…" on such a field is a client cut, not the real value), and omits the context if its estimate of the server encoding is still over 8 KiB. Legacy keys. Every key the SPA collector has always sent is parsed against a closed shape; there is no "allowed key, any value" class any more. submitted_at: an ISO timestamp with milliseconds and a trailing Z (2026-11-05T09:30:00.000Z). app_version, timezone, locale, user_agent, platform: text of at most 3075 bytes (1024 characters of up to 3 bytes plus the 3-byte trailing "…"), valid UTF-8 without control characters. app_type: exactly iOS, Android or Web (case-sensitive). uptime_sec: an integer 0 to 315360000. online, save_data, reduced_motion, battery_charging: booleans. connection: one of slow-2g, 2g, 3g, 4g, bluetooth, cellular, ethernet, mixed, none, other, unknown, wifi or wimax. color_scheme: light or dark. screen: { w, h, dpr } with integers w, h 0 to 100000 and dpr a finite number 0 to 64. viewport: { w, h }, integers 0 to 100000. battery_pct: an integer 0 to 100. current_route and referrer: text of the same limit, then URL-scrubbed as described above; the SPA sends a referrer only when it begins with http:// or https://. Closed schema (unknown keys). A top-level key the validator does not know is never stored: neither its value nor an unlisted name. The server lists the NAMES of the unknown keys it saw in _unknown_keys (an array, sorted, at most 32 entries, each a 1 to 64 character name of letters, digits, _, . or -; a name outside that shape is left out) and sets _unknown_keys_truncated: true when any name was left out. No unknown key means no marker. The markers _unknown_keys, _unknown_keys_truncated, _unknown and _unknown_truncated are server-only and are stripped from a client body. The value of an unknown key is still checked structurally, so a non-finite number, a cycle or nesting deeper than 32 levels is refused 400 invalid_client_context even though the value is not kept; because unknown values no longer count, only typed fields can reach the 16 KiB cap. Rejection: a value that does not fit is dropped and the server sets _<key>_invalid: true (for example _app_type_invalid); the report is still stored (201). A key that is absent or null is simply left out with no marker. A client-sent _<key>_invalid is stripped: only the server sets it. The same fault (nesting deeper than 32 levels, a non-finite number) under an UNKNOWN key is still 400 invalid_client_context; under a typed key the value is dropped and _<key>_invalid: true is set (201), and the 16 KiB total cap (client_context_too_large) still applies to the whole context. The SPA trims every top-level text value longer than 1024 characters (trailing "…") whenever it sends a context, so a client cut never exceeds the 3075-byte limit. Stored before 2026-11-05: rows written earlier are not rewritten; they may hold values the current rules would drop, an _unknown object or _unknown_truncated, and readers must tolerate them (the admin view shows control and bidirectional-override characters in stored text as visible \u00XX escapes instead of raw characters). Mail-plugin keys. The OX App Suite mail plugin's keys are parsed against closed shapes too. source, action, error_key, error_code, phase, tenant, gateway, model: text of at most 3075 bytes, valid UTF-8 without control characters; "" is accepted and stored. cause: the same text rule, after each run of tab, line feed and carriage return is folded into ONE space (any other control character drops it). base_url: null or "" is absent; otherwise an absolute http(s) URL with userinfo, query and fragment removed, and anything else is dropped. http_status: an integer 0 to 999, null absent. n, unread, sent: integers 0 to 10000000, null absent. Each rejected value is dropped and the server sets _<key>_invalid: true; the report is still stored (201). The optional last_deeplink key follows the contract under Reports: malformed → dropped plus a server-set _last_deeplink_invalid: true; the report is still stored (201). The optional app-state keys are each parsed against a closed schema: unknown sub-keys, free text, device ids and labels are never accepted. selected_model: { model, ghost_mode } — model is 1 to 128 bytes of [A-Za-z0-9._:/@+-] starting with a letter or digit (model ids may contain @ and /, provider-prefixed ids such as vertex/claude-3@20240229; a model id is configuration, not personal data), ghost_mode a boolean. feature_flags: an object of boolean values over exactly these 14 keys — tenant_live_transcription_enabled, tenant_voice_mode_enabled, tenant_agents_enabled, tenant_workflows_enabled, tenant_scheduled_tasks_enabled, tenant_org_share_enabled, tenant_playground_enabled, tenant_billing_settings_enabled, tenant_pii_preview_auto_show, tenant_pii_masking_enforced, myra_hosted_models, plan_change_enabled, signup_exceptions_enabled, trial_budget_unlocked; an unknown key or a non-boolean value drops the whole key. media_devices: { audioinput, audiooutput, videoinput, labels_exposed } — three integer counts 0 to 64 plus a boolean; no label, deviceId or groupId is ever collected. mic_permission: granted, denied or prompt. voice: { state, sound_blocked, audio_context?, sample_rate? } — state is idle, connecting, listening, thinking, speaking or ending; sound_blocked a boolean; audio_context is suspended, running, closed or interrupted; sample_rate an integer 3000 to 768000. dictation: { status, live, mic_device_chosen, error?, audio_context?, sample_rate? } — status is idle, starting, recording or transcribing; live and mic_device_chosen are booleans; error is denied, cannot-start, no-device, no-speech, too-long, busy, unavailable, network, unsupported or transcribe-failed; audio_context and sample_rate as for voice. perf: any subset of device_memory_gb (number, above 0 up to 1024), hardware_concurrency (integer 1 to 1024), js_heap_used_mb / js_heap_total_mb / js_heap_limit_mb (integers 0 to 1048576), nav_type (navigate, reload, back_forward or prerender), nav_ttfb_ms / nav_dcl_ms / nav_load_ms (integers 0 to 3600000), downlink_mbps (number 0 to 100000), rtt_ms (integer 0 to 600000); one bad field drops the whole perf object. Rejection: a malformed value is dropped plus a server-set _<key>_invalid: true (a _<key>_invalid marker sent by the client is stripped: only the server sets it), an absent or null value leaves the key out, and the submission is still stored (201). An empty {} or [] is ABSENT for feature_flags and perf, but MALFORMED for selected_model, media_devices, voice and dictation (which have required fields). The optional recent_errors and recent_failed_requests rings (at most 20 typed, free-text-free items each) follow the contract under Reports: malformed → dropped plus a server-set _recent_errors_invalid: true / _recent_failed_requests_invalid: true; empty or null → absent; the report is still stored (201). The optional ua_hints key carries the high-entropy User-Agent Client Hints the browser disclosed on request, as a closed object whose fields are all optional: platformVersion (text, at most 32 bytes), model (at most 64), architecture (at most 16), bitness (at most 8), wow64 (a boolean), fullVersionList (at most 8 items of { brand, version }, brand at most 64 bytes and version at most 32) and formFactors (at most 8 texts of 1 to 32 bytes). Unknown sub-keys, a wrong type, an over-long value, a null sub-field, an empty formFactors text, a control character or invalid UTF-8 in any text drop the whole key and the server sets _ua_hints_invalid: true (201); null, an absent key or an empty {} is the same as leaving it out, and a client-sent _ua_hints_invalid is stripped. When the browser has the API but gives no usable answer, the SPA sends the optional ua_hints_failure instead (a browser without the API sends neither key), a closed set: timeout (no answer within 300 ms), rejected (the browser refused or the call failed) or empty (it answered without a usable value); any other value is dropped plus a server-set _ua_hints_failure_invalid: true. When the context nears the 8 KiB limit the SPA sheds ua_hints late (seventh of eight: after the performance, feature-flag, media-device, microphone-permission, voice and dictation snapshots, and just before selected_model); ua_hints_failure is never shed. The two keys are independent: the server enforces no relationship between them, so a valid ua_hints is kept even if ua_hints_failure is also sent. Native app OS (native_os). The server derives native_os from the MYRAai app token in the stored user_agent: MYRAai-<Android|iOS>/<version> (<build>) <device> / <Android|iOS> <os version> / <arch> optionally followed by / <key>=<value> segments, running to the end of the user agent. The stored object is { platform, os_version, arch, sdk?, build?, display?, patch? }: platform is Android or iOS; os_version is 1 to 32 characters of letters, digits, ., _ or -; arch is 1 to 16 letters, digits, _ or - (no dot); sdk is an integer from 1 to 9999; build and display are 1 to 64 characters of letters, digits, ., _ or -; patch is a YYYY-MM-DD date whose month is 01 to 12 and whose day is 01 to 31 (a range check only, with no per-month calendar check: 2025-02-31 is accepted, 2025-13-45, 2025-00-10, 2025-12-32 and 2025-02-00 are not). The first part of the token must be a version of digits and dots (at most 32 characters), a build number of digits (at most 10) and a device name of 1 to 128 bytes that does not contain /. Unknown well-formed segment keys (a lowercase letter followed by lowercase letters, digits or _, at most 32 characters, with a value of 0 to 64 characters from the build set) are ignored. Only the first occurrence of a key counts: a repeat is ignored and sets _native_os_invalid; if that first value is invalid the field is dropped (a later valid repeat does not replace it). No token, or a token without the OS and architecture parts (an older app build), is ABSENT: no key, no marker. A token whose required parts are malformed is MALFORMED: no native_os and the server sets _native_os_invalid: true; a bad optional segment (sdk, build, display, patch) is left out of the result and the marker is set, the remaining fields are kept. native_os and _native_os_invalid are server-only: a client-sent copy is stripped. A malformed token never refuses the submission (201); the derived native_os counts toward the 16 KiB client_context_too_large cap like any other key. It is derived only from a user_agent that passed the rules above, so a dropped user_agent yields neither key. The optional screenshot_failure key is a closed set: unsupported, timeout, render_error, secure_view or too_large. The SPA sets it when the automatic screenshot of the current view (sent as the first element of images) could not be captured; it is absent when the capture worked or the user switched it off. Any other value (a different string, a number, an object) is dropped and the server sets _screenshot_failure_invalid: true next to it; null is the same as leaving it out, and a client-sent _screenshot_failure_invalid is stripped. The entry is still stored (201). |
image / images |
see Evidence image below | No | Optional screenshot(s). |
The description guard is applied alongside the summary guard — before the SUPPORT_CONTACT authorization check — so a blank-description submission of any type (including support) is answered 400 description_required and never consults, nor leaks, the permission. Branch on the top-level code, never on the error prose — see Error codes.
type is optional. Absent and malformed are treated differently, deliberately:
type |
Result |
|---|---|
| omitted | Defaults to other. |
bug / feature / other |
Used as given. |
support |
A Contact Support request — see below. Requires SUPPORT_CONTACT. |
any other value — an unrecognised string, a non-string (number, boolean, array, object), or an explicit null |
Rejected 400, nothing is persisted. The body carries a stable code: {"error": "…", "code": "invalid_type"}. |
A value that arrives wrong is not silently reinterpreted as other; only an absent field is defaulted. Branch on the top-level code, never on the error prose — see Error codes.
Response: 201 { "id": "<entry id>" }.
Automatic app diagnostics
When the iOS/Android app cannot use the microphone (for example the user declined the permission), it files one automatic diagnostic through this endpoint — no person wrote it. Such an entry is stored (so it can be counted) but is never treated as human feedback: it is stored with status = "diagnostic" and processed = 1, is never classified, never routed to the human queue (needs_human), never answered (no in-app response, no e-mail), not mirrored into the triage queue, not posted to the ops channel, not counted as handled in the CS-automation metrics, not listed on the user's My feedback, and not listed in the default inbox (only with ?status=diagnostic). Its status timeline gets one diagnostic event (actor system, reason automatic_diagnostic).
Accepted shape — an entry is an automatic diagnostic only when all of these hold, checked exactly (case-sensitive) on the stored values:
| Field | Must be |
|---|---|
type |
exactly bug |
summary |
starts with the token AIG_MIC_DIAG (followed by a space, _, or nothing — AIG_MIC_DIAGNOSTIC… does not count) |
description |
at most 4000 bytes, and as a whole one strict JSON object (no NaN, Infinity, hex or other malformed numbers) containing the text "marker" exactly once (anywhere — as a key or as a value), with no NUL byte and no \u-escaped printable ASCII character (the app's encoder never writes either) |
description.marker |
a string of at most 32 bytes matching AIG_MIC_DIAG_V + digits (e.g. AIG_MIC_DIAG_V3) |
Example: {"type": "bug", "summary": "AIG_MIC_DIAG NotAllowedError", "description": "{\"marker\":\"AIG_MIC_DIAG_V3\",\"err_name\":\"NotAllowedError\",…}"}.
Operating-system microphone state. In the iOS app the page asks the app for the real system state of the microphone permission through the getMicPermission message handler: it posts a one-shot callback name and the app answers by calling that function in the asking page with one of granted, denied, undetermined, restricted or unknown. The callback name must be __myraOnMicPermission_ followed by 1 to 16 ASCII digits; any other body, a request from any frame other than the app's own top-level page, and a request from a page that has since been replaced get no answer (the asking page records timeout if it is still loaded; a replaced page records nothing). The probe JSON carries the result as os_mic_permission: granted, denied, undetermined or restricted; a shell reply of unknown or anything else is invalid; no bridge is absent (for example Android, a browser or an older app build); no reply within 1 s is timeout. Values are clipped to 16 characters. The app also exposes window.Android.openAppSettings(), which asks iOS to open the app's page in Settings; the in-page Open settings button calls it. One diagnostic is sent per distinct error name and system state, so a changed state is reported again. The error values of the dictation feedback context are unchanged.
Anything else is ordinary human feedback — the check fails toward a person reading it. Text that merely mentions AIG_MIC_DIAG, a JSON object with text appended, a lowercase or unversioned marker (aig_mic_diag_v3, AIG_MIC_DIAG_V), a non-string marker, a duplicated marker key (also when spelt with escapes such as m\u0061rker), a JSON array, another type, a summary that does not start with the prefix, or a description cut at the 4000-byte limit (no longer one JSON object) is all treated as human feedback and goes through triage as usual. Because the shape is checked on the submitter's own entry, sending it deliberately can only hide that submitter's own report from the human queue; it is still stored and listed under ?status=diagnostic.
An admin may still un-tick processed on such an entry (PATCH … {"processed": false}); its status stays diagnostic, and an existing triage-queue mirror is reopened with it — a deliberate admin action.
Entries stored before this check existed, or by an older release during a rolling deploy. While the platform setting feedback_triage_enabled is on, every triage sweep first applies the same rule to entries that are still received, parked at needs_human, or triaged but neither answered nor ticketed, and moves each match to diagnostic (processed = 1, one diagnostic timeline event recording the status it came from) — before anything is classified or answered; the sweep never classifies such an entry itself. Answered, ticketed and resolved entries are left as they are. Independently of that setting, the automated-response and CS-automation sweeps skip any entry that matches the rule, so such an entry is never answered (in-app or by e-mail) and never ticketed, even if an older release classified it. Their triage-queue mirrors are closed (acknowledged) by the reconciliation described under updating an entry, except while a triage run holds the mirror.
The feedback page's handover (web app, client-side input)
The web app's feedback form is the page /account/feedback/new. The Send feedback button (and every
Contact support button) takes the screenshot of the page the user is on before it navigates, and hands the
page over in the browser's history state (the router's navigation state, which survives a reload). History state can
be written by any script of the origin, so the feedback page treats it as untrusted and validates it before using any
of it:
| Field | Accepted | Rejected |
|---|---|---|
| envelope | an object with v: 1 |
anything else (a string, an array, another version) |
from |
null, or a same-origin in-app path with its query (the app's post-login return-target rules: no //, no backslash, no control characters, at most 2048 characters, not a pre-auth page), never the feedback page itself |
an absolute or protocol-relative URL, an encoded separator, a dot segment |
type |
bug, feature, other or support (a support without the Contact Support permission still falls back to other) |
any other value |
shot |
{ data, type: "image/jpeg" }, data base64 of a JPEG (starts with /9j/), at most the per-image cap (10 MB of bytes) |
another type, non-base64 text, bad padding, an empty or over-long value |
shotFailure |
one of unsupported, timeout, render_error, secure_view, too_large |
any other value; a shot and a shotFailure together |
appState |
the client-context app-state keys (selected_model, feature_flags, voice, dictation), each unchanged by its own sanitizer |
an unknown key, a value the sanitizer would change or refuse |
at |
an integer epoch-milliseconds instant, at most a minute ahead and at most a week old | anything else |
Absent (a typed address or a shared link) and malformed are different answers, and neither trusts anything:
absent gives the plain form (no screenshot field, the form's own address as the report's page, Cancel to
My feedback); malformed drops the whole handover — no screenshot, no preselected type, no return page — and
never a partly accepted one. A valid handover makes from the report's url and client_context.current_route,
adds its appState, and ends the diagnostics rings at at. The server validates the submitted body as for any other
submission.
Contact Support
type: "support" is the in-app route to Myra support. It is gated by the SUPPORT_CONTACT permission, which the admin and tenant_admin system roles hold by default; because it is a tenant-scoped (non-platform) permission, a tenant admin may also delegate it to a custom role. A caller without it receives 403 and nothing is written — the client hiding the option is only a convenience, the server is the boundary.
On success the entry is stored exactly like any other feedback (and mirrored into the triage queue), and an email is sent to the configured support mailbox containing the tenant, the submitting user's name and email, the summary, the description, and a link back to the stored entry. The stored row is the durable record: if the email cannot be delivered the request is not lost — it is still in the feedback inbox, and the failure is logged and raised to ops.
The recipient is the support_email global setting; it is never taken from the request.
Rate limit. Contact Support requests are limited to 3 per hour per user and 10 per hour per tenant. Over either limit the response is 429 with {"error": "…", "code": "support_rate_limited"} and no entry is created. Other feedback types are unaffected — a rate-limited user can still file a bug report. The limits are applied after the permission check, so an unauthorised caller can never consume another tenant's budget.
Blocked-customer alert
The report text is scanned server-side for a blocked-customer signal (the person cannot log in or cannot pay). The result is one of a closed set of codes and goes only to the internal ops channel and the daily assessment, with the owner role support; nothing is sent to the reporter and the response is unchanged. A text that cannot be read (malformed) raises the alert rather than hiding it. For an author whose processing is restricted (GDPR Art. 18) the text is not read at all, only the report type.
Optional evidence images
The body may carry optional screenshots so a reporter can attach visual evidence. Two shapes are accepted:
| Field | Type | Notes |
|---|---|---|
images |
array | Up to 6 objects { image, image_content_type } (below). Over the cap → 413 with code: "too_many_images" (the error text stays image_too_many), and no entry is created. A present images that is not an array → 400 image_not_an_image. |
image |
string (bare base64) | Legacy single-image form (still accepted). The image bytes, base64-encoded with no data: prefix. Equivalent to images: [{ image, image_content_type }]. Ignored when images is present. |
image_content_type |
string | The client-declared MIME. A hint only — used to detect a spoof, never trusted as the authoritative type. Absent, null or "" = no hint (the magic bytes decide). A present but malformed value — a non-string (number, array, object), or a string that is not type/subtype with well-formed ; name=value parameters (no /, empty subtype, comma list, control byte, unterminated quote, over 1024 bytes, …) — is rejected 400 image_type_malformed_declared, never read as "no hint". The grammar is the one documented for form file uploads. |
Each element of images has the same { image, image_content_type } fields as the legacy pair. Every image is validated server-side, fail-closed at the trust boundary (the client-declared type and any filename are hostile and never trusted):
- The authoritative type is derived from the magic bytes. PNG and JPEG are stored directly. An Apple/other image format (HEIC/HEIF/AVIF, DNG, WebP, GIF, TIFF, BMP) is first converted server-side to a downscaled JPEG (≤2048 px, EXIF-stripped) and that JPEG is then validated + stored — so an iPhone photo is accepted, not rejected. A non-image payload, a spoofed declared type that decodes to nothing, an executable, or an SVG is still rejected.
- Size cap: 10 MiB (raw, pre-base64). An over-long encoded body is rejected before it is decoded.
- Dimension cap: the decoded image must be a parseable PNG/JPEG of at most 25 megapixels (a small file declaring enormous dimensions — a decompression/canvas bomb — is rejected).
A rejected image never creates an entry. The validation rejections below answer a 4xx whose error is the bare image_<reason> token; the two malware-scan rejections (last rows) instead carry operator prose in error plus a stable top-level code (malware_detected / scan_unavailable) that a client keys its message off, and the 503 carries Retry-After:
| Reason | Status | Meaning |
|---|---|---|
image_bad_encoding |
400 |
image is not a decodable base64 string (includes a non-string value — no 500). |
image_empty |
400 |
The decoded payload is empty. |
image_type_malformed_declared |
400 |
image_content_type is present but malformed (see above) — never treated as absent. |
image_not_an_image |
400 |
The magic bytes are not PNG/JPEG (spoof, wrong type, or a non-image payload). |
image_bad_dimensions |
400 |
The bytes claim to be PNG/JPEG but the dimensions cannot be parsed. |
image_too_large |
413 |
Over the 10 MiB size cap (or an over-long encoded body). |
image_too_many_pixels |
413 |
Over the 25-megapixel dimension cap. |
too_many_images |
413 |
More than 6 images in images (the error text is image_too_many). |
image_not_an_image |
400 |
images is not an array, or an images element is not an object ({ image, image_content_type }). |
image_server_busy |
503 |
A non-PNG/JPEG image had to be converted, and the image-conversion workers are at capacity or the conversion failed. Retry shortly. |
code: "malware_detected" |
422 |
The malware scanner flagged an image (see Malware scanning below). error is operator prose ("This file was blocked by malware scanning."); the signature is logged operator-side only, never returned. |
code: "scan_unavailable" |
503 + Retry-After |
Malware scanning applies but could not be completed — the scanner was unreachable/errored, or whether scanning applies could not be determined. The submission is refused rather than stored unscanned. Retryable. |
A rejection of any image rejects the whole submission (no partial entry). On success each stored image is the base64 of the exact validated bytes (never the raw client string), kept in attach order and removed when the entry is deleted.
Malware scanning (fail-closed, opt-in per gateway). Evidence images are persisted and served back raw to platform triage, so they are malware-scanned like every other persist-and-serve upload. Scanning is enabled per gateway (av_scan.enabled in a gateway config) and off by default; a feedback entry has no gateway, so an image is scanned when the reporter's tenant has malware scanning enabled on any of its gateways — otherwise this step is skipped. The order is fixed: every image is validated first (a malformed image is answered 4xx without consulting the scanner), then enablement is resolved once, then each image's exact validated bytes — the very bytes that get stored; for a converted HEIC/other-format upload that is the produced JPEG — are streamed to the self-hosted ClamAV daemon, and only then are the Contact-Support rate windows charged and the entry written. An infected verdict rejects the whole submission with 422, code: "malware_detected"; a scanner that is unreachable, times out or errors — or an enablement that cannot be determined (the tenant's gateway list is unreadable or a gateway config will not decode) — rejects it with 503, code: "scan_unavailable" and a short Retry-After, never storing the images unscanned. Residuals, by design: a submission from a tenant that has not opted in, or from an account with no tenant at all (a platform admin's normal shape, or a tenantless user — owning no gateway, none can have opted in), is stored unscanned; the raw bytes handed to the server-side image converter are not scanned (only its output is — decoder hardening is the converter sandbox's job); and the image/normalize preview helper below persists nothing and is not scanned (what it returns is scanned when submitted). The ClamAV endpoint is deployment infrastructure configured by your operator, consulted only when a gateway has opted in. The SPA maps both codes to translated copy and records the rejection in the attach beacon (malware / scan_unavailable; note the scan_unavailable beacon kind is shared with the image-normalizer-at-capacity reject image_server_busy, so a beacon alone does not tell the two transient states apart — the server log does).
App feedback — normalize an image (preview helper)
POST /admin/v1/app-feedback/image/normalize
Auth: any authenticated user (the same as submitting — a reporter normalizing their own attachment); no FEEDBACK_TRIAGE permission required. Pure transform — stores nothing.
The feedback dialog calls this when the browser cannot decode a picked file (an iPhone HEIC/HEIF), so it can show a preview and submit a storable format. Browsers can't render HEIC; the server reuses the image decoder (image_strip, libheif/rawpy) to convert it.
| Field | Type | Notes |
|---|---|---|
image |
string (bare base64) | The raw picked bytes, base64-encoded, no data: prefix. Untrusted. |
image_content_type |
string | null | Client-declared MIME. A hint only; the type is derived from magic bytes. |
- A PNG/JPEG input is validated and returned unchanged (no conversion).
- Any other decodable image (HEIC/HEIF/AVIF/DNG/WebP/GIF/TIFF/BMP) is converted to a downscaled JPEG (≤2048 px longest side, EXIF-stripped), which is then re-validated (magic + 10 MiB + 25 MP bounds) before it is returned — the endpoint never returns an unbounded image.
Success 200: { "image": "<jpeg base64>", "content_type": "image/jpeg" } (or the original content_type for a pass-through PNG/JPEG).
| Error | Status | When |
|---|---|---|
image_bad_encoding |
400 |
image is missing / not a decodable base64 string (a non-string value is rejected here, never a 500). |
image_type_malformed_declared |
400 |
image_content_type is present but malformed (same rule as the submit route) — the image is not converted. |
image_unsupported |
422 |
The bytes could not be decoded (unknown/corrupt/truncated format, or a decompression bomb). |
image_too_large |
413 |
Over the 10 MiB size cap (or an over-long encoded body). |
image_too_many_pixels |
413 |
The produced image is over the 25-megapixel cap. |
image_server_busy |
503 |
The image-conversion workers are at capacity — a transient condition, retry shortly (the image is fine). |
App feedback — evidence image
GET /admin/v1/app-feedback/<ID>/image
Required permission: FEEDBACK_TRIAGE (a platform-admin permission).
Returns the entry's first evidence image (in attach order) as base64 in JSON (the SPA renders it as a data: URL — the admin API is a separate origin whose img-src CSP forbids a cross-host <img src>):
| Field | Type | Description |
|---|---|---|
id |
string | Entry id. |
mime |
string | image/png or image/jpeg (server-derived). |
size_bytes |
integer | Raw (pre-base64) byte count. |
data |
string | The image bytes, base64-encoded. |
If the author is under an Art. 18 processing hold the route answers 200 { "id", "personal_data_withheld": "processing_restricted" } with no image data. An entry with no image, or an unknown <ID>, returns 404 { "error": "not found", "code": "not_found" }. The response carries Cache-Control: private, no-store (feedback screenshots may contain PII, so no shared cache retains them). This is the legacy single-image endpoint; use /images (below) for the full set.
App feedback — evidence images (all)
GET /admin/v1/app-feedback/<ID>/images
Required permission: FEEDBACK_TRIAGE.
Returns all of the entry's evidence images (0..N), in attach order, as base64 in JSON:
| Field | Type | Description |
|---|---|---|
id |
string | Entry id. |
images |
array | Objects { id, mime, size_bytes, data } — data is the base64 image, mime the server-derived image/png/image/jpeg. An empty array when the entry has no image (never a 404 for an existing entry). |
For a restricted author the answer is 200 { "id", "images": [], "personal_data_withheld": "processing_restricted" }. An unknown <ID> returns 404 { "error": "not found", "code": "not_found" }. A failed database read returns 503. The same Cache-Control: private, no-store applies. Entries submitted before multi-image support return their single legacy inline image as a one-element array.
App feedback — updating an entry (processed flag or editable fields)
PATCH /admin/v1/app-feedback/<ID>
Required permission: FEEDBACK_TRIAGE (platform admin).
A single PATCH does either a processed-toggle or a content edit — the two modes are mutually exclusive. A body that mixes them (a processed key together with any editable field) is rejected with 400.
Processed toggle — a body carrying processed:
| Field | Type |
|---|---|
processed |
boolean |
Content edit — a body carrying any editable field. This is a partial update: an omitted field is left untouched; a field present with an empty/null value is cleared to SQL NULL.
| Field | Type | Notes |
|---|---|---|
summary |
string | Required and non-blank on an edit; truncated to 255. Absent, "" or a blank value → 400 summary_required; null or a non-string → 400 invalid_summary. Nothing is written. |
type |
string | Coerced to one of bug, feature, other, support — any other value becomes other. This differs from POST, deliberately: PATCH is the platform-admin triage editor, where coercion normalises a legacy or hand-written row instead of locking an admin out of editing it; POST rejects a malformed type instead. Re-typing an entry to support here does not send an email — only the original submission does. |
description |
string | null | Optional; truncated to 4000 bytes. Empty/null clears it. Any other JSON type (number, boolean, object, array) is rejected with 400 invalid_description and nothing is written. |
url |
string | null | Optional; truncated to 1024. Empty/null clears it. Any other JSON type is rejected with 400 invalid_url and nothing is written. A string is scrubbed as on submit (share-link token → :token, query dropped); a malformed string is rejected with 400 invalid_url (url must be an absolute http(s) URL) and nothing is written. |
processed must be the JSON boolean true or false; anything else (null, a string, a number including 0/1, an object) → 400 invalid_processed and nothing is written. A body with neither mode → 400 { "error": "nothing to update", "code": "nothing_to_update" }; a mixed body → 400 { "error": "edit and processed toggle are separate operations", "code": "conflicting_operations" }. Response: 200 { "ok": true }.
Closing needs a closure path. Setting processed: true follows the same rule as closing the row's triage entry: the entry must have a linked ticket (a valid ticket id) or an answer the reporter received (a person's reply, a roadmap reply, or an automated answer; the automatic acknowledgement is not an answer). Without one the request is refused 409 { "error": "no_closure_path: ...", "code": "no_closure_path" } and nothing is written; the SPA shows the reason and leaves the row open. Automatic diagnostics and entries without any text are exempt. processed: false (re-open) is never refused. An unknown <ID> returns 404 { "error": "not found", "code": "not_found" }. A content edit of an entry whose author is under a processing hold (or whose restriction state is unreadable, or whose user row is missing: fail closed) is refused with 409 { "error": "personal data withheld: the author's processing is restricted", "code": "personal_data_withheld" } and nothing is written, because the admin only ever saw withheld placeholders and saving them would overwrite the stored text. The check is part of the write itself, so it cannot race a restriction. Anonymous entries are editable. The processed toggle and DELETE are unaffected. On a content edit, the mirrored triage-queue row (model_error where source = 'app_feedback') is kept coherent — its title follows summary and its detail follows description. The processed toggle is mirrored too (unless an in-flight escalation reserved the row). Reconciliation never creates a mirror for an automatic app diagnostic, and it closes the mirror of a processed diagnostic that still awaits a verdict (no verdict yet, or parked at needs_human → acknowledged, with a system note in front of any earlier note; a verdict it already has, such as filed, is kept) — never one a triage run currently holds.
App feedback — relinking the ticket
PUT /admin/v1/app-feedback/<ID>/ticket
Permission: FEEDBACK_TRIAGE. Body: a JSON object with the key ticket, a tracker ticket id made of the upper-case project key AGF, a hyphen and a number without leading zeros (at most 32 characters). The id is taken exactly as sent: no trimming and no case folding. Any other key is ignored.
Points the report at a different ticket. The ticket id is only checked for its shape, not looked up in the tracker. The report's linked_ticket changes, and so do the entries of the triage queue that belong to the report and were closed with a ticket reference, so the triage queue, the reply checks, closing the report and the fix notice all follow the new ticket. The triage verdict and the time it was reached are kept, and nothing is sent to the reporter. The bug deadline follows the earliest filing recorded for the new ticket, so it can already be overdue. The change is written in one transaction with a timeline entry and an audit-log entry that names the administrator. The automatic repair of ticket links keeps the new link; if it happens to run at the very moment of the change, one later run corrects it and records one more timeline entry.
While the triage queue still holds an open entry for the report, triage may link a ticket on its own later and that link then replaces this one; the response says so with triage_open.
Responses: 200 { "ok": true, "outcome": "linked" | "relinked" | "unchanged", "linked_ticket", "mirrors", "triage_open" }, where mirrors is the number of queue entries repointed and unchanged means the report already carried this ticket (nothing was written) · 400 invalid_body (not a JSON object) / ticket_required (absent or null) / invalid_ticket (not a string of that form, including an empty string, surrounding spaces, lower case, a number, a boolean, an object or an array) · 403 without the permission · 404 unknown or malformed <ID> (code not_found) · 409 personal_data_withheld (the author's processing is restricted; nothing is written) / ticket_link_escalated (the triage queue already escalated the report, so its ticket link is not changed here) / changed (the report changed while the link was being written; reload and retry); each 409 body is { "error", "code", "message" } with a short reason in message · 500 on a storage fault: nothing was written.
The inbox list returns the server-computed boolean triage_open per entry. Removing a ticket link is a separate request: see removing the ticket.
App feedback — removing the ticket
DELETE /admin/v1/app-feedback/<ID>/ticket
Permission: FEEDBACK_TRIAGE. Body: none. A request with a body is refused 400 { "code": "body_not_allowed" } (any non-empty body, whitespace included, is rejected).
Takes a wrong ticket link off the report. The report then has no ticket, is marked unprocessed again, and the entries of the triage queue that were closed with a ticket reference are closed without it. No automatic process links a ticket to this report again: not the repair of ticket links, not triage, not the automated customer-service run, and a report that was answered or ticketed this way is not re-opened into triage. Only a person ends this: setting a ticket with the relink request. The inbox list returns ticket_link_removed_at (Unix seconds) while the hold is on (null or absent otherwise), and the inbox shows that the link was removed by a person. Nothing is sent to the reporter. Before the report can be closed again it needs an answer the reporter received or a new ticket. The change and the administrator who made it are recorded in the audit log.
Remove stays available in the inbox while the report has a ticket or the removal hold is set (ticket_link_removed_at), so an interrupted removal can be repeated. Repeating the request on a report with no ticket and nothing left to close changes nothing and answers unchanged with mirrors: 0; the inbox then shows a neutral "nothing left to remove" notice. If a first request was interrupted after the hold was set, repeating it finishes the cleanup of the triage-queue entries and reports the number of entries it closed in mirrors.
Responses: 200 { "ok": true, "outcome": "cleared" | "unchanged", "mirrors", "processed" }, where mirrors is the number of queue entries changed and processed is the report's real flag (false after a fresh removal; a repeat reports what the report holds, which can be true if it was closed meanwhile) · 400 body_not_allowed · 403 without the permission · 404 unknown or malformed <ID> (code not_found) · 409 personal_data_withheld (the author's processing is restricted) / ticket_link_escalated (the report was escalated; the escalated ticket is the record) / triage_in_progress (a triage run is working on the report right now; try again in a few minutes) / changed (the report changed meanwhile; reload and retry); each 409 body is { "error", "code", "message" } · 500 on a storage fault.
App feedback — answering a bug or support report
POST /admin/v1/app-feedback/<ID>/reply
Permission: FEEDBACK_TRIAGE. Body: exactly { "note": "<text>" } — a JSON object with no other key.
Sends a person's answer to the reporter of a bug, support or other report (not a feature request: those are answered with the roadmap reply). The report must be waiting on a person: status needs_human or escalated, or an older triaged report that has no category and that no automatic step will ever take. A report that describes a blocked customer (cannot log in, cannot pay, a support request, a login or billing page, or unreadable text) is also answerable in any open status, from the day it arrives, as long as no person has answered it. The reporter must be reachable (an account that still exists) and unrestricted.
The reporter sees the answer on My feedback and receives it by e-mail under the usual suppression rules (no address, test account, opt-out, disabled). The report's status becomes responded, never resolved: "fixed" reaches the reporter only from the release notice, once the fix ships. The daily e-mail cap does not apply to a person's answer. The note is stored as the response text, preceded by a fixed line in the reporter's language; it is not an automated reply and carries no automated-reply disclaimer. If a tracker ticket is linked and its state cannot be read reliably, nothing is sent.
The note is trimmed and cleaned of invalid UTF-8; blank or invisible-only is blank. It is never truncated: more than 2000 bytes is refused.
Responses: 200 { "ok": true, "reply": { "note", "responded_at", "channel", "email", "email_reason" } } where email is sent, failed or suppressed and email_reason names the closed suppression code (otherwise null); a failed e-mail does not undo the in-app answer · 400 invalid_body (not an object, or any key other than note) / note_required (absent or blank) / invalid_note (present but not a string, or containing a control character: any C0 control other than newline, carriage return or tab, DEL, a C1 control U+0080 to U+009F, the line / paragraph separators U+2028 / U+2029, or a bidirectional override, embedding or isolate U+202A to U+202E, U+2066 to U+2069; the directional marks U+200E / U+200F / U+061C and zero-width joiners stay valid) / note_too_long · 403 without the permission · 404 unknown <ID> (code not_found) · 409 not_awaiting_person (not waiting on a person, or already answered) / not_eligible (no reachable reporter, or not a report this route answers) / personal_data_withheld (the reporter's processing is restricted; nothing is sent) / changed (the report changed while the answer was being written; reload and retry) / ticket_unreadable (a linked ticket's state cannot be read; try again later or relink) · 500 on a storage fault or a transient DB conflict (deadlock, lock-wait timeout): nothing was saved or sent; retry. The answer, its timeline entry (actor human, reason person_reply) and an audit-log entry (feedback.person_reply: the note length and channel, never the note) are written together or not at all. Two simultaneous answers never both send.
The inbox list (GET /admin/v1/app-feedback) returns the boolean person_replyable per entry: true exactly when this route would accept an answer now (the same condition the route re-checks under a row lock).
Chat feedback — person reply to a rating
POST /admin/v1/feedback/<ID>/reply
Permission: FEEDBACK_TRIAGE. Body: exactly { "note": "<text>", "reply_ref": "<hash>" } — a JSON object with no other key.
Sends a person's answer to the author of a per-session chat rating that needs a person. It is the same answer as for an app report (see above): same note rules (trimmed, at most 2000 bytes, never truncated), same delivery in the app and by e-mail under the usual suppression rules, same status responded (never resolved), same timeline entry (actor human, reason person_reply, source chat_feedback) and audit entry (feedback.person_reply: lengths and channel, never the note). The rating must be owed a reply (it has a comment, its author is reachable) and wait on a person: status needs_human or escalated, or triaged with no category. It may be answered before the reply deadline; a rating that already has a reply is refused. The author's processing must not be restricted.
reply_ref is the value the inbox list returned for this rating (reply_ref, the lower-case hex SHA-256 of its comment). A chat comment can be edited by its author at any time, so the answer is only sent while the comment is still the one the person read; a changed rating (a new comment) is refused with 409 changed. Changing only the star value does not change reply_ref.
A new comment on an answered rating goes back to a person. When the author re-rates (PUT /admin/v1/conversations/<ID>/feedback) with a new, non-blank comment, a rating that is already triaged, responded, resolved or auto_resolved (any status except the ones listed below) returns to needs_human with one comment_changed status event (actor system, from the previous status), so it is owed a reply again and this person-reply route accepts an answer (subject to the usual reply rules). A new rating that triage has not picked up yet (received) is not moved (triage reads the new comment); one that triage is classifying at that moment goes to a person instead. A rating already waiting (needs_human) or escalated is not moved either. A rating in the middle of an automatic answer is reopened at once like any other triaged one (the answer for the earlier comment may still go out; it is then recorded as an auto_answer_superseded timeline event, which is not an answer and is not shown to the author, and the rating stays with a person). The same comment, a blank comment, or a star-only change never reopens a rating. The earlier answer (automatic or a person's) stays stored but is hidden from the author's own feedback view while the new comment waits; the reply deadline counts from the latest such event.
Responses: 200 { "ok": true, "reply": { "note", "responded_at", "channel", "email", "email_reason" } } as for the app route · 400 invalid_body (not an object, or a key other than note and reply_ref) / note_required / invalid_note / note_too_long as for the app route, plus reply_ref_required (absent) and invalid_reply_ref (present but not 64 lower-case hex characters, including null, a number or an array) · 403 without the permission · 404 unknown <ID> (code not_found) · 409 not_awaiting_person / not_eligible / personal_data_withheld / ticket_unreadable as for the app route, and changed (the comment changed, the reply_ref is stale, or the rating changed while the answer was being written; reload and retry) · 500 on a storage fault: nothing was saved or sent.
The chat inbox list (GET /admin/v1/feedback) returns, per rating, the boolean person_replyable (true exactly when this route would accept an answer now, re-checked under a row lock) and reply_ref (a string, or null when the rating has no comment or when its author's processing is restricted under Art. 18 GDPR; a restricted rating is not answerable and its comment hash is withheld).
Feedback — marking a report as answered outside the product
POST /admin/v1/app-feedback/<ID>/answered-outside (app reports) · POST /admin/v1/feedback/<ID>/answered-outside (chat ratings)
Permission: FEEDBACK_TRIAGE. Body: exactly { "note": "<text>" } for an app report, { "note": "<text>", "reply_ref": "<hash>" } for a chat rating — a JSON object with no other key.
Records that a person already answered the reporter by other means (phone, a meeting, a tracker comment). Nothing is sent to the reporter: no e-mail, no in-app answer. The entry must be one this product would let a person answer (person_replyable is true), with the same eligibility and reply_ref rules as the person reply routes above. The status becomes responded, never resolved; the entry leaves the reply worklist, the overdue line and the blocked-customer alert, and is never triaged or answered automatically afterwards. The reporter still receives the fix notice when the fix ships in a release.
The note is not shown to the reporter in their app, but it is part of the author's data export (GDPR Art. 15). It is stored on the entry (never in the audit log), trimmed, cleaned and limited like a person reply (at most 2000 bytes, never truncated), is shown on the entry in the inbox, is cleared when the author is anonymised. An author under a GDPR Art. 18 processing hold is refused.
Responses: 200 { "ok": true, "answered_outside": { "note", "at" } } · 400, 404, 409 with the same codes as the person reply routes (invalid_body, note_required, invalid_note, note_too_long, reply_ref_required, invalid_reply_ref, not_awaiting_person, not_eligible, personal_data_withheld, changed) · 403 without the FEEDBACK_TRIAGE permission · 500 on a storage fault: nothing was saved.
The list responses (GET /admin/v1/app-feedback, GET /admin/v1/feedback) return answered_outside per entry: { "note", "at" } once marked, otherwise null.
App feedback — roadmap reply to a feature request
PUT /admin/v1/app-feedback/<ID>/roadmap
Required permission: FEEDBACK_TRIAGE (platform admin).
Records the product team's roadmap answer to a feature request — planned or not planned, optionally when, and a message — and shows it to the person who submitted it on their My feedback page (with a timeline entry). Feature requests are expected to receive this answer within 14 days. A later PUT replaces the answer.
Who is owed an answer. An entry whose type is feature or whose AI category is feature_request, submitted by a user who still has an account. Anonymous entries, entries whose author was erased or deleted, and non-feature entries cannot receive one (409).
Body — a JSON object:
| Field | Type | Rules |
|---|---|---|
decision |
string | Required. planned or not_planned. |
target |
string | null | Optional. The target month as YYYY-MM, between the current month and 36 months ahead, and only with planned. Absent or null = no month. |
note |
string | Required. The message to the user; not blank (an invisible-only note answers 400 note_required, like ""), at most 2000 bytes — a longer text is rejected, never cut. |
An <ID> longer than 64 bytes (or blank) answers 404 without a database read. A validation rejection is 400 { "error": "<message>", "code": "…" } with one of decision_required, invalid_decision, note_required, invalid_note (also: any control or bidirectional override / isolate character other than newline, carriage return or tab, as listed under the person reply; a note made only of invisible characters stays note_required), note_too_long, invalid_target, target_range, target_not_allowed. (Earlier servers answered target_out_of_range for target_range; accept both.)
Rejected with 400: a body that is not a JSON object; a missing or unknown decision; a note that is missing, not a string, blank or too long; a target that is not a string or null, an empty string, not exactly YYYY-MM, a month outside 01–12, outside the allowed range, or given with not_planned. Nothing is written on a rejection.
Responses: 200 { "ok": true, "roadmap": { "decision", "target", "note", "replied_at" } } · 400 { "error", "code": "invalid_body" } for a body that is not a JSON object (absent, array, null, scalar; code is additive) · 403 without the permission · 404 unknown <ID> (code not_found) · 409 { "error": "not_eligible", "code": "not_eligible", "message" }, or { "error", "code", "message" } with reply_contradicts_ticket (the answer would contradict the linked tracker ticket: Not planned on an open or finished ticket, Planned on a ticket closed without a fix) or ticket_unreadable (a ticket is linked but its state cannot be read reliably; nothing is written, try again later or relink) · 500 on a storage fault (nothing written). The answer, its timeline entry and an audit-log entry (decision, month and message length — not the message itself) are written together or not at all.
Each list entry also carries worklist_reason (roadmap_held, roadmap_reply_missing, no_response_sent, legacy_unanswered, needs_person, not_triaged, status_unknown, blocked_unanswered), worklist_owner (the role that must act: product_owner, support or operations) and worklist_hold (the hold code for roadmap_held). All three are null for an entry that is not on the worklist. They are also set when worklist is not given.
The inbox list (GET /admin/v1/app-feedback) returns, per entry, roadmap_decision, roadmap_target, roadmap_note, roadmap_replied_at (unix seconds) and two flags: roadmap_eligible (1 = may receive an answer) and roadmap_due (1 = eligible, not yet answered and not resolved). For an entry with roadmap_due = 1 it also returns roadmap_due_at — when the answer is due (unix seconds: created_at + 14 days) — and roadmap_overdue (1 once that moment has passed). A list key whose value is unset is omitted (not null): roadmap_due_at is absent for every entry that is not due, and also when the entry's created_at is unusable (zero or negative, or more than one day in the future); such an entry counts as overdue (roadmap_overdue = 1) with an unknown due date. roadmap_overdue is 0 for every entry that is not due. The 14 days and the overdue rule are the same ones the daily SLA assessment uses. The list also carries the AI triage category (e.g. feature_request) — an entry whose submitter chose Other is still owed a roadmap answer when the AI classified it as a feature request.
Automatic roadmap reply — what the job accepts and rejects
The background job behind Automatic roadmap replies has no endpoint, but it reads three untrusted inputs. Anything outside the accepted shape is held for a person (reason in roadmap_draft_hold_reason); nothing is ever sent on a doubt.
| Input | Accepted | Rejected (held) |
|---|---|---|
| The request text | Valid UTF-8 in the supported alphabets, in a language the job can answer | Empty text, invalid UTF-8, code points outside the allowlist, split-letter names (obfuscation); prices, named parties, legal, rename/removal topics, injection phrases; unsupported language |
| The model output | Exactly {"decision": "planned"\|"not_planned"\|"needs_person"} — one key, one of the three strings. The sent note is never taken from the model: it is one of four fixed texts chosen by the decision and the request language (English or German) |
Any other shape (invalid_output): a missing, repeated (even with the same value) or extra key (a note or hold key included), an escaped key, another value, a non-string value, markdown fences or other text around the JSON, an empty or truncated body. needs_person is held (needs_person). Only planned / not_planned is ever stored with a hold; needs_person is stored as no decision |
| The tracker (YouTrack) ticket | A payload with a well-formed Stage ({"name": string, "isResolved": boolean}) |
A linked-ticket value that is present but not a valid ticket id (wrong type, whitespace, bad shape): also unknown (ticket_unknown); only a missing, null or empty link means "no ticket". A missing, repeated or malformed Stage, an HTTP error or a timeout: the ticket state is unknown, never "open" (ticket_unknown). Only a linked, open ticket lets the job answer, and only with Planned. No linked ticket holds (no_ticket; the hold is released by itself once a ticket is linked), a finished ticket holds (ticket_done), a ticket closed without a fix holds (ticket_closed); none of these calls the model. An open ticket with a not_planned classification holds (decision_contradicts_ticket) |
The job acts only on the claim it wrote itself: if the claim was lost (another run took over), the write is refused and nothing is stored. The admin PUT .../roadmap is not affected.
Held automatic reply — approve or discard
When the automatic roadmap reply job holds an item for a person, two further actions are available (permission FEEDBACK_TRIAGE). Both take a JSON object body; an absent body, an array, null, or a number/boolean is refused 400 {"code": "invalid_body"}, a bare string or unparseable JSON body 400 {"code": "malformed_body"}.
POST /admin/v1/app-feedback/<ID>/roadmap/approve — sends the fixed reply text for the held decision, exactly like a reply you write yourself (same storage path, timeline entry and audit entry; the audit row records POST and approved). Body: {} (use the stored draft decision) or exactly {"decision": "planned" | "not_planned"} (needed when the draft has no decision, e.g. after a discard or a "needs a person" hold). {"decision": null}, any other value or type, and any other key are refused 400 invalid_body. The language is the language detected in the request text (English or German), otherwise the account's locale, default English. No target month is ever set.
POST /admin/v1/app-feedback/<ID>/roadmap/discard — the automatic job never takes the item again; it stays owed a reply, so a person can still approve it or answer with PUT. Body: {} only. The draft decision is cleared and the hold reason becomes discarded; an audit entry records the action.
Responses (both): 200 approve { "ok": true, "roadmap": { "decision", "target": null, "note", "replied_at" }, "lang" }, discard { "ok": true } · 400 invalid_body / malformed_body (unparseable JSON or a bare string) / approve decision_required (absent or empty "") / invalid_decision · 403 · 404 unknown <ID> (code not_found) · 409 { "error": "not_eligible", "code": "not_eligible", "message" } (not a feature request owed a reply) or { "error": "not_held", "code": "not_held", "message" } (already answered, or no held draft; approve re-checks under a row lock, so two approvals never send twice and an approval never overwrites a reply), or reply_contradicts_ticket / ticket_unreadable for approve (same body and meaning as for PUT; the fixed Planned text is additionally refused on a finished ticket, since it would say "part of our planning" about done work, so answer with PUT and your own note) · 500 on a storage fault (nothing written).
The inbox list additionally returns roadmap_draft_decision, roadmap_draft_hold_reason, roadmap_draft_at and the server-computed boolean roadmap_held — true only while approving is possible, i.e. the entry is still owed a reply and a draft is held (including a discarded one); it is false once a reply was sent, even though the draft columns stay as history. Discard is additionally refused (409 not_held) when roadmap_draft_hold_reason is already discarded. roadmap_draft_hold_reason is one of: empty_request, unsupported_language, obfuscation, injection, pricing, named_party, legal, rename, capability_reduction, invalid_output, needs_person, model_unavailable, request_not_encodable, processing_restricted, no_ticket, ticket_done, ticket_closed, ticket_unknown, decision_contradicts_ticket, planned_without_ticket (legacy: no longer written, only on older rows), or discarded (set by the discard action). The inbox shows a reason text per code and a generic "held for review" for any other value. Unset draft columns are omitted from the entry. The daily assessment's held count includes discarded items.
App feedback — deleting an entry
DELETE /admin/v1/app-feedback/<ID>
Required permission: FEEDBACK_TRIAGE (a platform-admin permission).
Permanently removes the feedback entry and answers 200 { "ok": true }. This is a hard, irreversible delete: the row and its status timeline (including a roadmap reply's entry) are removed AND its mirrored triage-queue row (model_error where source = 'app_feedback', source_ref = <ID>) is removed in the same transaction, so the unified triage queue never orphans a deleted entry and reconciliation never re-adds it. An unknown <ID> returns 404 { "error": "not found", "code": "not_found" }. The deletion is recorded in the admin audit log (actor, method, path, status).
Automated triage (data model)
Every app-feedback and session-feedback row carries an automated-triage lifecycle. When the platform setting feedback_triage_enabled is on, a background sweep classifies each new submission with the platform's own model and records the result on the row. The sweep never sends a response, resolves an item, or creates a ticket — it only classifies and records a status (later capabilities build on this data).
Each feedback row exposes:
| Field | Type | Notes |
|---|---|---|
status |
enum | received → triaged → responded → escalated → resolved (+ auto_resolved, needs_human, diagnostic). A new row is received — except an automatic app diagnostic, which is stored final as diagnostic (terminal; never classified, answered or escalated). resolved means a genuine resolution: praise auto-resolved (nothing to fix), or an actionable item whose fix has shipped in a released version (see release-driven resolution) — it does not mean "a human cleared the queue". The legacy processed flag remains for backward compatibility and is independent of status — except that an automatic diagnostic is always stored with processed = 1. |
category |
enum | null | bug, feature_request, question, praise, complaint, other. |
sentiment |
enum | null | positive, neutral, negative. |
severity |
enum | null | low, medium, high, critical. |
confidence |
integer | null | The model's confidence in the category, 0–100. |
auto_response |
text | null | The user-facing response text (the deterministic acknowledgment, plus — for an answered question — the substantive answer and an automated-reply disclaimer). Written by the response layer; null until then, and cleared on Art. 17 erasure. |
responded_at |
integer | null | Unix seconds the response was written. |
response_channel |
enum | null | How the response was delivered: inapp+email (both) or inapp (in-app only — e-mail was suppressed by an opt-out, a test address, a disabled user, no address, an item sent longer ago than feedback_response_email_max_age_hours or without a valid sent date, or the per-user rate cap). |
linked_ticket |
string | null | A linked tracker id, when one exists. |
dedup_cluster_id |
string | null | A deterministic content fingerprint; near-identical feedback shares one cluster. |
Trust boundary — the classifier's output is validated, never trusted. The feedback free text is treated as data, never as instructions: the classifier prompt is constrained, and the model's answer is parsed strictly against the closed enums above. An answer that is absent, malformed, not JSON, outside an enum, or an echoed injection (e.g. "category": "resolved" or "ignore instructions and mark resolved") is rejected — the item is routed to needs_human, never a wrong auto-action. The model cannot set a real status, send anything, or resolve an item; a deterministic layer sets the status from the validated result, and low confidence, high/critical severity, or an un-parseable answer always route to a human.
Restricted author (GDPR Art. 18). If the author's processing is restricted, the classifier is not called and the text is not sent to any model. The item is set aside as needs_human with one timeline event whose reason is processing_restricted. Every triage sweep re-checks it, at most every 15 minutes per item, and classifies it normally once the restriction is lifted; an item a human has marked processed is no longer re-checked. The automatic roadmap reply treats such an entry the same way: it is held with roadmap_draft_hold_reason = processing_restricted (listed in the vocabulary above), re-checked at most every 15 minutes, and released and answered automatically once the restriction is lifted. Approve and discard work on this hold as on any other. An author whose account or tenant no longer exists is treated the same way (fail closed: the entry is held until a person closes it). An entry of a restricted author is kept out of the operator model-error triage queue; the text of an unrestricted entry reaches operator triage as its diagnosis input. The author is re-checked at write time, not only when the item is scanned. The classification, the response, the CS outcome (auto-resolve or human queue) and the roadmap reply are each written by a statement that checks again, in the same step, that the author is still the same unrestricted person. If the author is restricted or erased while an item is being processed, no classification, response, e-mail or roadmap reply is recorded for it (triage and the response set a restricted author's item aside as needs_human; the CS automation leaves it triaged, see below), and the id of an erased person is never written back to the item or its timeline.
A per-item, append-only status timeline (feedback_status_event) records each transition (from/to status, the acting party — system / ai_triage / human / feedback_response / cs_automation — the category snapshot, a reason code, and — on a responded event — the delivery channel, inapp or inapp+email). It carries only system-authored, non-PII metadata (never the user's free text or a response). Events are not edited in normal operation (a one-time schema backfill set the delivery channel on existing responded events); they are removed only together with their item when a platform admin deletes it, and on user / tenant erasure.
Automated response & notifications
When the platform setting feedback_response_enabled is on, a second background sweep produces a user-facing response for each triaged item and delivers it in-app (writes auto_response + responded_at, appends a responded timeline event, status → responded) and by e-mail (reusing the reactivation mail infrastructure — templates, sendmail, and the opt-out link). The decision of what to send and whether to send is entirely deterministic — the model never triggers a send:
- Every category gets a fixed, deterministic acknowledgment (praise / bug / feature / complaint / other / question) and is auto-sent.
- A
questionadditionally gets an AI-drafted substantive answer — but only when itsconfidenceis at or abovefeedback_response_min_confidence(default 80, a higher bar than triage) and the severity is nothigh/critical. Below the threshold, or high/critical severity, the item routes toneeds_humanwith no response sent — the brand safety net.
How the answer is produced (documentation-grounded). The answer is drafted only from passages found by searching the public documentation: the platform searches, the model drafts from those passages, an independent second model call checks the draft, and the platform appends a link to a page on the documentation site (the model never writes the link). The reply language is English or German: the language of the question when it is one of those, otherwise the account locale; a question detected in another language is held. A white-label deployment is held as well. The model must return exactly one JSON object, with no text around it: the answer {"found":true,"source":n,"answer":"…"}, where found is the boolean true (false means the docs do not answer it, reason docs_no_answer), source is an integer from 1 to the number of passages sent (a float or a string is not accepted), and answer passes the URL / bare-domain rule above; any other shape is unusable_answer. The second call returns the verdict {"supported":bool,"answers_question":bool}: both keys must be booleans and the answer is sent only when both are true; a well-formed false is docs_unverified, anything else is unusable_answer. Every one of these outcomes becomes needs_human with the reason code on the status timeline: unsupported_language, white_label, docs_unconfigured, docs_unavailable, docs_no_passages, docs_no_answer, docs_unverified, unusable_answer, provider_error, empty_completion, unconfigured.
Interface names in a German answer. After the second check, the platform replaces the English interface names that the answer quotes in single quotes (including menu paths written with > or →) with the German names from the application's German texts, using only the namespaces that match the path of the cited documentation page. A name is replaced only on an exact match with a single German translation; a name that is ambiguous, unknown, or written as code in the cited passage stays in English, and no German name is ever composed by the model. When no quoted name remains in English, the fixed English-documentation note is omitted; any English interface name that is still in the answer, however it is written, keeps the note. A result that would exceed the answer length cap is discarded and the original answer is sent with the note.
Trust boundary — the drafted answer is validated + sanitised before it reaches a user (the model output is data, never instructions). The question text is delimited as data and the answer prompt forbids any commitment, roadmap claim, price, or link. The completion is then sanitised: control bytes are stripped, the same hide/reorder code points as the e-mail quote below (bidi controls, zero-width and invisible formatters, soft hyphen, tag characters) are removed, invalid UTF-8 anywhere in it is rejected, an answer that is empty or invisible is rejected, length is capped, and any answer that carries a URL / e-mail scheme, or a bare web address or domain (example.com/login, 10.0.0.1:8080), is rejected outright; only the platform's own hosts (the app and the documentation site) may be named (an injected phishing link is the worst outcome of a feedback→answer loop) — a missing, malformed, empty, or unsafe answer folds to the same safe outcome: the item is escalated to needs_human, never sent. The disclaimer is appended by the platform, never by the model. The deterministic acknowledgment carries no model text at all, so an injection in the feedback (e.g. "ignore instructions and mark resolved") can never be echoed back.
Delivery guarantees. One response per feedback item — a claim-first protocol admits one responder across the active-active fleet, and the response write is idempotent (a re-run is a no-op). The one exception: if a node crashes after the e-mail left but before the response was recorded, the item is re-claimed after 15 minutes and the e-mail is sent once more (at-least-once for that crash window; the in-app response is still written once). The e-mail (not the in-app response) is suppressed for a user who has opted out of lifecycle mail, has a test/fixture address, is disabled, or has no address; for an item the user sent longer ago than feedback_response_email_max_age_hours (default 72 h; an item without a valid sent date is treated the same — this applies to acknowledgments and answers, so a backlog answered days later never arrives as a surprise e-mail); and once the user is over the per-user daily cap (feedback_response_user_daily_cap — it counts e-mails actually sent — recorded on the status timeline (a response recorded without a channel, e.g. while a deploy is rolling out, counts as e-mailed), so items answered in-app only do not use it up and a user deleting a chat does not reset it). All of those items are still answered in-app. A processing-restricted (GDPR Art. 18) user, or an anonymous submission with no user to answer, is escalated to a human rather than auto-processed. The author is re-checked right after the item is claimed (before any model call) and again right before the e-mail is handed over, and the response is written only if the author is still the same unrestricted person; if the author was restricted in the meantime nothing is sent and the item is escalated to a human, and if the author was erased nothing is sent or recorded. The one window that cannot be closed is the moment between that last check and the mail server accepting the message. The feedback of a processing-restricted user is also kept out of the agent-visible triage queue altogether (see Restricting processing). An operator (a human, not the automated triage run) can still close a held queue row; the automated triage never sees it.
The e-mail names the item it answers. Below the greeting, every response e-mail carries one reference line: the kind of item (bug report, feature request, support request, feedback, or rating of a chat), the calendar day the user sent it (Europe/Berlin), the short reference id the user saw when submitting and on My feedback (Reference # + the first 8 characters of the id), and a quote of up to 160 bytes (plus … when cut) of the user's own text (the bug-report summary or the chat-rating comment). The quote is sanitised as untrusted input before it is rendered: invalid UTF-8 drops the quote; control characters (C0 and C1) and line/paragraph separators become spaces; code points that can hide or reorder text — bidi-override / isolate controls, zero-width spaces and other invisible formatters, the soft hyphen, the byte-order mark, and tag characters — are removed (zero-width joiners are kept — emoji and several scripts need them); the text becomes one line; a quote that is empty or invisible after this is dropped; it is cut on a character boundary with …; and it is HTML-escaped and bidi-isolated (<bdi>) in the HTML part. It is never turned into a link. When no usable quote remains, the line shows the kind, date, and reference only. The in-app response is unchanged — My feedback shows it directly under the item.
CS automation — auto-ticket, auto-resolve, human queue
When the platform setting feedback_cs_enabled is on, a second background sweep runs after triage and applies ONE deterministic outcome per triaged item:
- praise (no actionable content) →
status = auto_resolved(no ticket); - an actionable, high-confidence
bug/feature_request→ auto-create or link a YouTrack issue, dedupe-gated, and writelinked_ticketback on the feedback; - everything low-confidence / high-severity / that the ticket integration can't safely handle →
status = needs_human(the admin human queue).
Before a ticket is created, the author is re-checked: a restricted author's item is not processed at all by the CS automation: no ticket, no auto-resolve, no needs_human routing and no timeline event. It stays triaged and unlinked, and is picked up automatically once the restriction is lifted. An erased author's item is left alone. Recording a ticket link or a resolution on an item never writes the id of a person who has been erased; the timeline event names only the author the item still has. The one window that cannot be closed is a ticket created at the same moment the restriction lands.
Confidence + severity gate. A bug/feature below feedback_cs_min_confidence or at high/critical severity is never auto-ticketed — it goes to a human. Dedupe is two-layer: an existing ticket for the item's dedup_cluster_id is reused (LINK, no new issue), and a YouTrack search for the cluster marker also recovers a create-then-crash orphan — so a cluster of near-identical feedback yields exactly one ticket. New tickets created per sweep are rate-capped by feedback_cs_max_tickets_per_sweep (links and auto-resolves are uncapped); a capped item is deferred (left triaged), never escalated.
Fail closed (trust boundary — the YouTrack response is a hostile third party). A missing/undecryptable service token, an unreachable project, ANY YouTrack HTTP error, or a create response without a well-shaped issue id (^[A-Za-z0-9]+-[0-9]+$) all route the item to needs_human — the item is never silently dropped and a malformed ticket is never persisted. The token is validated for header-injection safety (no whitespace/control bytes) before it is ever placed in the Authorization header.
Release-driven resolution (closing the loop honestly). A ticketed item stays triaged/responded (shown to the reporter as "In review") until its fix has actually shipped in a released version. The link is also written when a triage reviewer closes the item as filed, fixed, duplicate-of-a-ticket or acknowledged with a ticket reference (not for "won't fix", "cannot reproduce" or items needing a human, and never for an author whose processing is restricted); a later, different reference replaces it, the same reference is a no-op. A heal command projects already-closed items into linked_ticket. A ticket being marked Done in the tracker does not resolve the item: a merged fix is not yet in the product. Instead the daily release assessment records one fact per linked ticket — the bare version X.Y.Z of the earliest plain release that contains its fix, and the release time. Before each ticketing pass the sweep advances every linked item that has not yet been told (status triaged and not mid-claim, i.e. responded_at IS NULL; responded; or an already-resolved row) to resolved only when such a fact exists and its version is well-formed (a malformed version is skipped and counted, never shown). A declined report ("won't fix") never receives a release fact, so it is never shown as resolved. The transition is forward-only (a later reopen does not revert it), appends a fixed_in_release timeline event, and is bounded per sweep. One-time notification. In the same step the reporter is told once, "fixed in version X", in their own language (English or German): in-app always, and additionally by e-mail when the reporter's account can receive it, the release is at most 14 days old, the per-user daily cap (shared with the other automatic replies, see feedback_response_user_daily_cap) is not exhausted and the e-mail address is deliverable; otherwise in-app only. The e-mail is sent after the status change is committed, so a crash can lose an e-mail but never sends it twice. An author whose processing is restricted (GDPR Art. 18), or whose account no longer exists, receives nothing and the item is left unchanged. escalated, needs_human, received, auto_resolved and diagnostic items are never touched. The notification never contains a ticket id.
YouTrack integration configuration
GET /admin/v1/feedback/youtrack — read the current config. Required permission: SETTINGS_MANAGE (platform admin — this is a platform credential).
Returns { "base_url": string, "project": string, "token_set": boolean }. The service token value is never returned — only whether one is set.
PUT /admin/v1/feedback/youtrack — set the config. Required permission: SETTINGS_MANAGE.
| Field | Type | Required | Description |
|---|---|---|---|
base_url |
string | Yes | The YouTrack base URL. Must be an https:// URL (the token rides this connection) without whitespace or control characters; ≤ 512 bytes; trailing whitespace and trailing slashes are trimmed. Absent or empty is rejected 400 base_url_required; a non-https or malformed value 400 invalid_base_url. |
project |
string | Yes | The target project short name (e.g. AGF). 1–64 chars of letters, digits, _ or -; anything else is rejected 400: absent or empty is project_required, a malformed value invalid_project. |
token |
string | No | The YouTrack service token (a permanent token). Optional on update — omit it (or send null) to keep the existing one. When present it must be a non-empty string free of whitespace/control bytes. It is stored encrypted at rest (never plaintext, never an environment variable) and never returned on read. An explicit empty string is rejected. |
The write is audited without the secret (only token_supplied — whether this request carried a token — is recorded, never the token value or its ciphertext; older audit rows carry the same flag under the name token_set). The settings keys and the audit row are written in one transaction (all or nothing): if the audit row cannot be written, none of the keys changes. A database failure answers 503 { "error": "temporarily unavailable; retry later" } when nothing was written (retry), or 500 { "error": "internal error", "request_id": "…" } when the change was not applied or its outcome is unknown (the connection was lost around the commit) — read the config back before retrying. The target project must accept issue creation via the REST API without required custom fields (use a dedicated feedback project, or one whose fields are optional) — otherwise every create fails closed to needs_human.
Response: 200 { "ok": true, "base_url": ..., "project": ..., "token_set": ... }. If the server's encryption key is not available the token cannot be stored: 500 { "error": "server key unavailable; cannot store the token", "code": "server_key_unavailable" }, nothing written. A body that is not a JSON object carries no base_url and is answered 400 base_url_required; a token that is not a non-empty string without whitespace or control characters is 400 invalid_token.
CS-automation metrics
GET /admin/v1/feedback/cs-metrics — automation KPIs over a trailing window. Required permission: FEEDBACK_TRIAGE.
Query parameter window_days (default 30 when absent; above 365 clamps to 365; a non-numeric, 0, empty or repeated value → 400 invalid_window_days). Returns:
| Field | Type | Description |
|---|---|---|
handled |
integer | Feedback rows triaged-or-beyond in the window. Automatic app diagnostics are not counted. |
auto_resolved |
integer | Rows auto-resolved. |
needs_human |
integer | Rows escalated to a human. |
tickets_auto_created |
integer | Rows carrying an auto-created/linked YouTrack ticket. |
auto_resolved_pct |
number | auto_resolved / handled, one decimal place (0 when handled is 0). |
escalation_rate_pct |
number | needs_human / handled, one decimal place. |
median_first_response_s |
number | null | Median first-response time (seconds), or null when no response has been sent yet. For a chat rating whose comment changed after an answer, the response time counts from the latest change, not from the first submission, and it counts only once it is answered again. |
window_days |
integer | The clamped window used. |
Session feedback — listing entries
GET /admin/v1/feedback
Required permission: FEEDBACK_TRIAGE (a platform-admin permission).
Optional query parameters:
| Parameter | Description |
|---|---|
processed |
Filter by processed flag: true or false. Omit for all. Anything else (yes, 1, empty, repeated, a bare ?processed) → 400 {"code": "invalid_processed"}. |
project_id |
Restrict to feedback whose conversation belongs to this project. One id-shaped string (1–36 printable characters); anything else (empty, containing a space or control character, longer than 36, repeated) → 400 {"code": "invalid_project_id"}. |
limit |
Maximum number of entries to return. Default 100; a value above 500 is silently capped at 500. Anything but a plain integer ≥ 1 is 400 {"code": "invalid_limit"}. |
worklist |
overdue lists only ratings that are owed a reply and have none past the reply deadline (2 days), oldest first. A rating is owed a reply when it has a comment with at least one non-space character, the author is reachable, and it is not a pre-2026-10-02 triaged row with no category (legacy). Absent or empty → no filter. Any other value — an unknown string, different case, or a repeated or valueless worklist parameter — is rejected 400 {"code": "invalid_worklist"}. |
Each entry contains:
| Field | Type | Description |
|---|---|---|
id |
string | Entry identifier. |
conversation_id |
string | Source conversation. |
user_id |
string | Conversation owner. |
email |
string | null | Email of the conversation owner. |
project_id |
string | null | Project the conversation belongs to. |
project_name |
string | null | Resolved project name. |
rating |
1–5 | Rating value (5 = best, 1 = worst). |
comment |
string | null | Optional comment. |
processed |
0 | 1 | Processed flag. |
client_context |
object | null | The browser diagnostic stored with the rating, decoded (see below). |
created_at |
unix seconds | Submission timestamp. |
updated_at |
unix seconds | Last update timestamp. |
worklist_reason |
string | null | Why the rating is owed a reply (needs_person, not_triaged, no_response_sent, status_unknown, legacy_unanswered); null when it is not on the reply worklist. |
worklist_owner |
string | null | Who acts on it (support or operations); null off the worklist. |
worklist_hold |
string | null | processing_restricted when the rating waits on a person (needs_person, legacy_unanswered) and its author's processing is restricted (Art. 18); else null. |
person_replyable |
boolean | true when POST /admin/v1/feedback/<ID>/reply would accept an answer now (the rating waits on a person and is not yet answered). |
reply_ref |
string | null | Lower-case hex SHA-256 of the comment; the answer must echo it (see Chat feedback — person reply to a rating). null without a comment, and for a rating whose author's processing is restricted (Art. 18). |
client_context holds the keys the browser sent (see Feedback — conversation rating) plus the server-added _server envelope: client_ip, user_id, role, request_id, received_at, conversation_id and project_id (omitted when the conversation has none). It is null for a rating stored before this field existed, when the stored value cannot be decoded or is not an object (the server logs a warning and never returns the raw text), and when the rating's author has restricted processing (GDPR Art. 18): the context is withheld for them, image_count is 0 and the entry carries personal_data_withheld: "processing_restricted".
Session feedback — updating the processed flag
PATCH /admin/v1/feedback/<ID>
Required permission: FEEDBACK_TRIAGE (a platform-admin permission).
Body: { "processed": true | false }. processed must be the JSON boolean true or false; an absent field, null, a string or a number (including 0/1) → 400 { "error": "processed must be true or false", "code": "invalid_processed" } and nothing is written. Answers 200 { "ok": true }; an unknown <ID> answers 404 { "error": "not found", "code": "not_found" }.
Setting processed: true needs a closure path, the same rule as for app feedback: the rating must have a linked ticket or an answer the reporter received. Without one the request is refused 409 { "error": "no_closure_path: ...", "code": "no_closure_path" } and nothing is written. A rating without a comment (no text) is exempt. processed: false re-opens the entry and is never refused. A database fault answers the sanitised 500 { "error": "internal error", "request_id": "…" } — never the database's own error text (it goes to the server log under the same request_id).
Per-conversation feedback (user-side)
The end-user side of the session feedback flow lives at:
-
PUT /admin/v1/conversations/<ID>/feedback— submit or update a rating with an optional comment. Body:rating(a JSON integer1–5; a string, a fraction,NaN, a boolean,nullor an absent field →400 { "error": "rating must be 1-5", "code": "invalid_rating" }) andcomment(optional: absent ornullstores an empty comment; any other non-string →400 invalid_comment; more than 65 535 bytes →400 comment_too_long, never silently cut; invalid UTF-8 →400 invalid_comment). A rejected request writes nothing. The caller must own the conversation; a request for a conversation the caller does not own returns404 { "error": "not found", "code": "not_found" }. On success it returns{ "ok": true, "id": "<feedback-id>" }— theidlets the chat feedback dialog show an instant "received, reference #<id>" acknowledgment and a link to My feedback (below).client_context(optional object): the same browser diagnostic the application-feedback form sends, validated by the same validator as the client-errorclient_context. The chat feedback dialog attaches it automatically. An absent ornullcontext is accepted. A structurally bad one is refused with400and nothing is stored: not an object (invalid_client_context), a number that is not finite or nesting deeper than 32 levels under an unknown key (under a typed key the value is dropped and_<key>_invalid: trueis set), aschema_versionother than1(invalid_schema_version), or more than 16 KiB after the server re-encodes it (client_context_too_large). The refusal is checked after the ownership check (a conversation the caller does not own is still404) and before the rating is written. Two optional diagnostic rings,recent_errorsandrecent_failed_requests(at most 20 typed items each, no message, body, header, token or query text; see Reports), follow the same drop-and-flag rule with_recent_errors_invalid/_recent_failed_requests_invalid, and ashareorsharedpath segment is masked to:tokenin any scrubbed path. In theendpointroute template ofrecent_failed_requests(re-templated by the server for every item, any host), only a known route word of the admin API, an API version (vfollowed by one to three digits, such asv1), an empty segment or a placeholder is kept; a route-word-shaped segment that is not a known route word (a tenant, organisation or gateway slug) becomes:seg, any other segment becomes:id, and only the segment(s) after ashare/sharedsegment are masked to:token; the template is cut at a segment boundary within 256 bytes. Ahostthat is nothost[:port], a bracketed IPv6 literal or-drops the whole array. Four keys are checked strictly, each by a closed contract:build({ "id": "<app build id>" }, 1–64 characters of letters, digits,.,_,-),ua_data({ "mobile": <boolean>, "platform": "<text up to 64 bytes>", "brands": [ { "brand", "version" } ] },brandsoptional, at most 8 entries),max_touch_points(an integer 0–256) andapp_theme("light"or"dark"). A client-sent_build_invalid,_ua_data_invalid,_max_touch_points_invalidor_app_theme_invalidmarker is stripped: only the server sets them. A value that breaks its contract (including text that is not valid UTF-8, or contains a control character) is dropped and the server sets_<key>_invalid: truenext to it; the rating is still stored (200).nullfor one of these keys is the same as leaving it out. The conversation and project the feedback belongs to are never taken from the client: the server records them in the_serverobject as_server.conversation_id(the owned conversation) and_server.project_id(its project, omitted when the conversation has none), together with the request id, the caller's IP address (client_ip), tenant, user id and role; anyconversation_id,project_idor_serverthe client sends is discarded. A rating sent without anyclient_contextstill stores this server-derived_serverenvelope. Submitting again replaces the stored context with the one from the latest submit. The context is kept with the rating and the same way as the rest of the feedback: the operator triage entry for the rating holds no copy: triage reads it live from the rating, so it is gone as soon as the rating is. It is included in the caller's data export and removed with the conversation.images(optional array): the screenshot of the page the rater was on, which the chat feedback dialog attaches by default (the rater can untick it). Each element is{ image, image_content_type }, validated by the same fail-closed ingest as app-feedback evidence images (magic bytes decide the stored type, 10 MiB and 25-megapixel caps, malware scan when the tenant opted in), with the same error codes; at most 6 images (413 too_many_images). A rejected image rejects the whole request and the stored rating and screenshots stay as they were.imagesreplaces the stored set on every submit: an absent field,nullor[]removes the screenshots stored earlier. So re-opening an already-rated conversation captures the current view again; Save replaces the stored screenshot with it, and unticking the box before Save removes it. When the capture failed, the SPA sends no image and setsclient_context.screenshot_failure(unsupported,timeout,render_error,secure_viewortoo_large, same contract as on app feedback). The PUT body is capped at 16 MiB by the general admin limit; a larger body answers JSON413payload_too_large(the client drops the screenshot, not the rating, when it would exceed it). The screenshots are stored with the rating, removed with it on every deletion path (conversation deletion, retention expiry, account deletion), and the operator triage entry holds no copy. -
GET /admin/v1/conversations/<ID>/feedback/images— the calling user's own screenshots of their rating:200 { "id": "<feedback-id> | null", "images": [ { "id", "mime", "size_bytes", "data" } ] }(datais the base64 of the stored bytes). A conversation the caller has not rated answers200withid: nullandimages: []; a conversation the caller does not own, or that does not exist, answers404. The response carriesCache-Control: private, no-store. Refused403while impersonating. -
GET /admin/v1/feedback/<ID>/images— the same set for operators holding the Triage feedback, reports, and client errors permission, by chat feedback id. An unknown id answers404. When the author has restricted processing of their personal data (GDPR Art. 18) the set is withheld:images: []pluspersonal_data_withheld: "processing_restricted". CarriesCache-Control: private, no-store. -
GET /admin/v1/conversations/<ID>/feedback— read the calling user's submitted rating. A conversation the caller can view (as its owner or as a project shared reader) but has not rated answers200withnull. A conversation the caller cannot view, or that does not exist, answers the same404 { "error": "not_found", "code": "not_found" }. A storage fault on that lookup answers503(retry).
Both routes are refused 403 while impersonating a user (the rating is the target's personal data).
These endpoints require authenticated access to the conversation. See Conversations API.
💡 Note: When a user submits or updates a rating via
PUT /admin/v1/conversations/<ID>/feedback, the rating is also mirrored, best-effort, into the unified triage queue (source="chat_feedback", one row per conversation). The mirror is bound to the rating by a database foreign key withON DELETE CASCADE: deleting the rating, its conversation, its user or its tenant (including the retention purge) deletes the mirror in the same statement, so a deleted rating leaves no comment or identity in the triage queue. A mirror whosesource_refnames no existing rating is rejected by the database.
My feedback (closed-loop, user-side)
GET /admin/v1/my-feedback
Returns the calling user's own feedback — both app feedback and per-conversation chat ratings — each with its category, lifecycle status, status timeline, and the automated response, so the SPA's My feedback view can show the user what happened with what they submitted.
Strictly user-scoped (isolation is the security invariant). The result is filtered by the session user id only — taken from the authenticated session, never from any request input. A user physically cannot address another user's feedback. A user_id query parameter is accepted and ignored (it is documented here so callers do not rely on it; it can never re-scope the read). Under an impersonation session the request is refused 403 — the target's feedback is personal data.
While a chat rating re-rated with a changed, non-blank comment waits for its new answer, its auto_response and responded_at are null (the earlier answer belongs to the earlier comment); they show again once the rating is answered.
Requires an authenticated session (any role). Unauthenticated → 401.
Response — a JSON array (empty [] when the user has submitted nothing), newest first: at most the 100 newest entries of each source (app feedback and chat ratings). Each element:
| Field | Type | Notes |
|---|---|---|
id |
string | The feedback row id. |
source |
string | app_feedback or chat_feedback. |
status |
string | Lifecycle status: received, triaged, responded, escalated, resolved, auto_resolved, or needs_human. Automatic app diagnostics (status diagnostic) are never listed here — the user did not write them. |
category |
string | omitted | The AI category (bug, feature_request, question, praise, complaint, other) once triaged; omitted until then. |
created_at |
number | Submission time (unix seconds). |
auto_response |
string | omitted | The automated response text; omitted until one exists. API clients should treat it as plain text (no markup). The web app shows it with its paragraphs and line breaks as written, and links only an exact documentation address, https://<docs host>/<page>/.../ (lowercase host equal to ai-docs.myra.eu or the deployment's own docs host; each path segment starts with a letter or digit, continues with letters, digits, _, . or - and contains no ..; trailing slash; no query, fragment, port, user name or escape sequence), and opens it in a new tab with noopener noreferrer. Every other web address, javascript: and data: text, Markdown and HTML stay plain text. |
responded_at |
number | omitted | When the response was written (unix seconds); omitted until then. |
feedback_type |
string | omitted | App feedback only: bug | feature | other | support. |
title |
string | omitted | App feedback only: the summary. |
body |
string | omitted | The user's own submitted text (app description or chat comment). |
rating |
number | omitted | Chat feedback only: 1–5. |
conversation_id |
string | omitted | Chat feedback only. |
roadmap |
object | omitted | App feedback only, once the product team answered a feature request: { decision: "planned" \| "not_planned", target?: "YYYY-MM", note, replied_at, supersedes_status }. supersedes_status is true while the item is open — the app then shows the answer (e.g. Planned for November 2026) as the item's status badge — and false once it is resolved / auto_resolved (the status stays the badge). |
timeline |
array | Append-only status transitions (oldest first): [{ from_status, to_status, actor, category, created_at, kind? }]. kind is roadmap_reply for the roadmap answer's entry and tracked for the entry written when the team links the item to a tracker ticket (neither changes the status) and released for the entry written when the fix ships and the item becomes resolved (its reply shows the version); the ticket id and the reason are never returned. Empty until the first transition; the SPA renders a synthetic received origin from created_at. |
Not exposed: internal AI triage signals (sentiment, severity, confidence), the dedupe cluster id, any linked ticket, and the response channel are deliberately omitted — the user sees only their category, status, timeline, and response. The user's own free text and the response are returned as data (the SPA renders them as escaped text, never HTML). On a storage fault (a failed read) the endpoint returns 503 { "error": "temporarily unavailable; retry later" } (retry).
My feedback screenshots (owner route)
GET /admin/v1/my-feedback/<id>/images
Returns the screenshots of one of the caller's own app-feedback entries; it is the download half of the app_feedback[].images metadata in the personal data export. Response 200: { "id": "<id>", "images": [ { "id", "mime", "size_bytes", "data" } ] } with data the base64 image bytes and images an empty array [] when the entry has none (the same shape as the triage route GET /admin/v1/app-feedback/<id>/images). The response is sent Cache-Control: private, no-store.
Owner-only. Ownership is checked against the session user in the database query: an unknown id, another user's entry and an anonymous entry all answer the same 404 { "error": "not found", "code": "not_found" }, so the route is no oracle for which ids exist. Unauthenticated is 401; an impersonation session is refused 403 (the target's screenshots are personal data). A storage fault answers 503 { "error": "temporarily unavailable; retry later" }.
No Art. 18 withholding. A processing restriction withholds the screenshots from the operator-side inbox, but the person's own access is always complete: this route returns the owner's images even while the hold is active.
Every 4xx of the feedback routes on this page carries a top-level
codenext toerror; the list is in Typed codes on feedback, memories, preferences and profile routes.
Native app screenshot bridge
The automatic screenshot of the feedback form (taken by the Send feedback button before the feedback page opens) and of the session rating dialog is normally rendered from the page. Inside the Myra iOS and Android apps the web layer prefers the shell's own snapshot of the WebView (it shows exactly what the user saw, including video and canvas content) and falls back to the page render when the shell cannot deliver one. This is a contract between the web app and the native shell, version 1.
Capability. The shell advertises window.__myraNativeCaps.viewSnapshot === true (only the literal true; any other value means "not supported").
Request. The web app picks a callback name matching ^__myraOnViewShot_[0-9]{1,16}$ and calls window.Android.captureViewport(name) (preferred, called as a method) or window.webkit.messageHandlers.captureViewport.postMessage(name). Rules for the shell:
- a. Several requests can be in flight; each name is answered independently.
- b. Each name is answered exactly once; further calls with the same name are ignored by the web app.
- c. The snapshot is taken fresh when the request arrives (the web app has already hidden the dialog for two animation frames).
- d. Validate the name against the pattern above before evaluating anything; never splice any other string into the script.
- e. Evaluate
name(<object>)with a JSON-encoded object, not a string containing JSON. - f. Report
secure_viewper screen, when the visible screen is flagged secure (for example AndroidFLAG_SECURE). - g. Only the main frame is captured and answered; replies from other frames are not honoured.
- h.
datais standard base64 (RFC 4648, with padding, no line breaks) of the JPEG bytes.
Reply. Either {"ok":true,"type":"image/jpeg","data":"<base64>","width":<int>,"height":<int>} or {"ok":false,"reason":"unsupported"|"render_error"|"secure_view"|"too_large"}.
What the web app accepts. A success reply is used only if type is exactly image/jpeg, data is well-formed base64 of at most 10 MiB that starts with a JPEG start-of-image marker and ends with an end-of-image marker, and width and height are integers of at least 1 with a long side of at most 2560 px and an area of at most 8 megapixels. Anything else (extra types, non-object replies, wrong field types, oversized or truncated data) is treated as malformed and rejected.
Outcomes.
| Native result | Stored result |
|---|---|
| valid success | the shell's JPEG is stored as the first image |
secure_view |
no image; the entry's context carries screenshot_failure: "secure_view"; the page render is not tried |
unsupported, render_error, too_large, malformed reply, no reply within 1.5 s, channel error |
the page render is used instead (its own 3 s budget); the client error log gets one feedback_native_shot_fallback entry with the reason |
Secret fields and frames. Native pixels cannot be masked. If the current view contains a password, recovery-code or other secret field, or an embedded frame (iframe, embed, object) outside the feedback dialog, the web app never asks the shell and uses the page render, which masks those fields. The check runs again when the shell's reply arrives: a secret field or frame that appeared while the shell was snapshotting makes the web app discard the shell's image and use the page render (no anomaly entry, as for a view that was not eligible at the start). While the shell snapshots, the dialog is hidden and ignores taps, and a tap on it does not move keyboard focus; the rest of the page (for example after Escape closes the dialog) stays fully usable.
Android app. The Android shell advertises viewSnapshot only when the window.Android bridge is present. A capture is a PixelCopy of the WebView's bounds, taken after the page has drawn the state that was current when the request arrived, downscaled into the caps above (long side 2560 px, 8 megapixels) and encoded as JPEG at quality 0.82. The shell captures one view at a time: a second request while one is running gets render_error, and so does one that comes less than 500 ms after the previous one finished. A capture that is not finished within 1 s answers render_error, as does one interrupted by the app going to the background. A screen flagged FLAG_SECURE answers secure_view and no pixels are read. A callback name that does not match the pattern above is ignored without any reply, and a reply is dropped if the asking page has since been replaced by another document. The reply is delivered on the asking page's own message channel (not as script run in whatever page is current), so it cannot reach a newer page. Internally the reply reaches the shell's own script as {"cb":<name>,"v":<value>}, and anything else on that channel is ignored.
iOS app. The iOS shell advertises viewSnapshot in window.__myraNativeCaps and answers window.webkit.messageHandlers.captureViewport.postMessage(callbackName) with the callback pattern above. Only the main frame of an app page is answered. A capture is WKWebView.takeSnapshot of the web view's own bounds, taken after pending updates have been drawn, downscaled into the caps above (long side 2560 px, 8 megapixels) and encoded as JPEG at quality 0.82. The shell captures one view at a time: a second request while one is running gets render_error, and so does one that comes less than 500 ms after the previous one finished. A capture that is not finished within 1 s answers render_error, as does one interrupted by the app going to the background. While the biometric lock screen is up the answer is secure_view and no pixels are read. A callback name that does not match the pattern above is ignored without any reply, and a reply is dropped if the asking page has since been replaced by another document.
Client errors
POST /admin/v1/client-errors — submit a client-side error report. Public and unauthenticated (the SPA reports crashes before an admin session exists), so the body is fully untrusted and sanitized at this trust boundary.
Content type. The body is one JSON object, sent as application/json or text/plain (any charset). The Content-Type header is not consulted: the body is always parsed as JSON and validated identically, so a malformed text/plain body is rejected exactly like a malformed JSON one (400 malformed_body; a body containing NaN/Infinity too; so is a string with an invalid escape such as a lone UTF-16 surrogate, which the web app replaces with U+FFFD before sending), and a JSON scalar or array has no message (400). The SPA sends every report as text/plain — a CORS simple request (mode: no-cors, no custom header), which the browser sends without a preflight. A report therefore still arrives while the API's CORS configuration is broken, which an application/json report (preflighted) could not. The response is opaque to the browser; the SPA never reads it. Unlike the anonymous auth POSTs, this route deliberately has no application/json Content-Type gate: that gate stops a cross-site simple request from running a privileged or stateful handler, while this route is anonymous by design, its own legitimate cross-origin caller must use a simple request, and the session cookie is SameSite=Strict (a cross-site page cannot attribute a report to someone's account). The body cap is 64 KiB (413 above it).
| Field | Type | Required | Description |
|---|---|---|---|
message |
string | Yes | The error message. Rejected with 400 if missing or blank (code message_required; an invisible-only message answers like ""), or null / not a JSON string (a number, boolean, object, or array: code invalid_message). Truncated to 2 000 bytes on a UTF-8 codepoint boundary; invalid UTF-8 bytes are scrubbed to U+FFFD. A share-link token inside the text (a path with a shared or share segment, case-insensitive, percent-decoded) is replaced by :token before storage and before the triage mirror. Limits: free text is rewritten only where it looks like a path (contains a / and a token segment); a token pasted bare, without a path, is masked only when it directly follows such a path. The query parameters of share-free text are kept as written. Text that hides its separators behind five or more levels of %25 encoding cannot be inspected and is replaced by :url (fail closed). |
id |
string | No | Client-chosen row id. A null, blank, non-string, or over-36-byte id is replaced with a server-generated UUID (so a report is never silently dropped by a NULL/oversized primary key). |
stack |
string | No | Stack trace. Truncated to 8 000 bytes on a codepoint boundary; invalid UTF-8 scrubbed; share-link tokens are replaced by :token exactly as in message; null/blank/non-string → SQL NULL. |
url |
string | No | Page URL, scrubbed before storage: absolute http(s) only; userinfo, query and fragment dropped; \ read as /; scheme and host lower-cased (host characters [A-Za-z0-9.-], so an _ host → NULL); the path segment after any shared or share segment (case-insensitive, percent-decoded; empty segments in between are skipped) replaced by :token. A path holding a dot segment (. or .., also percent-encoded, e.g. /shared/x/../y) is not a resolved browser URL and is stored as NULL. A port is normalised (:080 becomes :80; above 65535 → NULL). Cut to 500 bytes after scrubbing. null/blank → SQL NULL; a wrong type, a malformed URL or a non-http(s) scheme → NULL too (the report is still 201). The SPA's scrubbed fallback and legacy clients therefore store NULL and log a fixed-text WARN. |
user_agent |
string | No | User agent. Truncated to 500 bytes; scrubbed; null/blank/non-string → SQL NULL. |
ts |
number | No | Accepted and ignored: the row's timestamp is always the server's receive time (unix milliseconds). A client clock cannot date a report into the future or the past, so the 30-day retention sweep is a true age. |
conversation_id |
string | No | Associated conversation (mirrored into the triage queue). Dropped to null if null/blank/non-string/over 36 bytes. |
client_context |
object | No | Browser diagnostic snapshot (app/OS version, screen size, viewport, locale, timezone, colour scheme, current route, referrer, …) — the same schema and validator as the application-feedback client_context above. Validated at this trust boundary: unknown keys are not stored (only their names, in _unknown_keys, see Closed schema under app feedback above), over-size (>16 KiB) or wrong-type context, or a non-finite number or nesting deeper than 32 levels under an unknown key, is refused with 400 (under a typed key the value is dropped and _<key>_invalid: true is set, 201) (invalid_client_context, invalid_schema_version or client_context_too_large) and nothing is stored or mirrored. An absent, null or empty {} context is accepted (201). The message check runs first. The SPA keeps its context well inside the cap: it always shortens every top-level text value longer than 1024 characters to that length plus a trailing "…" (a trailing "…" on such a field is a client cut, not the real value), and omits the context if its estimate of the server encoding is still over 8 KiB. The 16 KiB cap (measured after the server's JSON re-encode) is therefore not reached by the app. Server-only keys a client tries to inject (user_id, client_ip, tenant_id, …) are stripped. current_route carries the page's query string, so its query is scrubbed to a non-reversible marker (?#<hash>) before storage (operator-visible logs never leak ?text= / ?project_id= values); unlike the top-level url, which drops query and fragment entirely, current_route keeps that marker so distinct routes stay distinguishable. URL scrubbing. The server scrubs referrer and the path of current_route before storage, the same way as the client-error url: only an absolute http(s) referrer is kept (userinfo, query and fragment dropped, \ read as /, scheme and host lower-cased), and the path segment after any shared or share segment (case-insensitive, percent-decoded; empty segments in between are skipped) is replaced by :token, so share-link tokens are never stored. Only referrer and current_route are URL-typed: the other known keys are parsed against their closed shapes (see the legacy-key rules under app feedback above), and an unknown key's value is never stored, so there is nothing further to scrub. A referrer with a dot segment (. / .., also percent-encoded) is malformed and dropped; in current_route a path with a dot segment and a shared segment has EVERY segment after the first shared segment masked with :token. A current_route or referrer containing a control character (bytes 0-31, 127) or invalid UTF-8, or longer than 3075 bytes, is dropped. A non-http(s) or malformed referrer (including a client-shortened one that no longer parses), or a referrer / current_route that is not a string, is dropped; every such drop sets a server-set _referrer_invalid: true / _current_route_invalid: true; a JSON null current_route / referrer is left out of the stored context (not stored as null); the report is still stored. The optional last_deeplink key follows the contract under Reports: malformed → dropped plus a server-set _last_deeplink_invalid: true; the report is still stored (201). The optional recent_errors and recent_failed_requests rings (at most 20 typed, free-text-free items each) follow the contract under Reports: malformed → dropped plus a server-set _recent_errors_invalid: true / _recent_failed_requests_invalid: true; empty or null → absent; the report is still stored (201). Mail-plugin keys. The OX App Suite mail plugin's keys are parsed against closed shapes too. source, action, error_key, error_code, phase, tenant, gateway, model: text of at most 3075 bytes, valid UTF-8 without control characters; "" is accepted and stored. cause: the same text rule, after each run of tab, line feed and carriage return is folded into ONE space (any other control character drops it). base_url: null or "" is absent; otherwise an absolute http(s) URL with userinfo, query and fragment removed, and anything else is dropped. http_status: an integer 0 to 999, null absent. n, unread, sent: integers 0 to 10000000, null absent. Each rejected value is dropped and the server sets _<key>_invalid: true; the report is still stored (201). |
Diagnostic context captured server-side (never client-sent). In addition to the body above, the server records:
- Account — if a valid admin session cookie rides along, the report is linked to that user (id + tenant + email). This is soft-resolved: a missing, expired, or malformed session cookie degrades the report to anonymous (
user_id/tenant_idNULL) — never a401/5xx. The user id is taken from the session, never from the request body. - IP — the client IP is derived server-side from the trusted Myra CDN edge, not from any client-sent field.
- Test and synthetic accounts are not queued. A report from a test/synthetic account (a fixture e-mail such as
e2e-worker-N@test.local, or the seeded prober usersynthetic@e2e.myra.local) or from a fixture tenant (the seeded00000000-e2e...id, or thee2e-synthetictenant, identified by its slug) is stored inclient_error_loglike any other report but is not mirrored into the triage queue. The tenant slug is looked up server-side from the session's tenant (anonymous reports do no lookup); if that lookup fails the report is queued, never hidden.
These give operators the account, tenant, IP, app/OS version, and screen size needed to diagnose an otherwise unattributable browser crash; they surface in the triage queue and under model-errors.sh context <id>. The account id and IP are personal data and are erased on user deletion / tenant purge and included in a user's data export. On erasure/purge the page URL and client_context are nulled too (both can carry client-supplied personal data — a verbatim referrer or arbitrary extra keys); only the bounded error message/stack remain, removed by the 30-day sweep.
Triage context is gated on the recorded account. Gateway-observed upstream failures (source = model_error) also land in the triage queue. The conversation such a row links to is the x-aig-conv-id header the caller sent, so it is not trusted. The row records the server-authenticated account (user_id) that made the failing request, and model-errors.sh context <id> loads the linked conversation's messages only if that account can itself open the conversation (its owner, or a project member for a conversation shared in the project) — the same rule as for the feedback sources above. Otherwise conversation.withheld is reporter_cannot_access (or access_check_failed if the check itself failed) and no message text is returned. The rules are:
- No account, no conversation. A row recorded without an authenticated user (or a legacy row stored before the account was recorded) that links a conversation has its conversation and its
request_logwithheld. This is the safe default: the context shows the structured signal only. - The request log is tenant-scoped.
request_logis read only under the row's own tenant. A request id belonging to another tenant, or a legacy row whose stored id is the client's turn id rather than the gateway request id, is not loaded and the context carriesrequest_log_error: "not_found"; a row without a tenant carriesrequest_log_withheld: "no_tenant_scope". Therequest_idkey is present only when itsrequest_logwas loaded under that scope. The row itself never carrieslast_request_id(not incontext,nextorlist), andlast_conversation_idis dropped fromcontextwhen the conversation is withheld. A withheld conversation's id stays visible asconversation.id(and innextandlist), but no message content is returned. The request id is never handed to the triage agent, so a foreign id cannot be fed to an unscoped lookup.model-errors.sh request-log <model_error id>takes the queue row id (the same id ascontext), returns only whatcontextloaded for that row, and refuses withrequest_log_unavailable: <reason>when it is withheld, foreign or absent. A separate operator-only command,request-log-raw <request_id>, keeps the unscoped lookup; the triage prompt does not name it and the agent tool guard rejects it. - Feedback text and rating. For feedback rows
contextreturnsdetail(the reporter's words, description or notes) andrating(chat feedback, 1-5); both arenullwhen there is none. When the person is restricted they are nulled together with the user id, e-mail and client context, withpersonal_data_withheld: "processing_restricted". Large inline base64 payloads are shown asaig-elided-...tokens instead of the payload:data:...;base64URLs in the row text and in conversation messages, and the images and documents (for example PDFs) attached to a conversation message. They are counted inconversation.payloads_elided(conversation messages) anddetail_payloads_elided(the row text); the stored data is unchanged. - Bounded output and the conversation window.
model-errors.sh context <id>prints at most 24 000 bytes (the triage agent's tool output is spilled to an unreadable file above about 30 000 characters), with the row first:error(id,source,title,detail,rating, ...) comes before the small keys,request_log/client_error/run, andconversationlast. Long strings are cut head-and-tail with an[aig-truncated: N bytes omitted]marker and a sibling<key>_truncated_bytes. The conversation is a window, described byconversation.window(total_messages,shown_messages,omitted_messages,shown_ranges,omitted_ranges,truncated_messages,content_bytes_omitted,budget_bytes,note): the message a content report names, the first two messages and the newest ones are shown (each body up to 2 000 bytes;indexis the 1-based position andcontent_truncated_bytesmarks a cut body), and the ranges list exactly which messages are omitted. There is nowindowwhen the conversation is withheld or empty. If even the non-message part exceeds the budget,view_over_budget: truefollowserrorand no messages are shown. This is presentation only: the access gates above are unchanged, andrequest-log <id>returns the same bounded form. - Erasure. The recorded account id is personal data. It is erased with the account (user deletion / tenant purge), and the shared-signature title and detail of the row are blanked in the same operation, since one row aggregates occurrences from several callers.
- Digest. The
req=token in the triage digest is now the gateway request id (previously the client-sent turn id), the same value asrequest_idabove.
Non-string values. Every free-text and id field on the feedback routes is read only from a JSON string; a number, boolean, object or array is never stringified into a row. A required field of the wrong type (message, summary, description on create) is rejected with 400 like a missing one. An optional field of the wrong type is malformed: on the authenticated routes (app-feedback create and edit, content reports) it is rejected with 400 {"error": "<field> must be a string", "code": "invalid_<field>"} and nothing is written — on the edit it never clears the field. The anonymous client-error route is the one deliberate exception: a crash or network report must not be lost over an optional field, so there a wrong-type stack / url / user_agent / conversation_id is stored as NULL and a wrong-type id is replaced by a server UUID.
Links are authorised. On content reports the conversation_id, message_id and request_log_id links are checked against the reporter before anything is written (a malformed id is 400 invalid_id; an inaccessible conversation is 404; an unauthorisable request_log_id is dropped and the report is still filed). The triage context shown for a user-asserted report (content report, client error, chat feedback) never includes a conversation, or request-log detail, that the reporting account cannot read; it is marked as withheld instead.
A malformed or hostile body never returns a 5xx: null-in-a-truthy-field, invalid UTF-8, and over-length values are all sanitized rather than persisted verbatim; a malformed client_context is answered 400 and nothing is stored.
Expected billing refusals are not reported. A chat turn refused for an expected billing state (trial over, quota or wallet empty, inactive subscription, plan model not allowed, a member's budget) is shown with its billing action but is not filed as a client error (no [leg_error] report, no triage item). A refusal that signals a server fault, spend_unverified, is still reported.
Offline failures are not reported. A failure the app diagnosed as offline (the browser reported no network, also when the connection dropped after the request was sent) is not reported under the app's [<tag>] <message> reports of failed loads and actions (including the chat conversation, message and share reports), the list pages' [<tag>] load failed: … reports, or as an unhandled rejection; what the user sees is unchanged, only the report is dropped. The decision reads the structure the transport layer sets on the failure, never the localized text and never the browser's global online state. Still reported while offline: every other failure class (an HTTP status, a timeout), user-visible [user-error:…] failures, genuine app errors, and the chat stream's own failure reports (a stream that dies offline is still reported, with its class and cause) — silence is not proof nothing broke.
Message tag conventions. The SPA prefixes its reports so operators can filter the queue: [user-error:<area>] marks a user-visible error the app surfaced in area <area> (e.g. chat, easy-create, login, knowledge-upload, and attach for user-caused attachment rejections: unsupported type, too large, too many, server image rejects, malware/scan states); the message is the WHAT the user saw, followed by | <failure class> when the error came from a request — the HTTP status or network class, the CDN origin, the machine code, the method and the endpoint (for example | HTTP 500 code=internal DELETE /admin/v1/agents/:id), or client <ErrorName> for an error inside the app — never the request id or the time, so repeats of one failure collapse into one triage class; a load failure reported by a list page ([<tag>] load failed: …) carries the same suffix; a best-effort load or side-effect report ([<tag>] <detail>: <message>, sent by the app's shared failure reporter) is not sent when the browser has no network (a failure the app diagnosed as offline) or for an expected refusal (the View-as-User refusal, trial and plan refusals); every other failure is reported; a cancelled request (the user left, or the session ended and the sign-in page is opening) is not reported; [attach] marks an app/platform-caused attachment failure (file-read failures, empty reads, a native file chooser that never opened ([attach] no_response source=picker with code=picker_tap when the user tapped the page again with no picker showing, or code=picker_refused when the system cancelled the chooser at once; the beacon is sent only on that verdict, never on a timer), a null clipboard or drop item, and ingest_busy: the shared upload pool answered 503 and the chat surfaced the busy banner, the signal for sizing the pool) — the operator's bug queue; ui-anomaly: <kind> marks a silent bad on-screen state that threw no exception. [network:cors-or-unreachable] <METHOD> <host><endpoint> marks a confirmed CORS / network-level failure of an SPA→API call: the request was rejected with no HTTP status (the browser reports a CORS block, DNS, TLS and connection failures identically) and the app's follow-up checks confirmed it — a CORS-simple GET of /admin/auth/methods (or /v1/models for the inference API) on the same host could not be read either, and a no-cors GET /healthz either got an answer (class blocked: the host answers, but not readably — a broken CORS configuration, an edge or CDN error page without Access-Control-Allow-Origin, or a filter on the way) or none at all (class unreachable); see Network errors in the app. [network:interrupted] <METHOD> <host><endpoint> marks an endpoint that failed while the API answered the check — the signature of a CORS fault of one location (a missing Access-Control-Allow-Headers entry, one route without CORS headers); it is reported only from the second such failure of the same endpoint in a page load, because a single one is usually a network blip. The endpoint carries no query string, and every path segment that is not a known route word of the admin API or an API version is collapsed to :id (ids, uuids, anything with digits, %, @, .) or :seg (a route-word-shaped slug that is not a known route word, such as a tenant or gateway slug); the stack field carries page_origin, probe=read+reach, class and online. Each endpoint is its own triage class (category client_error), so the AIGW_status digest names host, endpoint, and count. Limits per page load: one report per endpoint and tag, at most 20; at most 20 checks per minute (a failure beyond that is not checked and not reported); nothing while the browser is offline, during a page teardown, in the grace window after a session-expiry redirect, or for a dropped live-update stream (it reconnects on its own). Known limits: a deterministic per-URL block on the user's side (an ad blocker or corporate path filter) is reported like a real break; a failure of the API host itself (DNS, TLS) cannot be reported, because the report goes to that same host. There is no offline queue: behind the CDN a down backend still answers, so a no-cors report cannot tell it apart from a delivered one. Attachment beacons carry only structured facts — ingress source (picker/paste/drop/longpaste/send/feedback), lowercased file extension, MIME, a bucketed byte size, and a per-gesture fold count — never a filename or localized banner text. Every user-visible composer, send, chat-start and dictation error is reported in one structured shape, [user-error:<area>] <kind> followed by space-separated facts and the optional | <failure class> suffix (areas chat, easy-create, dictation, attach; [<area>] <kind> when the app caused it). The facts are source, count, failed, ext, mime, mimes, bytes, total and code; every fact is shape-checked and dropped when it does not fit, and the line never carries a file name, message text or localized text. A live-dictation failure ([user-error:dictation] live_<reason>, for example live_no_audio) also carries a diag v=1 k=v … line in the stack field with PII-free counters of the capture path. Every key, with its meaning: tap (which tap carried the live audio: worklet, track or script), shadow (which second tap was started, if any), switched (1 = the second tap took over from a silent AudioWorklet), mod (result of loading the AudioWorklet module: ok, fail, timeout, none), ctx_state and ctx_rate (browser audio-context state and sample rate), wk_calls (times the AudioWorklet processed input), wk_empty (of those, times the input was empty), wk_ch (input channels seen), wk_msgs (messages of any kind received from the worklet), sh_chunks (chunks the second tap delivered), chunks (audio chunks handed on by the active tap), signal (of those, chunks with non-silent samples), framed (PCM frames cut for the relay), ms (capture duration in milliseconds), wk_first (first message of any kind from the AudioWorklet, i.e. proof its processing ran), wk_first_au (first non-empty worklet audio chunk), sh_first (first chunk of the second tap), sw_ms (the moment the second tap took over) - all four in milliseconds from the start of the capture on a monotonic clock, -1 when it never happened, sh_err (1 when the second tap broke by itself: its stream failed or ended, or the browser could not copy its audio - this tells a broken second tap from a silent device), trk_state, trk_muted, trk_enabled, trk_rate, trk_ch (microphone track state, muted and enabled flags, sample rate, channel count; present when the track is known), sent (binary frames the live socket sent), lv_state (the live socket's state) and late (see below). framed and ms are snapshotted before the final remainder frame is flushed on stop, while late is evaluated after that flush and so includes it. [dictation] live_tap_switched (app-caused, operator queue) is sent once per recording in which the worklet delivered nothing and the second tap carried the audio, however the recording ends (stop, a failed live socket, a recorder error, leaving the page, or the live start giving up at its gate - audio context not ready, the previous session not settled in time, or no tap attached), with the same diag v=1 stack. It is sent in addition to a live_<reason> report of the same recording (that one carries the same counters): live_tap_switched is the signal that audio was rescued. late (1 = the final text came from the recorded upload) is present only when the recording ended by stop; a recording that ended by failure carries no late. The diag block holds at most 32 entries; keys match ^[a-z][a-z0-9_]{0,15}$, string values are slugs matching ^[a-z0-9_]{1,16}$, numeric values are rounded and clamped to ±1e9, and anything else is dropped; the message and the triage class are unchanged. On a send beacon count is the number of attachments in the send, total their combined decoded size, and failed the number the attachment store did not save. New attachment kinds: transport (the upload got no answer), image_too_large (the server refused the image for its size) and persist_too_large are user-caused, as are local_unreadable (the Files tab of a project could not read a picked or dropped file from the user's device, typically a dropped folder or macOS package, an iCloud or OneDrive placeholder, or a file moved after selection; one beacon per upload batch, count is the number of such files) and folder (a folder was dropped onto the Files tab, which accepts files only; one beacon per drop, count is the number of folders, source=drop); [user-error:attach] picker_cancel source=picker (a file dialog was closed with no files in desktop-Linux Chromium, where a double-click in the dialog is answered as Cancel; user-caused, so it is a user error, not an app error; code names the surface: composer (the chat composer), composer_dialog (the composer's Add files dialog), knowledge (the Files tab of a project), feedback_image (the feedback widget's image picker), pii_list (the My PII batch upload), users_csv (the user CSV import), and the tenant branding pickers tenant_logo, tenant_logo_light and tenant_favicon; one beacon per hint shown, identical repeats within 5 seconds collapse into one report; the beacon is not sent when the dialog did hand over files; it counts every such cancel, so it is an upper bound on the double-click cases). The no_response beacon (code=picker_tap or picker_refused, described above) is also sent by the Files tab of a project, from both its upload button and its drop zone; extract_failed (the server could not read the file), persist_failed and persist_author_unknown are app-caused ([attach]). A silent cause (a cancelled request or a sign-in redirect) is not reported. [session-lost-early] session cookie missing before its expiry marks a session that ended before its time without a sign-out: the browser had a session that was still valid when last seen, and on the next load the session cookie was gone (the server answered 401 with code unauthenticated). The app notes this while signed out, where it cannot report, and sends one report after the next successful sign-in, so the report belongs to the account that signed in again; a loss followed by a different account is dropped, not attributed. The message is constant; the stack field carries v=2, src (how the lost session was first seen: boot, login, signin-refresh, or legacy for a marker written before v=2), by (the kind of sign-in that delivered the report), since_signin_h, since_seen_h and to_exp_h (hours), code, storage=kept (the browser's local storage survived, so the cookie alone was lost) and report_delay_min. A report is sent only for a sign-in whose session the server minted at or after the loss (session_auth_time of GET /admin/auth/me, 5-minute margin); a stale or cached confirmation never produces a row, and rows with v=1 predate this rule and are not comparable. The id of the report is chosen by the app (one per session), so a second tab or a retry collapses into one row; count lost sessions with COUNT(DISTINCT id). Not reported: a sign-out, a revoked or deactivated session, a natural expiry (a 5-minute margin applies), a clock that is off by more than 5 minutes, and a wiped local storage. Known false positives: single logout from the identity provider (SAML SLO) or the SAML logout route (GET /admin/auth/saml/<tenant>/logout) clears the cookie from outside the app, and a browser or extension that deletes cookies is indistinguishable from a server-side loss. The report is never shown to the user.
Response: 201 { "ok": true }
Retention. Client error reports are kept for 30 days and then removed by an hourly, batched sweep (storage limitation — the report text may contain user-visible content or URLs). The triage queue keeps only the de-duplicated aggregate (fingerprint, title, cumulative count) beyond that; the raw message and stack behind a triage item exist for the retention window only.
GET /admin/v1/client-errors — list submitted client errors (those within the 30-day retention window). Required permission: FEEDBACK_TRIAGE (a platform-admin permission). Optional ?limit (default 200, capped at 500; anything but a plain integer ≥ 1 is 400 invalid_limit). A database fault is 503 { "error": "temporarily unavailable; retry later" } — never an empty list.