API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · support_request_messages

Support Request Message Schema

ID du schéma
support_request_message
Collection
support_request_messages
Autorisations
  • Liresupport_request_view
  • Créersupport_request_create
  • Modifiersupport_request_edit
  • Supprimersupport_request_delete

Champs

Support Request Message Schema

support_request_messages4 autorisations

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

requestIdstringobligatoire

The support request this message belongs to

max. 100 caractères
authorSidestringobligatoire

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
systemEventstringfacultatif

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
Par défaut : nullnullable
authorUserIdstringfacultatif

Author user id (tenant user or support agent)

max. 100 caractèresnullable
bodystringobligatoire

Message text

1–10000 caractères
attachmentFileIdsstring[]facultatif

Attached files

max. 5 élémentsPar défaut : []
internalOnlybooleanfacultatif

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

Par défaut : falselecture seule
sessionIdstringfacultatif

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

max. 100 caractèresPar défaut : nullnullable
replyToMessageIdstringfacultatif

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.

max. 100 caractèresPar défaut : nullnullable
reactionsobject[]facultatif

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.

lecture seule
emojistringobligatoire

Native Unicode emoji character

1–32 caractères
userIdstringobligatoire

Internal users._id of the reactor

min. 1 caractères
createdAtdatetimefacultatif

When the reaction was added

lecture seule

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/support_request_messages — Liste, paginée et filtrable
  • GET /api/v1/support_request_messages/<id> — Une entité
  • POST /api/v1/support_request_messages — Créer
  • PATCH /api/v1/support_request_messages/<id> — Mise à jour partielle
  • DELETE /api/v1/support_request_messages/<id> — Suppression logique
  • GET /api/v1/support_request_messages/<id>/timeline — Audit et activités

Recherche