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

Support Request Message Schema

ID del esquema
support_request_message
Colección
support_request_messages
Permisos
  • Leersupport_request_view
  • Crearsupport_request_create
  • Modificarsupport_request_edit
  • Eliminarsupport_request_delete

Campos

Support Request Message Schema

support_request_messages4 permisos

A message exchanged on a support request (reporter ↔ Codemeta agent)

requestIdstringobligatorio

The support request this message belongs to

máx. 100 caracteres
authorSidestringobligatorio

Who wrote it. Load-bearing beyond display: the measured first-response time is derived later from the request’s createdAt against the first `agent` message, retroactively and without a backfill (ADR 0938 decision 12). Do not drop. `system` marks what the platform says by itself (a live chat ended, a queue timed out) — never a response by the support, so it must not count as one (ADR 0990). Notes written before 2026-10-02 carry `agent`.

customeragentsystem
systemEventstringopcional

What a `system` message reports. Each side words it for itself ("Du hast …" for the customer, "Der Kunde hat …" in the console); `body` is the fallback text. An event missing here is still written in the default `report` mode, but logged as a violation on every write — and dropped under `enforce` (review 2026-10-14, `live_claimed`).

live_claimedlive_ended_by_agentlive_ended_by_customerlive_idle_timeoutlive_queue_timeoutrequest_mergedlinked_feedback_implementednull
Valor por defecto: nulladmite null
authorUserIdstringopcional

Author user id (tenant user or support agent)

máx. 100 caracteresadmite null
bodystringobligatorio

Message text

1–10000 caracteres
attachmentFileIdsstring[]opcional

Attached files

máx. 5 elementosValor por defecto: []
internalOnlybooleanopcional

Internal note between Codemeta agents — stripped before the tenant reads it. Mirrors `stripInternalComments` in the feedback flow.

Valor por defecto: falsesolo lectura
sessionIdstringopcional

Phase 3: the live chat session this message belongs to; null for async messages

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

Phase 3: reply-to a specific message. NOTE this is a real FK to another support_request_messages._id — NOT the RFC-5322 `inReplyTo` mail header used in message.schema.ts. The name similarity is a trap.

máx. 100 caracteresValor por defecto: nulladmite null
reactionsobject[]opcional

Emoji reactions (Teams-style). Managed exclusively via POST /:resource/:id/reactions — never set directly via create/update (the field is protected). Absent/missing = no reactions.

solo lectura
emojistringobligatorio

Native Unicode emoji character

1–32 caracteres
userIdstringobligatorio

Internal users._id of the reactor

mín. 1 caracteres
createdAtdatetimeopcional

When the reaction was added

solo lectura

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_request_messages — Lista, paginada y filtrable
  • GET /api/v1/support_request_messages/<id> — Una entidad
  • POST /api/v1/support_request_messages — Crear
  • PATCH /api/v1/support_request_messages/<id> — Actualización parcial
  • DELETE /api/v1/support_request_messages/<id> — Eliminación lógica
  • GET /api/v1/support_request_messages/<id>/timeline — Auditoría y actividades

Búsqueda