Skip to content

Touch ​

Port: REST :3100 · gRPC :5100

Records and dispatches all outbound communications — email, in-app notices, web push, and SMS. Every create or send operation may trigger real-world communication. Always confirm recipient, content, and channel before acting.

Collections ​

CollectionPathPurpose
Emails/touch/emailsOutbound email records
Notices/touch/noticesIn-app notification records
Pushes/touch/pushesWeb push subscription targets
Push Histories/touch/push-historiesPush delivery attempt records
SMSs/touch/smssOutbound SMS records

touch/push-histories is written by the platform on push delivery. Read it over REST or with the MCP CRUD tools.

touch/emails ​

Stores outbound email envelope and body data.

Required Create Fields ​

FieldRequiredTypeDescription
provider✅EmailProviderNODEMAILER
to✅string[]Recipient email addresses
from✅stringSender email (display name allowed)
subject✅stringEmail subject

Optional Fields ​

FieldTypeDescription
htmlstringHTML body
textstringPlain text body
cc / bccstring[]Additional recipients
reply_tostring[]Reply-to addresses
datedateScheduled send time
attachmentsMongoId[]Raw special/files IDs — not populatable
smtpobjectSMTP delivery metadata

At least one of html or text must be present.

Special Send Operations (platform REST only) ​

POST /touch/emails/send

touch/notices ​

In-app notifications displayed inside client applications.

Required Create Fields ​

FieldRequiredTypeDescription
type✅NoticeTypeINFO, EVENT, ALERT, WARNING, ERROR, SUCCESS, NOTICE, MESSAGE
title✅stringNotice title
content✅stringNotice body

Optional Fields ​

FieldTypeDescription
subtitlestringSecondary title
categorystringCustom grouping label
visitedbooleanRead status
thumbnailMongoIdRaw file ID — not populatable
attachmentsMongoId[]Raw file IDs — not populatable
actionsobject[]Action buttons

touch/pushes ​

Web push subscription targets for browser/device delivery.

Required Create Fields ​

FieldRequiredTypeDescription
session✅MongoIdSession ID
keys✅objectPush subscription keys — write-only, never returned
endpoint✅stringPush endpoint URL
expiration✅numberExpiration Unix timestamp

Special Send Operation (platform REST only) ​

POST /touch/pushes/send

touch/push-histories ​

Delivery attempt records for push notifications.

Written by the platform on delivery. Inspect it over REST or with the MCP CRUD tools; avoid creating entries by hand.

Population ​

PathCollection
totouch/pushes

touch/smss ​

Outbound SMS records.

Required Create Fields ​

FieldRequiredTypeDescription
provider✅SmsProviderBALE, KAVENEGAR, MELIPAYAMAK
message✅stringSMS body
receptors✅string[]Recipient phone numbers (E.164 format)

Optional Fields ​

FieldTypeDescription
senderstringSender number or line ID
resobjectProvider response metadata

Special Send Operations (platform REST only) ​

EndpointPurpose
POST /touch/smss/sendDirect SMS send
POST /touch/smss/send/templateTemplate SMS with parameters