Messaging reference
4 pages, 64 routes, 39 connections and 0 CLI commands, generated from the declarations of Messaging without reading storage or running anything.
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
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| Call | messaging.call | detail | /view/messaging/calls/{call_id} | 0 | messaging.calls | Call | hidden |
| Call script | messaging.call_script | detail | /view/messaging/calls/scripts/{script_id} | 0 | messaging.calls | CallScript | hidden |
| List | messaging.inbox | list | /view/messaging/list | 0 | Message | in navigation | |
| Message thread | messaging.message.detail | detail | /view/messaging/{message_id} | 0 | messaging.inbox | Thread | hidden |
| New chat | messaging.thread.create | editor | /view/messaging/chat/create | 0 | messaging.thread.workbench | Thread | hidden |
| Conversation thread | messaging.thread.detail | detail | /view/messaging/chat/{thread_id} | 0 | messaging.thread.workbench | Thread | hidden |
| Conversations | messaging.thread.workbench | list | /view/messaging/chat | 20 | Thread | in navigation | |
| Calls | messaging.calls | list | /view/messaging/calls | 30 | Call | in navigation | |
| Phone | messaging.phone | custom | /view/messaging/phone | 60 | Call | in navigation |
Connections · 39
Messaging.AddThreadMembers
The owner adds people or agents to a group or agent thread; repeats change nothing.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| members | required |
- Output keymessaging.result
- Classificationreal
- POST /messaging/threads/members/addHTTP route
Messaging.CallArchive
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| call_id | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| call_id | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| call_id | required | |||
| sid | required |
- 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.
- 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.
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| subject_kind | required | |||
| subject_id | required | |||
| limit | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| subject_kind | required | |||
| subject_id | required | |||
| content | required | |||
| parent_id | optional | |||
| actor | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| participants | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| message_id | required |
- Output keymessaging.result
- Classificationreal
- POST /messaging/threads/messages/deleteHTTP route
Messaging.EditThreadMessage
The author replaces a message's text and edited_at is stamped.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| message_id | required | |||
| content | required |
- Output keymessaging.result
- Classificationreal
- POST /messaging/threads/messages/editHTTP route
Messaging.EmailFeedback
- Output keymessaging.result
- Classificationunclassified
- POST /messaging/webhook/email-feedbackHTTP route
Messaging.EmailInbound
- Output keymessaging.result
- Classificationunclassified
- POST /messaging/webhook/sendgrid/inboundHTTP route
Messaging.Get
Fetch a single message by id.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| id | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| limit | optional | |||
| before_ts | optional | |||
| rows | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required |
- Output keymessaging.result
- Classificationreal
- POST /messaging/threads/leaveHTTP route
Messaging.List
List recent messages with optional direction / channel / status filters.
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| identity | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| through_message_id | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| content | optional | |||
| parts | optional | |||
| stage | optional | |||
| idempotency_key | required |
- Output keymessaging.result
- Classificationconflict
- POST /messaging/threads/turnHTTP route
Messaging.PhoneAnswer
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| call_id | required |
- Output keymessaging.result
- Classificationunclassified
- POST /messaging/phone/answerHTTP route
Messaging.PhoneDecline
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| call_id | required |
- 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.
- 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.
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| context_memory_content | required | |||
| context_memory_tags | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| title | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| turn_id | required | |||
| event_id | required | |||
| decision | optional |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| channel | required | |||
| to | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| author | optional | |||
| content | optional | |||
| parts | optional |
- Output keymessaging.result
- Classificationreal
- POST /messaging/threads/sendHTTP route
Messaging.SetThreadFlags
Set the caller's own mute, pin and archive flags on a thread.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| muted | optional | |||
| pinned | optional | |||
| archived | optional |
- 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.
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| turn_id | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| to | required |
- 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.
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| to | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| status | required |
- 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.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| thread_id | required | |||
| expected_policy_hash | required | |||
| transcript_message_limit | required | |||
| max_output_tokens | required | |||
| provider_id | optional | |||
| model | optional | |||
| context_memory_entry_id | optional | |||
| clear_context_pack | optional | |||
| workspace_id | optional | |||
| workspace_allow_edits | optional | |||
| workspace_allow_shell | optional | |||
| workspace_max_tool_rounds | optional | |||
| clear_workspace | optional | |||
| idempotency_key | required |
- Output keymessaging.result
- Classificationconflict
- POST /messaging/threads/policyHTTP route
Messaging.ViewPatch
Live SSR patch for the Messaging inbox view.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| message_id | optional |
- 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.
- 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
| Method | Path | Kind |
|---|---|---|
| GET | /messaging/audio/{key} | raw handler |
| GET | /messaging/calls/audio/{call_id}/{sid} | raw handler |
| POST | /messaging/threads/{thread_id}/attachments | raw handler |
| GET | /messaging/threads/{thread_id}/attachments/{attachment_id} | raw handler |
| POST | /messaging/twiml/inbound | raw handler |
| GET | /messaging/twiml/{call_id} | raw handler |
| POST | /messaging/twiml/{call_id} | raw handler |
| POST | /messaging/twiml/{call_id}/forward-complete | raw handler |
| POST | /messaging/twiml/{call_id}/forward-voicemail | raw handler |
| POST | /messaging/twiml/{call_id}/forward-whisper | raw handler |
| POST | /messaging/twiml/{call_id}/line-complete | raw handler |
| POST | /messaging/twiml/{call_id}/recording-complete | raw handler |
| POST | /messaging/twiml/{call_id}/status-callback | raw handler |
| POST | /messaging/twiml/{call_id}/turn | raw handler |
| GET | /messaging/unsubscribe | raw handler |
| POST | /messaging/unsubscribe | raw handler |
| POST | /messaging/webhook/twilio/sms-twiml | raw handler |
| GET | /messaging/webhook/whatsapp | raw handler |
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper_with_sql_compat
- Preferred truthhyper
- App ownerMessaging
- SQL projectioncompatibility_projection · DDL declarations: 2
- ModelTurnContextPack
- ModelTurnPolicy
- PolicyContextPack
- PolicyMutationPolicy
- ThreadCapabilityPolicy
- ThreadInbox
- ThreadMessage
- ThreadModelTurn
- ThreadPolicyMutation
- None declared.
- 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
- warningApp declares a Hyper graph model and SQL DDL; treat SQL as compatibility/projection until migrated. (hybrid_model)
| Table |
|---|
| message_runtime |
| messaging_suppression_runtime |
Capabilities and dependencies
- Truth
- Protocol
- Intelligence
- Memory
- Passport
- View
- Atom
Structure review · 3
- Call · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- CallScript · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Messaging · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)