Skip to content
1 viewer
View

Messaging reference

4 pages, 64 routes, 39 connections and 0 CLI commands, generated from the declarations of Messaging without reading storage or running anything.

AboutCode

Code · 0 files

No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.

Pages · 9

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Callmessaging.calldetail/view/messaging/calls/{call_id}0messaging.callsCallhidden
Call scriptmessaging.call_scriptdetail/view/messaging/calls/scripts/{script_id}0messaging.callsCallScripthidden
Listmessaging.inboxlist/view/messaging/list0Messagein navigation
Message threadmessaging.message.detaildetail/view/messaging/{message_id}0messaging.inboxThreadhidden
New chatmessaging.thread.createeditor/view/messaging/chat/create0messaging.thread.workbenchThreadhidden
Conversation threadmessaging.thread.detaildetail/view/messaging/chat/{thread_id}0messaging.thread.workbenchThreadhidden
Conversationsmessaging.thread.workbenchlist/view/messaging/chat20Threadin navigation
Callsmessaging.callslist/view/messaging/calls30Callin navigation
Phonemessaging.phonecustom/view/messaging/phone60Callin navigation
9 rows

Connections · 39

Messaging.AddThreadMembers

The owner adds people or agents to a group or agent thread; repeats change nothing.

Messaging.AddThreadMembers input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
membersrequired
2 rows
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/threads/members/addHTTP route

Messaging.CallArchive

Messaging.CallArchive input
FieldTypeRequiredDescriptionAllowed
call_idrequired
1 row
Calls and output
  • Output keymessaging.result
  • Classificationunclassified
  • POST /messaging/calls/archiveHTTP route

Messaging.CallGet

One voice call's record: the script it followed (by fingerprint), every authored move (heard, chosen label, keyword or model, said), transcript, typed captures, outcome, declared follow-ups, opt-out suppression, and recordings.

Messaging.CallGet input
FieldTypeRequiredDescriptionAllowed
call_idrequired
1 row
Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/calls/detailHTTP route

Messaging.CallRecording

One archived call recording's audio (base64) and media type, decrypted from the atom store and verified against the recorded SHA-256 and size.

Messaging.CallRecording input
FieldTypeRequiredDescriptionAllowed
call_idrequired
sidrequired
2 rows
Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/calls/recordingHTTP route

Messaging.CallScripts

Built-in call script templates; with `id`, one template with its Mermaid flow diagram, authoring lint, and rehearsal results.

Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/call-scriptsHTTP route

Messaging.Calls

List voice calls newest first with optional outcome / status / source_id / script_id filters: direction, masked counterpart, script, outcome, duration, turn and recording counts, plus totals by outcome.

Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/callsHTTP route

Messaging.CommentList

List the comments on any content id (subject_kind + subject_id) ascending by ts with parent links intact — the client builds the tree. Returns `comment_count` (total) alongside the possibly-`limit`ed `comments`. A subject with no thread yet returns ok:true with an empty list, never an error.

Messaging.CommentList input
FieldTypeRequiredDescriptionAllowed
subject_kindrequired
subject_idrequired
limitoptional
3 rows
Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /comments/listHTTP route

Messaging.CommentPost

