API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · support_requests

Support Request Schema

ID del esquema
support_request
Colección
support_requests
Permisos
  • Leersupport_request_view
  • Crearsupport_request_create
  • Modificarsupport_request_edit
  • Eliminarsupport_request_delete

Campos

Support Request Schema

support_requests4 permisos

A tenant user’s support request to Codemeta (vendor support)

categorystringobligatorio

What the request is about, chosen by the reporter. Deliberately kept to four distinct cases — the later AI triage (phase 2) classifies along the same axis.

BUGQUESTIONFEATUREBILLING
titlestringobligatorio

Short summary of the request

1–300 caracteres
descriptionstringobligatorio

Detailed description of the request

1–10000 caracteres
statusstringopcional

Processing status, set by Codemeta support

NEWIN_PROGRESSWAITING_ON_CUSTOMERRESOLVEDCLOSED
Valor por defecto: "NEW"
prioritystringopcional

Set by CODEMETA SUPPORT only — never by the reporter (ADR 0938 decision 15). There is deliberately no `suggestedPriority`: a self-declared priority creates an expectation that must then be served or disappointed, and would be useless as a queue criterion because it is gameable. Not part of the create payload; only PATCH on the support scope may write it. Phase 3b sorts the live queue by a separate `aiTriage.priority`, not by this field.

LOWMEDIUMHIGHCRITICALnull
Valor por defecto: nullsolo lecturaadmite null
assignedSupportUserIdstringopcional

Codemeta support agent handling this request

máx. 100 caracteresValor por defecto: nullsolo lecturaadmite null
aiTriageobjectopcional

Result of the automatic triage (ADR 0938 phase 2). Written by the worker only — protected, so neither reporter nor agent can forge it. Stays null when the LLM is unavailable and no heuristic matched; every reader must tolerate that.

Valor por defecto: nullsolo lecturaadmite null
categorystringopcional

Advisory only — never overwrites the reporter-chosen category.

BUGQUESTIONFEATUREBILLINGnull
admite null
prioritystringopcional

AUTHORITATIVE, unlike the other fields (ADR 0938 decision 14): from phase 3b this sorts the paid live queue. It never writes the human `priority` field.

LOWMEDIUMHIGHCRITICALnull
solo lecturaadmite null
suggestedAssigneeUserIdstringopcional

Advisory chip only — never auto-assigns (ADR 0938 decision 13).

máx. 100 caracteresValor por defecto: nulladmite null
reasoningstringopcional

Short rationale, shown to the agent so the suggestion is auditable.

máx. 2000 caracteresValor por defecto: nulladmite null
sourcestringopcional

Which rung of the fallback chain produced this. Displayed, because an agent should know whether a model or a keyword rule made the call.

llmheuristic
modelstringopcional

Model id when source is llm — null for heuristic results.

máx. 200 caracteresValor por defecto: nulladmite null
triagedAtdatetimeopcional

When the triage ran.

screenshotFileIdsstring[]opcional

Uploaded screenshots (uploaded before submit, referenced by id)

máx. 3 elementosValor por defecto: []
aiConversationIdstringopcional

Set when the request was handed over from the AI support chat (ADR 1172 §2). Points to the support_ai_conversations document whose transcript the console shows as „Vorgeschichte mit der KI". Validated server-side against the reporter; never trusted as given.

máx. 100 caracteresValor por defecto: nulladmite null
sourceFeedbackIdstringopcional

Set when this request was created by escalating a BUG feedback to live support (ADR 0938 decision 10 requires a request to hang the session off). The feedback itself is NOT replaced — it stays the product-feedback record that the dedup corpus and merge work on; this request is the support case. Written only by the escalation route, never by a client.

máx. 100 caracteresValor por defecto: nullsolo lecturaadmite null
assistantHandoffobjectopcional

Set when the request was sent from the in-app AI assistant (feedback 01a1abb3) — either the assistant proposed it or the user opened it from the chat. `handoffId` is the tool-call id (or a client id for a manual hand-off) and makes the create idempotent per reporter: a reloaded chat that still shows the unsent card cannot file the same request twice. Absent on every request filed elsewhere and on all requests from before this field existed — readers must tolerate null.

Valor por defecto: nulladmite null
handoffIdstringopcional
máx. 200 caracteres
conversationIdstringopcional
máx. 100 caracteresadmite null
reasonstringopcional

Why the hand-off happened — for the hand-off rate, never shown.

no_answeruser_askederrorbillingmanualfeedback_downnull
admite null
transcriptobject[]opcional

The chat with the assistant up to the hand-off, as the reporter saw it — only their questions and the assistant’s answers, never tool results. Attached by default with a visible opt-out in the dialog, so support does not have to ask what was already said. A snapshot: later turns of the chat do not change it. Capped at the most recent 50 messages / 40 000 characters; null or absent when the reporter deselected it, and on every request from before 2026-11-06.

máx. 50 elementosadmite null
rolestringobligatorio
userassistant
textstringobligatorio
máx. 4000 caracteres
resolvedAtdatetimeopcional

When the request last moved to RESOLVED or CLOSED (support PATCH). Cleared when it reopens. Absent on requests resolved before 2026-11-22 — the SLA then reports the resolution clock as unknown instead of guessing.

solo lecturaadmite null
tagsstring[]opcional

Internal support tags (lower-case, trimmed). Never shown to the reporter.

máx. 20 elementossolo lectura
linkedFeedbackIdsstring[]opcional

Product feedbacks this request belongs to. The feedback side reads it back through the `linkedFeedbackIds` index, so the link is stored once and shown in both directions.

máx. 20 elementossolo lectura
relatedRequestIdsstring[]opcional

Other support requests on the same matter. Written on both sides.

máx. 20 elementossolo lectura
mergedIntoIdstringopcional

Set when this request was merged into another one of the same tenant. The request is then CLOSED; its messages stay where they are and the target links back.

máx. 100 caracteressolo lecturaadmite null
csatobjectopcional

Satisfaction rating by the reporter after the request was resolved (1–5, optional comment). Written only by the reporter through POST /support-requests/:id/csat.

solo lecturaadmite null
scoreintegerobligatorio
1 – 5
commentstringopcional
máx. 1000 caracteresadmite null
ratedAtdatetimeobligatorio
affectedPagestringopcional

URL or route the reporter was on when submitting

máx. 500 caracteresadmite null
browserInfoobjectopcional

Automatically captured browser information

admite null
userAgentstringopcional
máx. 500 caracteres
viewportstringopcional
máx. 50 caracteres
urlstringopcional
máx. 2000 caracteres
consoleLogsobject[]opcional

Client console capture, capped like the feedback flow

máx. 100 elementosValor por defecto: []admite null
levelstringopcional
máx. 20 caracteres
messagestringopcional
máx. 2000 caracteres
stackstringopcional
máx. 5000 caracteresadmite null
timestampstringopcional
máx. 40 caracteres

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/support_requests — Lista, paginada y filtrable
  • GET /api/v1/support_requests/<id> — Una entidad
  • POST /api/v1/support_requests — Crear
  • PATCH /api/v1/support_requests/<id> — Actualización parcial
  • DELETE /api/v1/support_requests/<id> — Eliminación lógica
  • GET /api/v1/support_requests/<id>/timeline — Auditoría y actividades

Búsqueda