Skip to main content

CHANNEL API Reference

Module Information

Service Files:

  • Private: service/private/channel.js
  • Public: service/channel.js

Available Services: 16 Documented Services: 16


channel.acknowledge

Mark a specific channel message as read/acknowledged by the current user. Broadcasts the updated message state to all other participants in the hub via WebSocket, excluding the sender's socket.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/channel.acknowledge

Parameters

ParameterTypeRequiredDefaultDescription
message_idstringNo-ID of the message to acknowledge
socket_idstringYes-Caller's WebSocket socket ID. Used to exclude the caller from the broadcast recipients.

Returns

FieldTypeDescription
typeany-
docany-

Possible Errors

Error codes not documented


channel.acknowledge_ticket

Mark a support ticket message as read/acknowledged. Broadcasts the acknowledgement to all support domain members and to the current user's own sockets.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/channel.acknowledge_ticket

Parameters

ParameterTypeRequiredDefaultDescription
message_idstringNo-ID of the ticket message to acknowledge
ticket_idstringYes-ID of the ticket that contains the message

Returns

FieldTypeDescription
typeany-
docany-

Possible Errors

Error codes not documented


channel.clear_notifications

Clear all channel notifications for the current user. Broadcasts an empty payload to the user's sockets and clears the notification records in the database.

PropertyValue
ScopeHub (requires hub context)
PermissionWrite (4)

Endpoint:

https://hostname/-/svc/channel.clear_notifications

Parameters

No parameters

Returns

FieldTypeDescription
typeany-
docany-

Possible Errors

Error codes not documented


channel.delete

Delete one or more channel messages. Supports two deletion modes: me (hide from the current user only) or all (delete for all participants, restricted to message author). Broadcasts deletions to hub participants and cleans up any attached files from the file system.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/channel.delete

Parameters

ParameterTypeRequiredDefaultDescription
optionstringYes-Deletion scope. Must be me (hide for current user only) or all (delete for all, author only).
messagesarrayYes-Array of message IDs to delete

Returns

FieldTypeDescription
typeany-
docany-

Possible Errors

Error CodeHTTP StatusDescription
INVALID_OPTION400option is not me or all, or option is all but current user is not the message author
INVALID_MESSAGES404One or more provided message IDs do not exist

channel.enter

Public channel entry point. Accepts an optional message payload and echoes it back. Used for DMZ or guest-level channel access.

PropertyValue
ScopeHub (requires hub context)
PermissionWrite (4)

Endpoint:

https://hostname/-/svc/channel.enter

Parameters

ParameterTypeRequiredDefaultDescription
messagestringNo-Optional message content. Defaults to empty string.

Returns

FieldTypeDescription
typeany-
docany-
propertiesany-

Possible Errors

Error codes not documented


channel.list_tickets

List support tickets for the current user with optional status filter, pagination, and ticket ID search. Retrieves tickets from the user's sharebox (wicket) hub.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/channel.list_tickets

Parameters

ParameterTypeRequiredDefaultDescription
statusarrayNo-Array of status values to filter by. Defaults to new.
pagenumberNo-Page number for pagination (default: 1)
ticket_idstringNo-Optional ticket ID to search for a specific ticket within the results

Returns

FieldTypeDescription
typeany-
docany-

Possible Errors

Error codes not documented


channel.live_message

Public live message endpoint. Accepts an optional message payload and echoes it back. Used for real-time guest or DMZ channel interactions.

PropertyValue
ScopeHub (requires hub context)
PermissionWrite (4)

Endpoint:

https://hostname/-/svc/channel.live_message

Parameters

ParameterTypeRequiredDefaultDescription
messagestringNo-Optional message content. Defaults to empty string.

Returns

FieldTypeDescription
typeany-
docany-
propertiesany-

Possible Errors

Error codes not documented


channel.messages

Retrieve paginated channel messages for the current hub. Enriches each message with author contact information, thread context for replies, and broadcasts an acknowledge signal to all other hub participants.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/channel.messages

Parameters

ParameterTypeRequiredDefaultDescription
orderstringNo-Sort order for messages. asc for oldest first, desc for newest first. Defaults to asc.
pagenumberNo-Page number for pagination (default: 1)

Returns

FieldTypeDescription
typeany-
docany-
itemsobject-
items.entityobjectAuthor contact information from shareroom_contact_get procedure. For messages by the current user, contains only id.
items.threadobjectThread context object if the message is a reply (only present when thread_id is set)

Possible Errors

Error codes not documented


channel.notify

Retrieve channel notification data for the current user. Alias for notify_chat.

PropertyValue
ScopeHub (requires hub context)
PermissionWrite (4)

Endpoint:

https://hostname/-/svc/channel.notify

Parameters

No parameters

Returns

FieldTypeDescription
typeany-
docany-

