WebSocket API
Real-time updates via Socket.IO with Redis adapter
Connection
import { io } from 'socket.io-client';
const socket = io('https://devadm.mmonster.co/admin', {
auth: { token: 'your-jwt-token' }
});
socket.emit('subscribe', {
entities: { orders: [101], deals: [555] }
});
socket.on('orders:updated', (data) => console.log(data));
Namespaces
- /admin Admin JWT / CRM access token — Admin namespace for CRM panel
- /provider Logto JWT — Provider namespace for Provider API clients
- /widget Widget key — Widget namespace for embeddable customer widgets
- /customer Store key + optional session / anonymous token — Customer API namespace for external Customer App clients
- /stat Public — Statistics namespace for real-time public counters
Events
admin namespace
chat:reaction:addedChat reaction addedServer → clientchat:reaction:removedChat reaction removedServer → clientattention_alertMention attention alertServer → clientnotifications:messageAdmin notification changedServer → clientchat:activityChat list activityServer → clientorder_sync:{sourceRefId}:messageOrder import completedServer → clientattention:dismissedAttention event dismissedServer → clientattention:snoozedAttention event snoozedServer → clientorder:migration_startedOrder chat migration startedServer → clientorder:migration_completedOrder chat migration completedServer → clientorder:migration_failedOrder chat migration failedServer → client{domain}:updatedEntity updated in domainServer → client{domain}_feed:messageEntity feed messageServer → clientmattermost:{channelId}:messageMattermost timeline updateServer → client{domain}:event_logDomain event log entryServer → clientsocket:metrics_updatedSocket metrics updatedServer → clientpresence:updatePresence status changedServer → clientpresence:resultPresence query resultServer → clientuser:typingUser started typingServer → clientuser:typing:stopUser stopped typingServer → clientchat:messageChat message receivedServer → clientchat:notificationChat notificationServer → clientchannel:readChannel marked as readServer → clientmessage:readMessage read receiptServer → clientchat:alertChat alert for profileServer → clientchat:{chatId}:messageChat assignment changedServer → clientfollowed_chatsFollowed chats listServer → clientchat:createdNew chat entity createdServer → clientattention:item_addedAttention item addedServer → clientattention:item_removedAttention item removedServer → clientattention:item_resolvedAttention item resolvedServer → clientattention:item_snoozedAttention item snoozedServer → clientattention:item_restoredAttention item restoredServer → clientattention:item_movedAttention item movedServer → clientattention:items_changedAttention items bulk changeServer → clientattention:reraisedAttention item reraised (legacy)Server → clientsubscribeSubscribe to domains and channelsClient → serverunsubscribeUnsubscribe from domains and channelsClient → serverget_followed_chatsRequest followed chatsClient → serverchannel:viewingStart viewing channelClient → serverchannel:leftStop viewing channelClient → serverpresence:queryQuery presence statusClient → servertyping:startStart typing indicatorClient → servertyping:stopStop typing indicatorClient → serverprovider namespace
chat:reaction:addedChat reaction addedServer → clientchat:reaction:removedChat reaction removedServer → clientnotification:{eventType}Recipient notification changedServer → clientattention_alertMention attention alertServer → clientchannel:updatedChannel status changedServer → clientoffer:listedOffer listedServer → clientoffer:delistedOffer delistedServer → clientnotification:soundNotification sound cueServer → clientattention:refreshRefresh provider attentionServer → clientevent_logActivity timeline eventServer → clientpresence:updatePresence status changedServer → clientpresence:resultPresence query resultServer → clientuser:typingUser started typingServer → clientuser:typing:stopUser stopped typingServer → clientchat:messageChat message receivedServer → clientchat:actionEmbed action clickedServer → clientchat:notificationChat notificationServer → clientchannel:readChannel marked as readServer → clientmessage:readMessage read receiptServer → clientchat:alertChat alert for profileServer → clientchat:createdNew chat channel availableServer → clienttyping:startStart typing indicatorClient → servertyping:stopStop typing indicatorClient → serverpresence:queryQuery presence statusClient → serverwidget namespace
widget:updateWidget configuration updateServer → clientwidget:intercom:notifyIntercom ticket notificationServer → clientdiscord:request-responseDiscord request responseServer → clientdiscord:request-sendSend Discord boost requestClient → servercustomer namespace
chat:reaction:addedChat reaction addedServer → clientchat:reaction:removedChat reaction removedServer → clientnotification:{eventType}Recipient notification changedServer → clientevent_logActivity timeline eventServer → clientchat:messageChat message from MattermostServer → clientchat:actionEmbed action clickedServer → clientorder:updatedOrder changedServer → clientdeal:updatedDeal updatedServer → clientticket:updatedTicket updatedServer → clientcoins:updatedCoins balance changedServer → clientidentity:revokedIdentity revoked (storefront logout or sign-out-all)Server → clientchannel:readChannel marked as readServer → clientmessage:readPer-message read boundaryServer → clientidentity:updateIdentity field became availableServer → clientchat:createdNew chat channel availableServer → clientchannel:updatedChannel status changedServer → clientuser:typingUser started typingServer → clientuser:typing:stopUser stopped typingServer → clientpresence:updatePresence status changedServer → clienttyping:startStart typing indicatorClient → servertyping:stopStop typing indicatorClient → serverchat:subscribeSubscribe to chat roomClient → serverstat namespace
stat:loadInitial statistics snapshotServer → clientstat:updateIncremental statistics updateServer → clientWebhook Events
Outbound HTTP callbacks dispatched when platform events occur
Overview
Subscribe to events via the REST API (POST /crm/webhook-subscriptions).
When an event fires, the platform sends a signed HTTP POST to your endpoint with the event payload.
Event types follow the pattern domain.event_type (e.g., deal.status_changed).
Subscription filters use colon notation: deal:* matches all deal events.
- HMAC All deliveries signed with HMAC-SHA256 — verify via
X-Webhook-Signatureheader - RETRY Failed deliveries retried with exponential backoff (default: 3 attempts; configurable per subscription)
Events (56)
deal
deal.updatedDeal fields updateddeal.provider_changedDeal provider changeddeal.scheduled_date_triggeredDeal scheduled date triggereddeal.timing_addedDeal timing addeddeal.timing_updatedDeal timing updateddeal.link_addedDeal external link addeddeal.link_updatedDeal external link updateddeal.createdDeal createddeal.status_changedDeal status changeddeal.provider_assignedProvider assigned to dealdeal.provider_reassignedProvider reassigned to dealdeal.completedDeal completeddeal.returnedDeal returned for revisiondeal.note_updatedDeal note updateddeal.reminder_triggeredDeal reminder triggereddeal.deadline_triggeredDeal deadline triggereddeal.message_sentDeal message sentdeal.report_offlineClient reported offlinedeal.report_problemDeal problem reportedorder
order.link_addedOrder external link addedorder.link_updatedOrder external link updatedorder.createdOrder createdorder.status_changedOrder status changedorder.payment_status_changedOrder payment status changedorder.shipping_status_changedOrder shipping status changedorder.note_updatedOrder note updatedorder.updatedOrder updatedorder.coins_transactionOrder coins transactionpayout
payout.createdPayout requestedpayout.status_changedPayout status changedpayout.note_updatedPayout note updatedpayout.updatedPayout updatedcustomer
customer.createdCustomer createdcustomer.kyc_completedCustomer KYC completedcustomer.kyc_requestedCustomer KYC requestedcustomer.kyc_status_changedCustomer KYC status changedcustomer.coins_adjustedCustomer coins adjustedcustomer.manager_assignedCustomer manager assignedcustomer.manager_reassignedCustomer manager reassignedcustomer.updatedCustomer updatedcustomer.note_updatedCustomer note updatedprovider
provider.createdProvider createdprovider.status_changedProvider status changedprovider.note_updatedProvider note updatedprovider.updatedProvider updatedproduct
product.createdProduct createdproduct.pricing_changedProduct pricing changedproduct.autodeal_changedProduct auto-deal config changedproduct.updatedProduct updatedprofile
profile.createdProfile createdprofile.kyc_status_changedProfile KYC status changedprofile.kyc_requestedProfile KYC requestedprofile.username_changedProfile username changedprofile.updatedProfile updatedstore
store.createdStore createdstore.updatedStore updatedLoading changelog...