Skip to main content
UnifiedMessage is the canonical message envelope used by Hiro Server, channel plugins, Hiro Gate device traffic, and device apps. Use this page as the detailed field reference for the UnifiedMessage part of the Protocol contract.

Top-level envelope

Message types

MessageRouting

Direction is server-relative:

ContentItem

Content item order is meaningful. Consumers preserve the order emitted by the sender.

Content types

The repo-level JSON schema constrains content_type to these values.

EventPayload

Event types

The repo-level JSON schema constrains event.type to these values.

Request body

Request messages use message_type: "request" and carry a JSON content item.
Implemented request methods:

Response body

Successful responses use status: "ok".
Error responses use status: "error".

Metadata keys

Metadata may contain channel-specific extras, but these keys are protocol-significant because server or client behavior depends on them.

Wire examples

Text message

Event

Request

Response

Implementation references


See also

Protocol contract

The wider protocol boundary across messages, gateway envelopes, auth frames, and pairing frames.

Communication Manager

How Hiro Server routes and validates UnifiedMessage payloads.

Channel Plugins

How channel plugins exchange UnifiedMessages with Hiro Server.