Possible Errors

Error codes not documented


channel.post

Post a new message to the current hub channel. Supports text messages, threaded replies, and file attachments. Moves attachment files to the appropriate sharebox directory and broadcasts the new message to all hub participants except the sender.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/channel.post

Parameters

ParameterTypeRequiredDefaultDescription
messagestringNo-Text content of the message. Defaults to empty string. Single quotes are automatically escaped.
thread_idstringNo-Message ID of the parent message to reply to. Creates a threaded reply when provided.
attachmentarrayNo-Array of file node IDs to attach to the message. Files are moved to the message directory in the sharebox hub.
socket_idstringYes-Caller's WebSocket socket ID. Used to exclude the caller from the broadcast recipients.
echoIdstringNo-Client-side echo identifier for optimistic UI updates

Returns

FieldTypeDescription
typeany-
docany-
propertiesany-

Possible Errors

Error codes not documented


channel.post_ticket

Post a reply message to an existing support ticket. Supports threaded replies and file attachments. Broadcasts the new message to the ticket owner and all support domain members.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/channel.post_ticket

Parameters

ParameterTypeRequiredDefaultDescription
ticket_idstringYes-ID of the ticket to post a reply to
messagestringNo-Text content of the reply. Defaults to empty string.
thread_idstringNo-Message ID of the parent message to reply to within the ticket thread
attachmentarrayNo-Array of file node IDs to attach to the ticket reply
echoIdstringNo-Client-side echo identifier for optimistic UI updates

Returns

FieldTypeDescription
typeany-
docany-
propertiesany-

Possible Errors

Error CodeHTTP StatusDescription
INVALID_TICKET404No ticket found with the given ticket_id

channel.read

Mark all messages in a channel as read up to a given message ID for the current user.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/channel.read

Parameters

ParameterTypeRequiredDefaultDescription
idstringNo-Message ID up to which all messages are marked as read via channel_read_messages procedure

Returns

FieldTypeDescription
typeany-
docany-

Possible Errors

Error codes not documented


channel.send_ticket

Create a new support ticket with an initial message. Optionally includes file attachments, category tags, affected areas, and recurrence flag. Automatically sends an auto-reply, broadcasts to the ticket owner and all support domain members.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/channel.send_ticket

Parameters

ParameterTypeRequiredDefaultDescription
messagestringYes-Initial ticket message content. Single quotes are automatically escaped.
categoryarrayYes-Array of category tags for the ticket (e.g. tech, design, enhancement, notunderstand)
attachmentarrayNo-Array of file node IDs to attach to the ticket. Defaults to empty array.
wherearrayNo-Array of platform area identifiers where the issue occurred (e.g. desktop, chat, teamroom). Defaults to empty array.
alltimenumberNo-Flag indicating if the issue is recurring. Defaults to 0.
echoIdstringNo-Client-side echo identifier for optimistic UI updates

Returns

FieldTypeDescription
typeany-
docany-
propertiesany-

Possible Errors

Error codes not documented


channel.show_ticket

Retrieve the full message thread for a support ticket including author contact enrichment, metadata parsing, category and location display labels, and thread context for replies. Broadcasts acknowledgement signals to support members for newly read messages.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/channel.show_ticket

Parameters

ParameterTypeRequiredDefaultDescription
ticket_idstringYes-ID of the ticket whose messages to retrieve
pagenumberNo-Page number for pagination (default: 1)

Returns

FieldTypeDescription
typeany-
docany-
itemsobject-
items.entityobjectAuthor contact information from shareroom_contact_get procedure
items.metadataobjectParsed message metadata including category_display and where_display label arrays for ticket messages
items.threadobjectThread context object if the message is a reply

Possible Errors

Error codes not documented


channel.to_read

Get the number of unread message pages for the current user in the channel. Alias for pages_to_read.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/channel.to_read

Parameters

No parameters

Returns

FieldTypeDescription
typeany-
docany-

Possible Errors

Error codes not documented


channel.update_ticket

Update the metadata (e.g. status) of an existing support ticket. Restricted to users belonging to the configured support domain. Broadcasts the updated ticket to the ticket owner and all support domain members.

PropertyValue
ScopeHub (requires hub context)
PermissionWrite (4)

Endpoint:

https://hostname/-/svc/channel.update_ticket

Parameters

ParameterTypeRequiredDefaultDescription
ticket_idstringYes-ID of the ticket to update
statusstringNo-New status value to set on the ticket metadata

Returns

FieldTypeDescription
typeany-
docany-

Possible Errors

Error CodeHTTP StatusDescription
INVALID_DOMAIN403Current user does not belong to the configured support domain
INVALID_TICKET404No ticket found with the given ticket_id

  • ACL System - Permission model
  • Service Routing - URL patterns
  • Error Handling - Error codes