Post a threaded comment on ANY content id. The backing group thread is derived (`subject:{subject_kind}:{subject_id}` — lowercase slug, '/' → '.') and lazily created on first post, so every surface lands in one conversation per subject with no coordination. Author follows the channel-app caller idiom: gateway-verified session wins, input `actor` is the devnet path, anonymous falls back to `account:anon-dev`. `parent_id` (a prior comment's message id) threads replies to arbitrary depth.

Messaging.CommentPost input
FieldTypeRequiredDescriptionAllowed
subject_kindrequired
subject_idrequired
contentrequired
parent_idoptional
actoroptional
5 rows
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /comments/postHTTP route

Messaging.CreateThread

Create or find an authenticated graph-backed thread between participants. DM threads are deterministic — `find_or_create_dm` hashes the sorted canonical participant set and returns the same `thread_id` regardless of caller order. Group/agent threads require a caller-supplied `thread_id`. Idempotent: ensures one Inbox vertex per participant and one ThreadInbox membership edge per (thread, participant) pair. The authenticated session account must be a participant.

Messaging.CreateThread input
FieldTypeRequiredDescriptionAllowed
participantsrequired
1 row
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/threads/createHTTP route

Messaging.DeleteThreadMessage

The author or a thread owner deletes a message; its text becomes a tombstone and its attachments are dropped.

Messaging.DeleteThreadMessage input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
message_idrequired
2 rows
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/threads/messages/deleteHTTP route

Messaging.EditThreadMessage

The author replaces a message's text and edited_at is stamped.

Messaging.EditThreadMessage input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
message_idrequired
contentrequired
3 rows
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/threads/messages/editHTTP route

Messaging.EmailFeedback

Calls and output
  • Output keymessaging.result
  • Classificationunclassified
  • POST /messaging/webhook/email-feedbackHTTP route

Messaging.EmailInbound

Calls and output
  • Output keymessaging.result
  • Classificationunclassified
  • POST /messaging/webhook/sendgrid/inboundHTTP route

Messaging.Get

Fetch a single message by id.

Messaging.Get input
FieldTypeRequiredDescriptionAllowed
idrequired
1 row
Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/detailHTTP route

Messaging.GetThread

Load the full ThreadSnapshot for `thread_id` — kind, title, members (with role/joined_ts/pinned/archived/muted), and messages sorted by ts. Errors if the thread vertex doesn't exist.

Messaging.GetThread input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
limitoptional
before_tsoptional
rowsoptional
4 rows
Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/threads/detailHTTP route

Messaging.LeaveThread

The caller leaves a group or agent thread; if the last owner leaves, the account that joined first becomes owner.

Messaging.LeaveThread input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
1 row
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/threads/leaveHTTP route

Messaging.List

List recent messages with optional direction / channel / status filters.

Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messagingHTTP route

Messaging.ListInbox

Enumerate all threads the authenticated session account is a member of. Returns lightweight ThreadHeader rows (id, kind, title, last_ts, message_count, unread_count) sorted by most-recent activity. Empty list (not error) when identity has no inbox.

Messaging.ListInbox input
FieldTypeRequiredDescriptionAllowed
identityoptional
1 row
Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/inboxHTTP route

Messaging.MarkRead

Advance the authenticated member's durable read position through an observed message. Later arrivals remain unread; retries never move the cursor backwards.

Messaging.MarkRead input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
through_message_idrequired
2 rows
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/threads/readHTTP route

Messaging.ModelTurn

Run one synchronous provider-neutral turn in an authenticated agent thread. Claims `(actor, thread, idempotency_key)` durably before provider invocation and atomically binds the active immutable ThreadCapabilityPolicy receipt. Policy uses an exact server-approved provider/model target plus owner-bounded transcript and output budgets (at most 64 messages and 1024 tokens). One owner-passport-signed MemorySnapshotV1 context pack may be quoted as inert data. An owner-approved host workspace grants a bounded native file-tool loop; generic tools, skills, and hooks remain denied. Client model-policy overrides fail closed. Stop requests are observed at operation boundaries.

Messaging.ModelTurn input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
contentoptional
partsoptional
stageoptional
idempotency_keyrequired
5 rows
Calls and output
  • Output keymessaging.result
  • Classificationconflict
  • POST /messaging/threads/turnHTTP route

Messaging.PhoneAnswer

Messaging.PhoneAnswer input
FieldTypeRequiredDescriptionAllowed
call_idrequired
1 row
Calls and output
  • Output keymessaging.result
  • Classificationunclassified
  • POST /messaging/phone/answerHTTP route

Messaging.PhoneDecline

Messaging.PhoneDecline input
FieldTypeRequiredDescriptionAllowed
call_idrequired
1 row
Calls and output
  • Output keymessaging.result
  • Classificationunclassified
  • POST /messaging/phone/declineHTTP route

Messaging.PhoneRinging

The signed-in account's phone lines and the calls to them that are ringing or in progress: caller number, line, label, phase, and when the ringing ends.

Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/phone/ringingHTTP route

Messaging.Providers

List registered outbound providers (twilio, sendgrid, fcm, apns, webpush, discord_webhook, slack_webhook, ...) with channel + cost capabilities, whether each is configured, and whether it is a placeholder that absorbs sends instead of delivering them.

Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/providersHTTP route

Messaging.RememberContextMemory

Create one authenticated owner-only MemoryEntry source for the chat Context Pack picker. The mutable source is not provider authority; attaching it snapshots and passport-signs exact bytes.

Messaging.RememberContextMemory input
FieldTypeRequiredDescriptionAllowed
context_memory_contentrequired
context_memory_tagsoptional
2 rows
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/threads/context/memoriesHTTP route

Messaging.RenameThread

Rename a group or agent thread; any owner or member may, an agent member may not.

Messaging.RenameThread input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
titlerequired
2 rows
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/threads/renameHTTP route

Messaging.ReviewWorkspaceChange

The initiating owner reviews, rejects or explicitly applies one revision-bound file proposal. A durable claim precedes the Editor write; retries never repeat an uncertain effect.

Messaging.ReviewWorkspaceChange input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
turn_idrequired
event_idrequired
decisionoptional
4 rows
Calls and output
  • Output keymessaging.result
  • Classificationconflict
  • POST /messaging/threads/{thread_id}/changes/reviewHTTP route

Messaging.Send

Send a message via an outbound channel (sms / voice / email / push / chat). Selects a provider by `provider` or auto-picks the first available for the channel. A voice send may name a library script with `call_script` (`{id, bindings}`); a script whose purpose is outbound sales needs recorded voice consent to the sender (`Messaging.RecordConsent`). Reserves daily $ budget BEFORE the provider call. Persists a `message_runtime` row. On success, mints `messaging.sent.v1` activity credit into per-channel `cre8/peer/{actor}/messaging/sent/{channel}` — operators target a per-peer ManifoldRule::Cap at that namespace for per-channel rate limiting. Idempotent on `idempotency_key` (replays do not re-mint). Non-deterministic — sits off app_hash consensus.

Messaging.Send input
FieldTypeRequiredDescriptionAllowed
channelrequired
torequired
2 rows
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/sendHTTP route

Messaging.SendThreadMessage

Append a Message vertex to a thread. Author is derived from the authenticated Gateway session and must be a thread member. Sequence is derived from the thread's existing ThreadMessage edge count — single-orchestrator-per-thread keeps this race-free at v1. Message vertex kind is shared with collab (KIND_MESSAGE); the discriminator is which container edge it carries.

Messaging.SendThreadMessage input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
authoroptional
contentoptional
partsoptional
4 rows
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/threads/sendHTTP route

Messaging.SetThreadFlags

Set the caller's own mute, pin and archive flags on a thread.

Messaging.SetThreadFlags input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
mutedoptional
pinnedoptional
archivedoptional
4 rows
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/threads/flagsHTTP route

Messaging.Status

Messaging subsystem health: provider availability, store counts (by_status / by_channel), today's budget tallies.

Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/statusHTTP route

Messaging.StopModelTurn

The initiating account appends a durable stop request for its running turn. The worker observes it at operation boundaries; in-flight effects and costs are retained. Exact retries are idempotent by turn id.

Messaging.StopModelTurn input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
turn_idrequired
2 rows
Calls and output
  • Output keymessaging.result
  • Classificationconflict
  • POST /messaging/threads/turn/stopHTTP route

Messaging.Suppress

Put one address on the suppression list so no caller can mail it. Keyed on (channel, address, scope): `scope` is the sender being opted out of, absent or `*` meaning every sender on this node. Idempotent — re-recording updates the reason and leaves the first sighting. Session-gated: adding somebody else's address is an operator action, while a recipient removes their own through the token-authenticated /messaging/unsubscribe route.

Messaging.Suppress input
FieldTypeRequiredDescriptionAllowed
torequired
1 row
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/suppressHTTP route

Messaging.Suppressions

List suppressed addresses, newest first, with optional channel and address filters. Reports `total` alongside the page so an operator can confirm the compliance floor is populated before a bulk send.

Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/suppressionsHTTP route

Messaging.Unsuppress

Remove one (channel, address, scope) suppression — the escape hatch for a re-subscribe or a misclassified bounce. Reports whether a row was actually removed.

Messaging.Unsuppress input
FieldTypeRequiredDescriptionAllowed
torequired
1 row
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/unsuppressHTTP route

Messaging.UpdateStatus

Webhook-driven status transition for a message — typically called from provider callbacks (Twilio delivery status, SendGrid event, Discord ack). Resolves the row by `id` OR (`provider` + `provider_message_id`). Idempotent on repeated callbacks for the same status.

Messaging.UpdateStatus input
FieldTypeRequiredDescriptionAllowed
statusrequired
1 row
Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/update_statusHTTP route

Messaging.UpdateThreadPolicy

Append an owner-authorized ThreadCapabilityPolicy budget and approved-model revision. The authenticated creator must hold the thread's durable Owner membership; expected_policy_hash provides optimistic concurrency and idempotency_key makes exact retries durable. Provider/model targets must resolve through the server Intelligence registry. The owner may attach, replace, or detach one passport-signed MemorySnapshotV1 context pack and a host-registered workspace with explicit read/edit and round limits; generic references, skills, hooks, and tools remain denied.

Messaging.UpdateThreadPolicy input
FieldTypeRequiredDescriptionAllowed
thread_idrequired
expected_policy_hashrequired
transcript_message_limitrequired
max_output_tokensrequired
provider_idoptional
modeloptional
context_memory_entry_idoptional
clear_context_packoptional
workspace_idoptional
workspace_allow_editsoptional
workspace_allow_shelloptional
workspace_max_tool_roundsoptional
clear_workspaceoptional
idempotency_keyrequired
14 rows
Calls and output
  • Output keymessaging.result
  • Classificationconflict
  • POST /messaging/threads/policyHTTP route

Messaging.ViewPatch

Live SSR patch for the Messaging inbox view.

Messaging.ViewPatch input
FieldTypeRequiredDescriptionAllowed
message_idoptional
1 row
Calls and output
  • Output keymessaging.result
  • Classificationroute_handler
  • GET /messaging/inbox/patchHTTP route

Messaging.Webhook

Inbound provider-callback receiver. The gateway routes raw form-encoded (Twilio) or JSON (SendGrid) bodies through here with signature headers preserved. Dispatches to sms-status / sms-inbound / sendgrid-events based on the `_kind` injected via the route's default_payload. Mutates `message_runtime` via UpdateStatus (status callbacks) or insert (inbound SMS). Inbound STOP / STOPALL / UNSUBSCRIBE / CANCEL / END / QUIT suppress the sender's number and START / YES / UNSTOP lift that opt-out; SendGrid events also update Email's delivery state by message id. Signature gating via CRE8_MESSAGING_REQUIRE_WEBHOOK_SIGNATURES.

Calls and output
  • Output keymessaging.result
  • Classificationreal
  • POST /messaging/webhook/sendgrid/eventsHTTP route
  • POST /messaging/webhook/telegramHTTP route
  • POST /messaging/webhook/twilio/sms-inboundHTTP route
  • POST /messaging/webhook/twilio/sms-statusHTTP route
  • POST /messaging/webhook/whatsappHTTP route

Other routes · 18

Routes without a connection
MethodPathKind
GET/messaging/audio/{key}raw handler
GET/messaging/calls/audio/{call_id}/{sid}raw handler
POST/messaging/threads/{thread_id}/attachmentsraw handler
GET/messaging/threads/{thread_id}/attachments/{attachment_id}raw handler
POST/messaging/twiml/inboundraw handler
GET/messaging/twiml/{call_id}raw handler
POST/messaging/twiml/{call_id}raw handler
POST/messaging/twiml/{call_id}/forward-completeraw handler
POST/messaging/twiml/{call_id}/forward-voicemailraw handler
POST/messaging/twiml/{call_id}/forward-whisperraw handler
POST/messaging/twiml/{call_id}/line-completeraw handler
POST/messaging/twiml/{call_id}/recording-completeraw handler
POST/messaging/twiml/{call_id}/status-callbackraw handler
POST/messaging/twiml/{call_id}/turnraw handler
GET/messaging/unsubscriberaw handler
POST/messaging/unsubscriberaw handler
POST/messaging/webhook/twilio/sms-twimlraw handler
GET/messaging/webhook/whatsappraw handler
18 rows

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authorityhyper_with_sql_compat
  • Preferred truthhyper
  • App ownerMessaging
  • SQL projectioncompatibility_projection · DDL declarations: 2
Hyper vertex kinds read
  • ContextPack
  • Inbox
  • MemoryEntry
  • Message
  • ModelTurn
  • ModelTurnStopRequest
  • Thread
  • ThreadCapabilityPolicy
  • ThreadPolicyMutation
  • WorkspaceChangeReview
  • messaging.call_state
Hyper vertex kinds written
  • ContextPack
  • Inbox
  • MemoryEntry
  • Message
  • ModelTurn
  • ModelTurnStopRequest
  • Thread
  • ThreadCapabilityPolicy
  • ThreadPolicyMutation
  • WorkspaceChangeReview
Hyper edge kinds written
  • ModelTurnContextPack
  • ModelTurnPolicy
  • PolicyContextPack
  • PolicyMutationPolicy
  • ThreadCapabilityPolicy
  • ThreadInbox
  • ThreadMessage
  • ThreadModelTurn
  • ThreadPolicyMutation
Asset namespaces read
  • None declared.
Asset namespaces minted
  • cre8/peer/{actor}/messaging/sent/chat
  • cre8/peer/{actor}/messaging/sent/email
  • cre8/peer/{actor}/messaging/sent/push
  • cre8/peer/{actor}/messaging/sent/sms
  • cre8/peer/{actor}/messaging/sent/voice
Model warnings
  • warningApp declares a Hyper graph model and SQL DDL; treat SQL as compatibility/projection until migrated. (hybrid_model)
SQL tables
Table
message_runtime
messaging_suppression_runtime
2 rows

Capabilities and dependencies

Depends on
  • Truth
  • Protocol
  • Intelligence
  • Memory
  • Passport
  • View
  • Atom

Structure review · 3

Warnings · 3