167 event types. Where more than one document describes an event, the entry shows the owning document's description and links the others.

00 Overview, architecture and conventions

call.epoch_ready

Each call participant posts it after installing a new epoch's media keys. Owned by 15.

Direction
client-to-server
Specification
00 §6 HP-5

mls.epoch_ack

Devices post it after processing each commit (used for media switching and log cleanup). Transport not stated in 00. Owned by 13.

Direction
client-to-server
Specification
00 §6 HP-3

02 Discovery, server metadata and server keys

discovery.metadata_changed

Tells clients to refetch the server's ServerMetadata now (bypassing cache, after 0–30 s jitter, 0–5 s when urgent); payload is only a trigger. Sent within 60 s of a non-cosmetic change (10 s when urgent) to every WebSocket session open on the server, local or remote.

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
02 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
canonicalDomainstringYesThe server whose metadata changed.
updatedAttimestampYesThe new updatedAt.
changesarray<MetadataChange>YesWhich parts changed.
any of keys, domains, endpoints, auth, limits, features, versions, secure, other; unknown values treated as other
urgentbooleanYesTrue when a key was revoked (§11.7).

Also described in 00 §7.5, 02 §16.1, 06 §10.1.

discovery.peer_resumed

A federation pin left suspended.

Direction
server-to-client
Class
durable
Stream
me (of every local account holding the admin system role)
Specification
02 §16.3
Payload fields
NameTypeRequiredMeaning and constraints
domainstringYesThe domain.
howResumeHowYesHow the suspension ended.
auto | evidence | admin; unknown treated as auto
baseUrlstringYesBase URL (the spec gives only its type, string).

discovery.peer_suspended

A federation pin entered suspended; payload is the PeerPin. Ordinary users never receive it.

Direction
server-to-client
Class
durable
Stream
me (of every local account holding the admin system role)
Specification
02 §16.2
Payload fields
NameTypeRequiredMeaning and constraints
(PeerPin)PeerPinYesThe PeerPin (§10.5) in state suspended.
state suspended

03 Client transport, envelopes and errors

error

WebSocket error: envelope with t "error", the problem object in d, re when answering a client message, no ctx or seq. An error that ends the connection is followed by session.closing and a close code.

Direction
server-to-client
Class
session
Specification
03 §6.3
Payload fields
NameTypeRequiredMeaning and constraints
(problem object members)ProblemObjectYesThe problem object (§10.1) is d itself.
status = HTTP status of the same condition, or §10.6 status for session.* codes

Also described in 00 §7.4.

session.closing

Sent by the server before closing a socket on purpose; the server then closes within 1 s.

Direction
server-to-client
Class
session
Specification
03 §5.10
Payload fields
NameTypeRequiredMeaning and constraints
reasonClosingReasonYesWhy the socket is closing.
unknown value: follow reconnect and retryAfterMs
reconnectbooleanYesWhether the client should reconnect automatically.
retryAfterMsintegerNoMinimum delay before reconnecting.
ms
problemProblemObjectNoProblem object explaining the close.
for session_ended, unauthenticated, unsupported_version and rate_limited

session.heads

Latest positions of heads-level streams for unread indicators. Control message, coalescable; one right after session.ready/session.subscribed covering new heads subscriptions, then at most one per socket every 2 s listing only changed streams.

Direction
server-to-client
Class
session
Specification
03 §5.7
Payload fields
NameTypeRequiredMeaning and constraints
headsobject<ctx-ref, Head>YesMap from context reference to a Head object.
keys are context references

session.hello

First message on every socket: authenticates the socket and sets up subscriptions in one round trip. Reply: session.ready or error.

Direction
client-to-server
Class
session
Specification
03 §5.4
Payload fields
NameTypeRequiredMeaning and constraints
tokenstringYesClient-session access token or, at the bot's home server only, a bot token. Server recognizes the kind from the token itself (bot tokens carry svb_ prefix, 05); no scheme member.
§3.1 credential syntax, at most 4,096 characters; never an S2S token
clientstringYesProduct and version, e.g. sloppyvoice-desktop/1.0.3. Diagnostics only.
1 to 128 printable ASCII characters
protocolstringNoProtocol version the client implements.
version grammar major.minor (§12.1); default "1.0"
featuresarray<string>YesFeatures the client supports (§12.2).
at most 64 entries; MAY be empty; unknown names ignored
resumeobject<stream, integer>NoMap stream name -> client position; each entry asks for a full subscription replaying everything after that position. Position 0 asks for the stream from its start.
positions integer >= 0
subscribearray<string>NoStreams to subscribe at level full from their current head, no replay.
stream names
headsarray<string>NoContext references to subscribe at level heads (§5.7).
context references only (community refused with core.invalid_request; me ignored)
foregroundbooleanNoInitial foreground state (§5.8). A client with a visible UI MUST send true when visible.
default false

Also described in 00 §7.4.

session.ping

Server heartbeat every 30 s (pingIntervalMs) on every ready socket, up to 1 s jitter. Client answers at once with session.pong (re = ping id).

Direction
server-to-client
Class
session
Specification
03 §5.9

Also described in 00 §7.4, 03 §5.9.

session.pong

Client's answer to the server's session.ping, re = ping id, d {}. Never counts toward the socket rate limit.

Direction
client-to-server
Class
session
Specification
03 §5.9

Also described in 03 §5.9.

session.ready

Reply to a successful session.hello (re = hello id). Followed per stream by session.resync_required if needed, replays, then live events.

Direction
server-to-client
Class
session
Specification
03 §5.5
Payload fields
NameTypeRequiredMeaning and constraints
connuuidv7YesIdentifies this connection, for diagnostics and support.
accountstringYesThe session's account.
canonical address (01)
didstringYesThe session's device ID.
did grammar (§8.4)
serverstringYesThe server's canonical domain.
canonical domain
protocolstringYesHighest protocol version of the client's major version that the server implements.
major.minor
featuresarray<string>YesEffective feature set: intersection of server metadata features and hello features.
pingIntervalMsintegerYesServer ping interval (§5.9).
30000 in this version
idleTimeoutMsintegerYesIdle timeout (§5.9).
75000 in this version
authExpiresAttimestamp|nullYesThe socket's authentication deadline (when the hello token expires); null for a non-expiring token such as a bot token without expiresAt.
subscriptionsarray<SubscriptionResult>YesSubscription results (§5.6).
one per stream named in the hello, plus me

session.reauth

Extends the socket's authentication deadline in-band without reconnecting. Counts toward the socket rate limit. Reply: session.reauthed or error.

Direction
client-to-server
Class
session
Specification
03 §5.13
Payload fields
NameTypeRequiredMeaning and constraints
tokenstringYesTypically the access token a silent refresh (05) or remote-session renewal (06) just produced.
§3.1 syntax; a currently valid token of the same client session

session.reauthed

Answer to an accepted session.reauth (re set) with the new deadline.

Direction
server-to-client
Class
session
Specification
03 §5.13
Payload fields
NameTypeRequiredMeaning and constraints
authExpiresAttimestamp|nullYesNew authentication deadline; null for a non-expiring token.

session.resync_required

The server can't bring a stream up to date by replay; client refetches state over HTTP. MAY be sent at any time.

Direction
server-to-client
Class
session
Specification
03 §7.5
Payload fields
NameTypeRequiredMeaning and constraints
streamstringYesThe stream.
stream name
reasonResyncReasonYesWhy replay is impossible.
unknown value treated like gap_too_large
headSeqintegerYesStream head when sent; live events continue from headSeq + 1.

Also described in 00 §7.4.

session.state

Tells the server whether the user can currently see the app. No reply.

Direction
client-to-server
Class
session
Specification
03 §5.8
Payload fields
NameTypeRequiredMeaning and constraints
foregroundbooleanYestrue when the user can see the app; false otherwise.
foreground: true at most once per 5 s; false any time and applied at once

session.subscribe

Adds or changes subscriptions after session.ready. At least one member MUST be non-empty; invalid payload gets a non-fatal error core.invalid_request. Reply: session.subscribed.

Direction
client-to-server
Class
session
Specification
03 §5.6
Payload fields
NameTypeRequiredMeaning and constraints
resumeobject<stream, integer>NoResume entries; for an already-subscribed stream restarts it from the given position with replay (gap repair).
as in session.hello
subscribearray<string>NoFull subscriptions from head; for a stream already full returns ok with current headSeq. Naming a heads stream here upgrades it to full.
as in session.hello
headsarray<string>NoHeads subscriptions; naming a full stream here downgrades it to heads.
as in session.hello

session.subscribed

Answer to session.subscribe (re set). Replays and session.resync_required for the new subscriptions follow it.

Direction
server-to-client
Class
session
Specification
03 §5.6
Payload fields
NameTypeRequiredMeaning and constraints
subscriptionsarray<SubscriptionResult>YesSubscription results.
one result per stream named, any order

session.subscription_ended

The server ended a subscription on its own (continuous authorization lost: kick, ban, leave, needs_encryption, permission change, deletion, device revocation, session end).

Direction
server-to-client
Class
session
Specification
03 §5.6
Payload fields
NameTypeRequiredMeaning and constraints
streamstringYesThe stream.
stream name
problemProblemObjectYesWhy: e.g. core.forbidden, core.gone, security.account_required, or an owner's code.

session.unsubscribe

Removes subscriptions. Streams not subscribed, and me, are ignored. Reply: session.unsubscribed.

Direction
client-to-server
Class
session
Specification
03 §5.6
Payload fields
NameTypeRequiredMeaning and constraints
streamsarray<string>YesStreams to remove.
at least one entry

session.unsubscribed

Answer to session.unsubscribe (re set). Server MUST NOT send any event of a removed stream afterwards.

Direction
server-to-client
Class
session
Specification
03 §5.6
Payload fields
NameTypeRequiredMeaning and constraints
streamsarray<string>YesThe streams the server removed.

05 Accounts, login, sessions, devices and bots

account.deleted

The account was deleted; sent before device sockets are closed (§16.2 step 2).

Direction
server-to-client
Class
durable
Stream
me
Specification
05 §16.3
Payload fields
NameTypeRequiredMeaning and constraints
addrstringYesCanonical address.
kindAccountKindYesuser | bot
incbase64urlYesReceivers apply only to this incarnation.
deletedAttimestampYes
igenintegerYesLast identity generation.
0 if never secure
reasonDeletionReasonYesuser | owner | admin | unconfirmed; unknown treated as admin

Also described in 00 §7.5, 05 §16.3, 06 §10.1.

account.profile_changed

S2S hint that the public profile changed, coalesced over 60 s; lane normal; orderKey d.addr; unknown -> ignored. Receiver refetches if cached profileVersion is lower; discards cache on a different inc.

Direction
server-to-server
Lane
normal
Specification
05 §17.4
Payload fields
NameTypeRequiredMeaning and constraints
addrstringYes
incbase64urlYes
profileVersionintegerYesNew version.

Also described in 00 §7.5, 06 §10.1.

account.suspended

S2S notice of suspension; receivers end remote sessions of (addr, inc) within 60 s and revoke voice leases; restoration sends nothing. Lane high; orderKey canonical address; no expiresAt; no give-up hook; unknown -> ignored.

Direction
server-to-server
Lane
high
Specification
05 §11.8
Payload fields
NameTypeRequiredMeaning and constraints
addrstringYes
incbase64urlYesApply only to this incarnation.
kindAccountKindYesuser | bot
suspendedAttimestampYes

Also described in 00 §7.5, 06 §10.1.

account.updated

Any change to the Account object, including state, security and profile.

Direction
server-to-client
Class
durable
Stream
me
Specification
05 §18
Payload fields
NameTypeRequiredMeaning and constraints
accountAccountYes

auth.provider_linked

A provider was linked (§10.3).

Direction
server-to-client
Class
durable
Stream
me
Specification
05 §18
Payload fields
NameTypeRequiredMeaning and constraints
linkProviderLinkYes

auth.provider_unlinked

A provider was unlinked (§10.4), or a link created by a replayed code was undone (§6.6).

Direction
server-to-client
Class
durable
Stream
me
Specification
05 §18
Payload fields
NameTypeRequiredMeaning and constraints
linkIduuidv7Yes

bot.created

A bot was created (§15.2).

Direction
server-to-client
Class
durable
Stream
me (owner's devices)
Specification
05 §18
Payload fields
NameTypeRequiredMeaning and constraints
botBotYes

bot.deleted

The bot was deleted.

Direction
server-to-client
Class
durable
Stream
me (owner's devices)
Specification
05 §18
Payload fields
NameTypeRequiredMeaning and constraints
addrstringYesBot's canonical address.

bot.updated

Any change to the bot or its tokens.

Direction
server-to-client
Class
durable
Stream
me (owner's devices; old and new owner on transfer)
Specification
05 §18
Payload fields
NameTypeRequiredMeaning and constraints
botBotYes

device.added

A device record was created by login, sign-up or bot-token creation; via login raises W4d on other devices.

Direction
server-to-client
Class
durable
Stream
me
Specification
05 §18
Payload fields
NameTypeRequiredMeaning and constraints
deviceDeviceRecordYes
viaDeviceAddedViaYeslogin | signup | bot_token; unknown treated as login

device.updated

Rename, enrolment change, bot token rotation.

Direction
server-to-client
Class
durable
Stream
me
Specification
05 §18
Payload fields
NameTypeRequiredMeaning and constraints
deviceDeviceRecordYes

06 Federation

federation.session_ended

A remote session was ended (no seq, ctx = me); sent on each WebSocket of the session before session.closing (session_ended) and close code 4004.

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
06 §6.8, §17.2
Payload fields
NameTypeRequiredMeaning and constraints
sessionIduuidv7YesThe ended session.
reasonSessionEndReasonYesWhy it ended (§6.8, plus expired or extension_limit).
Client treats unknown value as admin
retrybooleanYesWhether the client should silently try to create a new session.

07 Identity keys, certificates and verification

device.revoked

A device of the account was revoked (§11.8), or a DeviceRevocation was attached later (§11.7). Sent in both §11.8 cases, including an unlisted device (unenrolled, or of an insecure account), where state is the unchanged current state; delivered with actor to every session of every device of the subject, including unenrolled ones (§12.3).

Direction
server-to-client
Class
durable
Stream
me at the subject's home server
Specification
07 §12.2
Payload fields
NameTypeRequiredMeaning and constraints
substringYesSubject
didstringYesThe revoked device
16 bytes base64url
revokedAttimestampYesTime of the revocation
RFC 3339; the RevokedEntry at when there is one
igenintegerYesCurrent igen
dkfstringNoThumbprint of the revoked device's DSK
present when the device was listed
verintegerYesver of state
statestring (IdentityState JWS)YesIdentityState after the revocation
for an unlisted device, the unchanged current state
revstring (DeviceRevocation JWS)NoThe DeviceRevocation JWS, if one exists
hint only; evidence only inside state (§8.2 rule 3)
actorActorNoAs in §12.1
only to own devices

Also described in 00 §6 HP-7, §7.5, 06 §10.1, 07 §12.2, §12.3.

identity.changed

An account's identity generation, security state or device set grew (upgrade, re-upgrade, reset, downgrade or device registration); delivered to every session of every device of the subject, including unenrolled ones, with actor.

Direction
server-to-client
Class
durable
Stream
me at the subject's home server
Specification
07 §12.1
Payload fields
NameTypeRequiredMeaning and constraints
substringYesSubject
canonical address
changeIdentityChangeKindYesKind of change (hint)
upgraded, reset, downgraded or device_added; unknown value = unspecified change, act only on state
verintegerYesver of state
igenintegerYesigen of state
prevIgenintegerYesigen before the change
secstringYessec of state
insecure or secure
statestring (IdentityState JWS)YesThe IdentityState JWS after the change; the only evidence
deviceAddedDeviceNoThe added device
required when change is device_added; {"did": string, "plat": string}
actorActorNoThe initiating device and time of the change
only on delivery to the subject's own devices; {"did", "plat", "changedAt" (RFC 3339)}; MUST NOT be sent S2S or to anyone else

Also described in 00 §6 HP-7, §7.5, 06 §10.1, 07 §12.1, §12.3.

identity.refresh_hint

Sent once per session by a DM hosting server that received an S2S identity.changed or device.revoked to every other participant of every DM or group DM that includes the subject; never replayed.

Direction
server-to-client
Class
ephemeral
Stream
me at a DM hosting server, targeted at the sessions of DM participants
Specification
07 §12.3
Payload fields
NameTypeRequiredMeaning and constraints
substringYesCanonical address of the subject
verintegerYesver of state
statestring (IdentityState JWS)YesThe IdentityState JWS the hosting server received with the S2S event

08 Turning on encryption, pairing, backup and the vault

backup.updated

Sent to the account's enrolled devices other than the writer after a KeyBackup update; devices update prevVer and apply §5.6.4, without downloading the backup.

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
08 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
igenintegerYesIdentity generation.
verintegerYesNew backup version (use as prevVer).
vgenintegerYesVault generation in backup.
phraseIdbase64urlYesPhrase ID of the active backup.
16 bytes
updatedAttimestampYesWrite time.
updatedBystringYesWriter.
did

pairing.message

Relays one pairing protocol message to the participant it is addressed to.

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
08 §14.1, §6.4.4
Payload fields
NameTypeRequiredMeaning and constraints
pairingIduuidv7YesSession ID.
nintegerYesMessage index.
from 1
typeenum PairingMessageTypeYesMessage type.
fromstringYesSender device.
did
bodyobjectYesType-specific body.
sentAttimestampYesWhen the server accepted it.

Also described in 00 §8 F4.

pairing.requested

Sent to every enrolled device of the account when a new device creates a pairing session; shows the M5 approval prompt.

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
08 §14.1
Payload fields
NameTypeRequiredMeaning and constraints
(PairingSession)PairingSessionYesThe session.
§6.2

Also described in 00 §6 HP-14, §8 F4.

pairing.updated

Sent to both participants on every state change, and to every prompted device when the session leaves waiting (so prompts disappear).

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
08 §14.1, §6.8
Payload fields
NameTypeRequiredMeaning and constraints
(PairingSession)PairingSessionYesThe session.
§6.2

vault.changed

Sent to the account's enrolled devices (with open WebSocket) other than the writer after records are written or deleted.

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
08 §14.3, §8.8
Payload fields
NameTypeRequiredMeaning and constraints
igenintegerYesVault igen.
vseqintegerYesNew vseq.
itemsarray<{rid, type, bucket, ver, deleted}>YesChanged records.
at most 100
truncatedbooleanYesMore changed; read the change feed.

vault.grant_needed

Sent to enrolled devices other than the named one when a device with a valid box key has no grant for the current generation; at most once per 10 min per device.

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
08 §14.3, §10.7
Payload fields
NameTypeRequiredMeaning and constraints
igenintegerYesIdentity generation.
vgenintegerYesCurrent generation.
didstringYesDevice that needs a grant.

vault.key_rotated

Sent to the account's enrolled devices after a new vault generation is created.

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
08 §14.3, §10.5.2
Payload fields
NameTypeRequiredMeaning and constraints
igenintegerYesIdentity generation.
vgenintegerYesNew generation.
createdBystringYesRotating device.
did

vault.rotation_needed

Sent to the account's enrolled devices when a device is delisted (other than by reset); triggers rotation.

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
08 §14.3, §10.4
Payload fields
NameTypeRequiredMeaning and constraints
igenintegerYesIdentity generation.
vgenintegerYesCurrent (old) generation.
pendingAttimestampYesWhen rotation became pending.
didstringYesDelisted device.
reasonstringYesWhy delisted.
05 revokedReason; unknown treated as other
phraseChangePendingbooleanYesA new recovery phrase is required (lost_or_stolen).

09 Communities, membership, channels and security transitions

channel.created

Channel created or became visible; viewer-dependent.

Direction
server-to-client
Class
durable
Stream
community; and me on a visibility change
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
channelChannelYes

channel.deleted

Channel deleted or hidden from this account; viewer-dependent.

Direction
server-to-client
Class
durable
Stream
community; and me on a visibility change
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
ctxstringYes
addressstringYes
securitystringYes
securedAttimestamp|nullYes
upgradeSeqinteger|nullYes
reasonstringYeslost_access does not set pin deletedSeenAt
deleted|lost_access

channel.security_changed

Channel became secure (channel or server upgrade).

Direction
server-to-client
Class
durable
Stream
channel stream ch:<UUIDv7>, at seq u+1 (timeline item, marker K1)
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
ctxstringYes
securitystringYessecure
securedAttimestampYes
upgradeSeqintegerYesu
preUpgradeHistorystringYeskept|deleted
causestringYeschannel_upgrade|server_upgrade
bystring|nullYesUpgrading admin
versionintegerYesChannel version

Also described in 00 §6 HP-12.

channel.updated

Channel changed; viewer-dependent.

Direction
server-to-client
Class
durable
Stream
community
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
channelChannelYes
changedarray<string>YesNames of changed members
previousAddressstringNopresent on address change

community.layout_changed

Category/channel order changed (layout PATCH or any category create/change/delete); viewer-dependent.

Direction
server-to-client
Class
durable
Stream
community
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
categoriesarray<Category>Yes
channelsarray<{ctx, categoryId, position}>Yesonly channels the recipient can view

community.list_changed

The account's community list changed.

Direction
server-to-client
Class
durable
Stream
me (account stream at home server)
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
opstringYesupsert|remove
domainstringYes
entryCommunityListEntry|nullYes

community.security_changed

Server upgrade completed (U2).

Direction
server-to-client
Class
durable
Stream
community
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
domainstringYesCanonical domain
securebooleanYestrue
securedAttimestampYes
versionintegerYesCommunity version
causestringYesserver_upgrade
bystringYesAdmin who upgraded
address

community.updated

Community settings or icon changed.

Direction
server-to-client
Class
durable
Stream
community
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
communityCommunityYesFull object

invite.created

Invite created.

Direction
server-to-client
Class
durable
Stream
me (creator and manage_invites holders)
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
inviteInviteYes

invite.revoked

Invite revoked.

Direction
server-to-client
Class
durable
Stream
me (creator and manage_invites holders)
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes
codestringYes
bystringYesaddress

member.joined

A membership started.

Direction
server-to-client
Class
durable
Stream
channel stream ch:<UUIDv7> (scope channel; timeline item) or community (scope community)
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
scopestringYeschannel|community
memberChannelMember|CommunityMemberYes

member.left

A member left by choice.

Direction
server-to-client
Class
durable
Stream
as member.joined
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
scopestringYeschannel|community
addrstringYes
reasonstringYes

member.rejected

Pending request rejected, expired or closed.

Direction
server-to-client
Class
durable
Stream
me (requester)
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
reasonstringYesrejected|expired|closed

member.removed

A membership ended for another reason; never says who removed.

Direction
server-to-client
Class
durable
Stream
channel or community stream; and the removed account's me stream
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
scopestringYeschannel|community
addrstringYes
reasonstringYeskicked|banned|lost_access|account_deleted|community_left

member.requested

A pending join request was made.

Direction
server-to-client
Class
durable
Stream
me (account stream of manage_invites holders; for a bot, holders of manage_invites and manage_bots)
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
memberCommunityMemberYesstate pending

member.updated

A membership record changed (e.g. needs_encryption, reactivation, rules acceptance, unban).

Direction
server-to-client
Class
durable
Stream
channel or community stream; and the member's own me stream
Specification
09 §14.2
Payload fields
NameTypeRequiredMeaning and constraints
scopestringYeschannel|community
memberChannelMember|CommunityMemberYesincludes accountSecurity only on the member's own account stream

10 Roles, permissions, moderation and reports

moderation.applied

A moderation action was applied to the recipient; never names the moderator; sent before delivery is cut.

Direction
server-to-client
Class
durable
Stream
me
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
actionenum ModerationActionYeskick|ban|timeout|server_mute|restriction
scopestring|nullYescommunity|server|null
ctxstring|nullYes
untiltimestamp|nullYes
reasonstring|nullYesonly if showReason

moderation.lifted

A moderation action on the recipient ended (if they still have a session).

Direction
server-to-client
Class
durable
Stream
me
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
actionenum ModerationActionYes
ctxstring|nullYes
scopestring|nullYes

moderation.logged

New audit entry, to holders of view_audit_log (restricted entries: admins only).

Direction
server-to-client
Class
durable
Stream
me
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
entryAuditLogEntryYes

moderation.policy_updated

AntiSpamPolicy changed; viewer-dependent payload filtered per recipient.

Direction
server-to-client
Class
durable
Stream
community
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
policyAntiSpamPolicyYes

moderation.server_mute_changed

A member's server mute started or ended.

Direction
server-to-client
Class
durable
Stream
community
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
addressstringYes
mutedbooleanYes
untiltimestamp|nullYes

permission.changed

The recipient's own effective permissions changed (hint; clients still recompute).

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
ctxstring|nullYesChannel or null for community
permissionsarray<Permission>Yes

permission.overwrite_removed

An overwrite was removed.

Direction
server-to-client
Class
durable
Stream
ch:…
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
targetTypeenum OverwriteTargetTypeYes
roleIduuidv7Nowhen targetType role
addressstringNowhen targetType member

permission.overwrite_set

An overwrite was set; not a timeline item; sent before access is cut.

Direction
server-to-client
Class
durable
Stream
ch:…
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
overwritePermissionOverwriteYes

report.created

A report the recipient can see was created (no content).

Direction
server-to-client
Class
durable
Stream
me
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes
ctxstring|nullYes
kindenum ReportKindYes
categoryenum ReportCategoryYes
targetstringYes
routingenum ReportRoutingYes
originenum ReportOriginYes
createdAttimestampYes

report.forwarded

S2S event (via 06 POST /v1/federation/events) from the forwarding server to the target's home server; payload d is ReportForwardedPayload. Delivered by 06's S2S event delivery (POST {target home}/v1/federation/events: ingest, retry, dedupe by event ID); 10 states no event class.

Direction
server-to-server
Specification
10 §10.9, §13.3
Payload fields
NameTypeRequiredMeaning and constraints
dReportForwardedPayloadYes

Also described in 00 §6 HP-11, §7.5, 06 §10.1.

report.resolved

To the reporter: their report was resolved, with a coarse outcome.

Direction
server-to-client
Class
durable
Stream
me
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes
outcomeenum ReportOutcomeYesaction_taken|reviewed

report.updated

A visible report changed.

Direction
server-to-client
Class
durable
Stream
me
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes
statusenum ReportStatusYes
resolutionenum ReportResolution|nullYes
assigneestring|nullYes
forwardedToarray<string>Yes
updatedAttimestampYes

role.created

A role was created. Audience: community stream subscribers.

Direction
server-to-client
Class
durable
Stream
community
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
roleRoleYes

role.deleted

A role was deleted.

Direction
server-to-client
Class
durable
Stream
community
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
roleIduuidv7Yes

role.member_added

A member was granted a role.

Direction
server-to-client
Class
durable
Stream
community
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
roleIduuidv7Yes
addressstringYes

role.member_removed

A member lost a role.

Direction
server-to-client
Class
durable
Stream
community (copy on the former holder's me stream if they no longer subscribe to community)
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
roleIduuidv7Yes
addressstringYes

role.reordered

Role positions changed; lists every role.

Direction
server-to-client
Class
durable
Stream
community
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
positionsarray<{roleId, position}>Yesevery role

role.updated

A role changed.

Direction
server-to-client
Class
durable
Stream
community
Specification
10 §13.2
Payload fields
NameTypeRequiredMeaning and constraints
roleRoleYes

11 Messages, attachments, read state and presence

message.created

New root message (the only timeline-item event of this doc); d is a Message without ctx and seq; reduced {withheld:true} for non-entitled subscribers; tombstone/current forms on replay.

Direction
server-to-client
Class
durable
Stream
the context (ctx reference)
Specification
11 §8.1
Payload fields
NameTypeRequiredMeaning and constraints
typestringNoItem type discriminator.
"message"; present in timeline pages only
miduuidv7YesRoot message mid.
carrierCarrierTypeYesCarrier type of the root message.
plain or sealed; unknown treated as sealed (placeholder)
senderSenderYesWho sent it.
createdAttimestampYesServer timestamp of acceptance.
contentMessageContentNoCurrent content (root or latest edit).
plain and not deleted
sealedSealedMessageNoRoot SealedMessage as posted; absent once edited.
sealed, not deleted, not edited
editEditEntry|nullNoLatest edit (self-contained) or null.
sealed only
mentionsarray<string>NoServer-validated mention hint of the root.
sealed only
mentionAllbooleanYesServer-validated mentionAll: true only if asked for and permitted.
attachmentIdsarray<uuidv7>NoIDs currently bound (root's or latest edit's).
sealed, when any are bound
editedAttimestamp|nullYesTime of latest edit or null.
deletedDeletion|nullYesnull or how it was deleted.
reactionsarray<ReactionSummary>NoAggregated plain reactions.
required unless deleted; may be empty
reactionEntriesarray<ReactionEntry>NoInlined sealed reaction entries.
when there are sealed reaction entries; up to INLINE_REACTION_ENTRIES (100), oldest first
reactionEntryCountintegerNoTotal sealed reaction entries; fetch rest via §7.3 if larger than inlined.
with reactionEntries
updatedSeqintegerYesseq of latest entry that changed this message (creation, edit, reaction add/remove, deletion).

Also described in 00 §7.4.

message.deleted

A root message was deleted by author or moderator; d is DeleteEvent.

Direction
server-to-client
Class
durable
Stream
the context
Specification
11 §8.2
Payload fields
NameTypeRequiredMeaning and constraints
targetuuidv7YesDeleted root message.
byDeletedByYesauthor or moderator.
unknown treated as moderator
miduuidv7NoDelete entry's mid.
when by is author
deletedAttimestampYesWhen.

message.edited

A root message was edited; d is EditEvent.

Direction
server-to-client
Class
durable
Stream
the context
Specification
11 §8.2
Payload fields
NameTypeRequiredMeaning and constraints
targetuuidv7YesEdited root message.
miduuidv7YesEdit entry mid.
carrierCarrierTypeYesplain or sealed.
senderSenderYesEditing account and device.
createdAttimestampYesEdit's server timestamp (new editedAt).
contentEditContentNoThe edit.
plain
sealedSealedMessageNoThe edit.
sealed
mentionsarray<string>NoEdit's validated hint.
sealed
mentionAllbooleanYesEdit's validated mentionAll.
attachmentIdsarray<uuidv7>NoRemaining IDs.
sealed, when target had bound attachments

message.purged

Prefix purge: every root message with seq <= throughSeq is gone; delivered to every subscriber.

Direction
server-to-client
Class
durable
Stream
the context
Specification
11 §8.2
Payload fields
NameTypeRequiredMeaning and constraints
throughSeqintegerYesEvery root message with seq <= throughSeq and everything attached is gone.
reasonPurgeReasonYesWhy.
retention, pre_upgrade_deleted or admin; unknown treated as admin

presence.snapshot

Sent (SHOULD) to a session that just subscribed to the context.

Direction
server-to-client
Class
ephemeral
Stream
the context
Specification
11 §11.5
Payload fields
NameTypeRequiredMeaning and constraints
itemsarray<Presence>YesSnapshot.
non-offline accounts with access to the context; at most PRESENCE_SNAPSHOT_MAX (1,000); no order
truncatedbooleanYestrue if more existed.

presence.updated

Targeted to sessions entitled to see the account's presence (§11.4) and to the account's own sessions.

Direction
server-to-client
Class
ephemeral
Stream
me
Specification
11 §11.3
Payload fields
NameTypeRequiredMeaning and constraints
addrstring (canonical address)YesCanonical address.
namestringYesDisplay name (01).
statusEffectiveStatusYesEffective status.
online, idle, dnd or offline; unknown treated as online
statusTextstring|nullYesCustom status.
null whenever status is offline
statusEmojistring|nullYesStatus emoji.
null whenever status is offline
updatedAttimestampYesWhen this presence last changed.

reaction.added

A reaction entry was added; d is ReactionEntry without seq.

Direction
server-to-client
Class
durable
Stream
the context
Specification
11 §8.1
Payload fields
NameTypeRequiredMeaning and constraints
miduuidv7YesReaction entry mid; removing the reaction = deleting this mid.
targetuuidv7YesRoot message mid.
carrierCarrierTypeYesplain or sealed.
senderSenderYesWho reacted.
createdAttimestampYesServer timestamp.
keystringNoReaction key.
plain only
sealedSealedMessageNoEncrypted reaction.
sealed only; kind reaction, ref = root mid; plaintext ReactionContent

reaction.removed

A reaction entry was removed; d is ReactionRemovedEvent.

Direction
server-to-client
Class
durable
Stream
the context
Specification
11 §8.2
Payload fields
NameTypeRequiredMeaning and constraints
targetuuidv7YesRemoved reaction entry's mid.
messageuuidv7YesRoot message it was on.
byDeletedByYesauthor or moderator.
unknown treated as moderator
miduuidv7NoDelete entry's mid.
when by is author

read.updated

The account's read position changed; to the account's own sessions on this server.

Direction
server-to-client
Class
durable
Stream
me (account stream of this server)
Specification
11 §9.2
Payload fields
NameTypeRequiredMeaning and constraints
ctxstringYesThe context.
readSeqintegerYesEverything with seq <= readSeq counts as read.
>= 0; 0 = nothing read
updatedAttimestamp|nullYesWhen readSeq last changed.
headSeqintegerYesContext's latest seq.
lastMessageSeqintegerYesseq of newest visible non-deleted root message.
0 if none; grant-only items don't count
unreadCountintegerYesVisible non-deleted root messages with seq > readSeq.
0-1,000 (capped); excludes own messages and grant-only items
unreadCappedbooleanYestrue if true count exceeds 1,000 (clients show '999+').
mentionCountintegerYesUnread messages mentioning this account (mentions, validated mentionAll, reply ping).
0-1,000; from hints in secure contexts

typing.started

Targeted to sessions of other accounts that can see the context.

Direction
server-to-client
Class
ephemeral
Stream
the context
Specification
11 §10.2
Payload fields
NameTypeRequiredMeaning and constraints
senderSenderYesTyping account.
did is the typing device
expiresInMsintegerNoHow long to show it.
only on typing.started: 8,000

typing.stopped

Emitted on typing:false only; never on TTL expiry or message acceptance.

Direction
server-to-client
Class
ephemeral
Stream
the context
Specification
11 §10.2
Payload fields
NameTypeRequiredMeaning and constraints
senderSenderYesTyping account.
did is the typing device

12 Direct messages and group DMs

dm.block_updated

A DM block was added or removed.

Direction
server-to-client
Class
durable
Stream
me (home server)
Specification
12 §16.2
Payload fields
NameTypeRequiredMeaning and constraints
addrstringYes
blockedbooleanYes
blockDmBlock|nullYesnull when unblocked

dm.call_logged

Call started/ended entry; phase started is a content event.

Direction
server-to-client
Class
durable
Stream
the DM's context
Specification
12 §16.1, §14.1
Payload fields
NameTypeRequiredMeaning and constraints
callIdstringYes(15)
phaseenum CallLoggedPhaseYesunknown ignored
bystringYescaller's address
videobooleanYes
attimestampYes
durationMsintegerNoended only
answeredbooleanNoended only

dm.closed

DM closed (timeline item, K5 for host_secure).

Direction
server-to-client
Class
durable
Stream
the DM's context
Specification
12 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
reasonenum DmClosedReasonYes
markerstring|nullYesK5 or null

dm.created

DM created (timeline item).

Direction
server-to-client
Class
durable
Stream
the DM's context (dm:… / gdm:…), seq 1
Specification
12 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
kindenum DmKindYes
createdBystringYes
securityenum DmSecurityYes
participantsarray<string>Yesaddresses
namestring|nullYes
replacesobject|nullYes

dm.entry_updated

Hosting server → participant's home: keeps the DM index entry current; also coalesced activity hint.

Direction
server-to-server
Class
s2s
Stream
06 event delivery; lane normal; orderKey = context reference
Specification
12 §8.6, §16.3
Payload fields
NameTypeRequiredMeaning and constraints
ctxstringYesContext reference.
recipientstringYesParticipant concerned.
homed at the receiver
recipientIncstringYesParticipant's incarnation as recorded by hosting server.
kindenum DmKindYesCurrent value.
as §6.1
securityenum DmSecurityYesCurrent value.
as §6.1
stateenum DmStateYesCurrent value.
as §6.1
closedReasonenum DmClosedReason|nullYesCurrent value.
as §6.1
namestring|nullYesCurrent value.
as §6.1
ownerstring|nullYesCurrent value.
as §6.1
replacesobject|nullYesCurrent value.
as §6.1
participantsarray<{addr, name, kind, inc, state, security}>YesParticipants.
as §8.2
yourStateenum ParticipationStateYesRecipient's own participation state.
yourReasonstring|nullYesRecipient's own reason, if any.
lastSeqintegerYesDM's lastSeq.
lastActivityAttimestamp|nullYesTimestamp of latest content event, or null.

Also described in 00 §7.5, 06 §10.1.

dm.index_removed

A DM index entry was deleted (DELETE or end of 30-day declined period).

Direction
server-to-client
Class
durable
Stream
me (home server)
Specification
12 §16.2
Payload fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes

dm.index_updated

A DM index entry changed.

Direction
server-to-client
Class
durable
Stream
me (home server)
Specification
12 §16.2
Payload fields
NameTypeRequiredMeaning and constraints
entryDmIndexEntryYeswithout pendingEvents

dm.participant_added

Participant added (timeline item).

Direction
server-to-client
Class
durable
Stream
the DM's context
Specification
12 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
participantDmParticipantYesfiltered per §6.5
addedBystringYes

dm.participant_removed

Participant left/removed (timeline item).

Direction
server-to-client
Class
durable
Stream
the DM's context
Specification
12 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
addrstringYes
reasonenum ParticipantReasonYesas visible to the receiver (§6.5)
bystring|nullYesremover's address for removed via §12.3; null otherwise, including hosting-server removals

dm.participant_updated

Participant state/role changed; timeline line "{person} joined" only when state becomes active in a group DM.

Direction
server-to-client
Class
durable
Stream
the DM's context
Specification
12 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
addrstringYes
stateenum ParticipationStateYes
roleenum ParticipantRoleYes

dm.request

Hosting server → recipient's home: one batch of an invitation (first contact).

Direction
server-to-server
Class
s2s
Stream
06 event delivery; lane normal; orderKey = context reference
Specification
12 §8.2, §16.3
Payload fields
NameTypeRequiredMeaning and constraints
invitationIduuidv7YesAssigned by the hosting server to this invitation.
batchintegerYesBatch number.
1, 2, 3, …
truncatedbooleanYesTrue when the size limit stopped further events.
ctxstringYesContext reference.
kindenum DmKindYesdirect or group.
hoststringYesCanonical domain of hosting server.
MUST equal the S2S token's iss
recipientstringYesInvited participant.
homed at the receiver
recipientIncstringYesRecipient's incarnation as recorded by the hosting server.
inviter{addr, name, kind, inc}YesThe inviter (sender of the request).
createdBystringYesCreator's canonical address (for host legitimacy check).
participantsarray<{addr, name, kind, inc, state, security}>YesCurrent participants.
filtered as §6.5; recipient's own entry shows pending
securityenum DmSecurityYesDM security at time of this batch.
stateenum DmStateYesDM state.
namestring|nullYesGroup name or null.
replacesobject|nullYesPredecessor when a successor.
{host, ctx}
communityHintsarray<string>NoCopied from creator's/adder's request.
<=10; batch 1 only
identityStatesarray<string>NoIdentityStates of secure participants.
IdentityState JWSs, each at most 24 h old; batch 1 and any batch after an identity change
welcomebase64url|nullYesMLSMessage carrying the Welcome that added the recipient's devices.
secure DMs only, in the batch that first follows it
eventsarray<event envelope>YesDurable DM events (dm.*, message.created, and for secure DMs 13's handshake events).
seq order; from the invitation's start event or after previous batch

Also described in 00 §6 HP-9, 06 §10.1.

dm.request_received

A message request (batch) arrived.

Direction
server-to-client
Class
durable
Stream
me (home server)
Specification
12 §16.2
Payload fields
NameTypeRequiredMeaning and constraints
requestDmRequest (list form)Yes
batchintegerYes

dm.request_resolved

A message request changed state.

Direction
server-to-client
Class
durable
Stream
me (home server)
Specification
12 §16.2
Payload fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes
stateenum DmRequestStateYes

dm.response

Recipient's home → hosting server: accept/decline/block/unblock.

Direction
server-to-server
Class
s2s
Stream
06 event delivery; lane normal; orderKey = context reference
Specification
12 §8.5, §16.3
Payload fields
NameTypeRequiredMeaning and constraints
ctxstringYesContext reference.
recipientstringYesResponding participant.
MUST be homed at the sender (iss)
recipientIncstringYesResponding account's incarnation.
invitationIduuidv7|nullYesInvitation answered.
null for unblock and responses not tied to one invitation; informative
actionenum DmResponseActionYesaccept, decline, block or unblock.
unknown values ignored
attimestampYesWhen the user (or auto-accept rule) acted; used for last-writer-wins.

Also described in 00 §7.5, §6 HP-9, 06 §10.1.

dm.security_changed

Security mode switched (timeline item, K1/K2).

Direction
server-to-client
Class
durable
Stream
the DM's context
Specification
12 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
securityenum DmSecurityYesnew
previousenum DmSecurityYes
generationintegerYesgeneration now in force, or the retired one when becoming insecure
lastSeqBeforeintegerYeslast seq under previous mode
markerenum SecurityChangedMarkerYesK1 or K2; unknown treated as none
causeenum SecurityChangedCauseYesunknown ignored

dm.security_eligible

Computed security became secure; DM is upgrading; an enrolled device must bootstrap (not a timeline item).

Direction
server-to-client
Class
durable
Stream
the DM's context
Specification
12 §16.1, §11.4
Payload fields
NameTypeRequiredMeaning and constraints
generationintegerYesnext group generation
participantsarray<{addr, security}>Yesevery current participant

Also described in 00 §8 F8.

dm.settings_changed

Group name or owner changed (timeline item).

Direction
server-to-client
Class
durable
Stream
the DM's context
Specification
12 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
namestring|nullNoonly if changed
ownerstring|nullNoonly if changed
bystring|nullYesnull when the hosting server made the change

dm.settings_updated

DmSettings changed.

Direction
server-to-client
Class
durable
Stream
me (home server)
Specification
12 §16.2
Payload fields
NameTypeRequiredMeaning and constraints
settingsDmSettingsYes

dm.state_changed

DM state changed (not a timeline item).

Direction
server-to-client
Class
durable
Stream
the DM's context
Specification
12 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
stateenum DmStateYesnew
previousenum DmStateYes
reasonenum StateChangedReasonYesunknown ignored

13 MLS profile

mls.commit_needed

Asks the designated committer to commit pending proposals (or a self-update for group_info_refresh) within 3 s.

Direction
server-to-client
Class
ephemeral
Stream
the context (targeted at exactly one device, the designated committer)
Specification
13 §8.5
Payload fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup ID
epochintegerYesEpoch whose pending proposals need a commit
proposalRefsarray<string>YesEvery pending proposal ref
may be empty for group_info_refresh
reasonCommitNeededReasonYesWhy
removal|key_rotation|reissue|group_info_refresh; unknown: commit anyway
deadlineMsintegerYesDeadline
3000
roundintegerYesDesignation round
1 for first pass, then 2, 3...

Also described in 00 §6 HP-3.

mls.group_created

A group was bootstrapped (epoch 0); sent in full to every subscriber of the context stream.

Direction
server-to-client
Class
durable
Stream
the context (ch:/dm:/gdm:)
Specification
13 §8.2
Payload fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup ID
generationintegerYesGeneration
epochintegerYesEpoch
0
ekidbase64urlYesekid(0)
creatorobjectYesBootstrapping device
{addr, did}

mls.group_retired

The generation is retired; move to nextGeneration if not null.

Direction
server-to-client
Class
durable
Stream
the context
Specification
13 §8.2
Payload fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup ID
generationintegerYesRetired generation
reasonGroupRetiredReasonYesWhy
context_insecure|context_deleted|state_lost|operator; unknown: treat as operator
nextGenerationinteger|nullYesNext generation
null when the context is no longer secure

mls.handshake

An accepted commit; HandshakeRecord for eligible devices, reduced payload {groupId, epoch, newEpoch, kind} for other subscribers.

Direction
server-to-client
Class
durable
Stream
the context
Specification
13 §8.3
Payload fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup ID
epochintegerYesThe epoch the commit was made in
newEpochintegerYesEpoch after the commit
epoch + 1
kindHandshakeKindYesCommit sender kind
external | member; unknown: process by MLS content
commitbase64urlYesThe commit
MLSMessage exactly as submitted
committerobjectYesCommitter's canonical address, device ID, leaf index
{addr, did, leaf}; leaf is the index in the new epoch
proposalsarray<ServerProposal>YesFull ServerProposal objects the commit references
empty if none
identityStatesarray<string>YesEvidence attached by the server (§8.3)
IdentityState JWSs; never empty (at least the committer's)
ekidbase64urlYesReference ekid of newEpoch: settled value once settled, else committer's provisional value
8 bytes, 11 chars
ekidSettledbooleanYesWhether ekid is settled
always false in the mls.handshake event
commitHashbase64urlYesCommit hash
SHA-256 of the commit MLSMessage bytes
welcomeForarray<object>NoDevices added by Welcome
DMs only; {addr, did} each
attimestampYesAcceptance time

Also described in 00 §6 HP-2, §7.4.

mls.keypackages_low

The device's regular KeyPackages fell below 10 after a claim, or its last-resort KeyPackage was handed out, or after a KeyPackage store restore.

Direction
server-to-client
Class
ephemeral
Stream
me (home server)
Specification
13 §9.3
Payload fields
NameTypeRequiredMeaning and constraints
didstringYesDevice
availableintegerYesRegular KeyPackages left
lastResortbooleanYesLast-resort stored
lastResortUsedbooleanYesLast-resort handed out
targetintegerYesRefill target
50

mls.proposal

A server proposal was issued; ServerProposal for eligible devices, reduced payload {groupId, epoch, ref, type} for others.

Direction
server-to-client
Class
durable
Stream
the context
Specification
13 §8.4
Payload fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup the proposal belongs to
group_id format §4.1
epochintegerYesThe epoch the proposal is bound to
refbase64urlYesProposal identifier
SHA-256 ProposalRef (RFC 9420 §5.2), 43 chars
typeServerProposalTypeYesProposal type
remove | group_context_extensions
proposalbase64urlYesThe signed proposal
MLSMessage, wire format mls_public_message
reasonRemovalReasonYesServer annotation (not signed)
§13.1; unknown values: treat as lost_access
targetobjectNoThe leaf to remove (server annotation, not signed)
{addr, did, leaf}; required for type remove
evidenceobjectNoEvidence supporting device_revoked, identity_changed, account_downgraded (not signed)
{identityState: JWS} and/or {deviceRevocation: JWS}
reissueOfbase64urlNoref of the proposal this one replaces after an external commit (§13.5)
issuedAttimestampYesIssue time

mls.resync_required

Tells one device to resync (§10.5) after a random 0–2 s delay.

Direction
server-to-client
Class
ephemeral
Stream
the context (targeted at one device)
Specification
13 §8.6
Payload fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup ID
generationintegerYesGeneration
epochintegerYesServer's current epoch
reasonResyncRequiredReasonYesWhy
fork|commit_unprocessable|duplicate_leaf|state_lost; unknown: resync

mls.welcome

A Welcome is pending for this device; fetch with GET …/mls/welcome.

Direction
server-to-client
Class
ephemeral
Stream
the context (targeted at sessions of each device added by Welcome)
Specification
13 §8.1
Payload fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup ID
generationintegerYesGeneration
epochintegerYesJoin epoch

14 Sealed messages, history visibility and sharing

history.shared

Sent by the hosting server to every subscriber of the context's stream when it accepts a HistoryShare; a timeline item rendered as the K8 system line (the recipient shows K7 instead). Carries no keys or content; no notify (19).

Direction
server-to-client
Class
durable
Stream
the secure context's stream
Specification
14 §9.1
Payload fields
NameTypeRequiredMeaning and constraints
shareIduuidv7YesThe share.
sharerstringYesCanonical address of the sharing account.
canonical address
recipientstringYesCanonical address of the recipient account.
canonical address
fromSeqintegerYesFirst seq of the shared range.
toSeqintegerYesLast seq of the shared range, inclusive.
countintegerYesThe number of shared items.

Also described in 00 §6 HP-4, §4.12.3.

15 Calls: control, leases, routing and continuity

call.ended

The call ended.

Direction
server-to-client
Class
ephemeral
Stream
context stream
Specification
15 §2.4, §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
reasonCallEndReasonYesEnd reason.
§2.4; unknown → treat as context_closed
endedAttimestampYesEnd time.
nextobjectNoMode of the replacement call.
{"security": …} only for security_upgraded; a hint only

call.epoch_switch

Call control switched mediaEpoch.

Direction
server-to-client
Class
ephemeral
Stream
context stream, targeted at each participating device (secure calls)
Specification
15 §9.4, §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
epochintegerYesNew mediaEpoch.

Also described in 00 §6 HP-5.

call.lease_changed

The participant's own audio or video membership changed; says why.

Direction
server-to-client
Class
ephemeral
Stream
context stream, targeted at the affected participating device
Specification
15 §4.10, §15
Payload fields
NameTypeRequiredMeaning and constraints
(payload)VoiceLeaseYesNew VoiceLease.

call.migrate

Planned relay migration: rejoin with planned: true.

Direction
server-to-client
Class
ephemeral
Stream
context stream, targeted at each participating device
Specification
15 §6.9, §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
reasonstringYesWhy.
drain | rebalance; unknown → drain
deadlineMsintegerYesMigration window.
10000

call.moved

The participation moved to the user's other device (Move voice here); terminal for this device.

Direction
server-to-client
Class
ephemeral
Stream
context stream, targeted at the device whose participation was moved
Specification
15 §11, §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
pidintegerYesOld pid.
sameCallbooleanYestrue if the other device joined this same call, false if another call on this server.

call.participant_joined

A participation was admitted.

Direction
server-to-client
Class
ephemeral
Stream
context stream
Specification
15 §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
participantParticipantYesThe new participant.
rejoinedbooleanNoNew pid after a timed-out/session_expired seat was rejoined; play no join sound.
default false
movedFromintegerNoOld pid when Move voice here landed in the same call; no leave/join sound.

call.participant_left

A seat was removed.

Direction
server-to-client
Class
ephemeral
Stream
context stream
Specification
15 §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
pidintegerYesRemoved pid.
addrstringYesCanonical address.
reasonSeatRemovalReasonYesWhy.
left | timeout | removed | revoked | session_expired | moved | switched | call_ended; unknown → left

call.participant_updated

A participant's state, mute flags, sources or leafIndex changed, or a seat was restored.

Direction
server-to-client
Class
ephemeral
Stream
context stream
Specification
15 §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
participantParticipantYesUpdated participant.

call.ring_ended

A target's ring ended.

Direction
server-to-client
Class
ephemeral
Stream
me stream at the hosting server, targeted at every session of the target account
Specification
15 §13.1, §15
Payload fields
NameTypeRequiredMeaning and constraints
ctxstringYesThe DM context.
callIduuidv7YesThe call.
addrstringYesTarget.
reasonRingEndReasonYesWhy.
answered | declined | timeout | cancelled; unknown → cancelled

call.ring_updated

The call's Ring changed.

Direction
server-to-client
Class
ephemeral
Stream
context stream
Specification
15 §13.1, §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
ringingRing or nullYesCurrent ring.
endedobjectNoPresent when a target's ring just ended.
{addr, reason} with reason as for call.ring_ended

call.ringing

Incoming DM call ring.

Direction
server-to-client
Class
ephemeral
Stream
me stream at the hosting server, targeted at every session of each ring target account
Specification
15 §13.1, §15
Payload fields
NameTypeRequiredMeaning and constraints
ctxstringYesThe DM context.
callIduuidv7YesThe call.
byobjectYesCaller.
{addr, name}
securitystringYesCall security.
videobooleanYesCaller started with webcam.
expiresAttimestampYesThis target's ring expiry.

call.route_changed

The call's videoRoute changed.

Direction
server-to-client
Class
ephemeral
Stream
context stream, targeted at each participating device
Specification
15 §7.2, §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
videoRouteVideoRouteYesdc or sfu.

call.started

A call was created; sent before the first call.participant_joined.

Direction
server-to-client
Class
ephemeral
Stream
context stream
Specification
15 §3.3.2, §15
Payload fields
NameTypeRequiredMeaning and constraints
callCallYesThe new call.

call.state

Current call or null; sent after the SubscriptionResult and before any later call event; the catch-up mechanism.

Direction
server-to-client
Class
ephemeral
Stream
context stream (ctx = call's context), targeted at a session whose socket just gained a full subscription to the context or received session.resync_required
Specification
15 §3.1, §15
Payload fields
NameTypeRequiredMeaning and constraints
callCall or nullYesCurrent call.

call.tick

Lease tick: a LeaseSnapshot; discarded if queued > 250 ms.

Direction
server-to-client
Class
ephemeral
Stream
context stream, targeted at each participating device (also relay sv-control)
Specification
15 §4.4, §15
Payload fields
NameTypeRequiredMeaning and constraints
(payload)LeaseSnapshotYesThe snapshot.

Also described in 00 §6 HP-15, §7.4, 15 §4.4, §6.5.

relay.closing

The relay is ending the session.

Direction
server-to-client
Class
session
Stream
sv-control data channel (relay connection)
Specification
15 §6.6
Payload fields
NameTypeRequiredMeaning and constraints
reasonRelayClosingReasonYesWhy.
unknown → unexpected drop
retryAfterMsintegerYesRetry hint.
0 with drain

relay.error

Problem with a control message the client sent; never ends the session.

Direction
server-to-client
Class
session
Stream
sv-control data channel (relay connection)
Specification
15 §6.6
Payload fields
NameTypeRequiredMeaning and constraints
(payload)problem object (00 §7.9)YesProblem.
code relay.bad_message or core.rate_limited

relay.ping

Client keepalive every 5 s.

Direction
client-to-server
Class
session
Stream
sv-control data channel (relay connection)
Specification
15 §6.7
Payload fields
NameTypeRequiredMeaning and constraints
nintegerYesPing counter.
incrementing

relay.pong

Relay echoes ping n at once.

Direction
server-to-client
Class
session
Stream
sv-control data channel (relay connection)
Specification
15 §6.7
Payload fields
NameTypeRequiredMeaning and constraints
nintegerYesEchoed counter.

relay.subscribe

Which sources 1, 2, 3 this receiver wants; replaces previous list.

Direction
client-to-server
Class
session
Stream
sv-control data channel (relay connection)
Specification
15 §6.6
Payload fields
NameTypeRequiredMeaning and constraints
sourcesarray<{pid, sourceId}>YesWanted sources.
starts empty; relay MUST accept ≥ 32 entries; source 0 never subscribed

relay.welcome

Relay's first message on a session, followed at once by the newest call.tick.

Direction
server-to-client
Class
session
Stream
sv-control data channel (relay connection)
Specification
15 §6.5, §6.6
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
pidintegerYesSession pid.
relaySessionIdstringYesSession ID.
maxInboundKbpsintegerYesCap on everything this session may send.
default 10,000

sfu.closed

The SFU session was closed.

Direction
server-to-client
Class
ephemeral
Stream
context stream, targeted at the device owning the SFU session
Specification
15 §8.1, §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
sfuSessionIduuidv7YesThe SFU session.
assigned by call control
reasonSfuClosedReasonYesWhy.
route_changed | negotiation_timeout | removed | sfu_failed; unknown → sfu_failed

sfu.offer

Server-initiated SFU renegotiation; answer within 10 s.

Direction
server-to-client
Class
ephemeral
Stream
context stream, targeted at the device owning the SFU session
Specification
15 §8.3, §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
sfuSessionIduuidv7YesThe SFU session.
assigned by call control
negotiationIduuidv7YesFresh per server offer.
offerstringYesSDP offer.
tracksarray<Track>YesTransceivers.

sfu.tracks_changed

Track states changed (e.g. paused by lease enforcement).

Direction
server-to-client
Class
ephemeral
Stream
context stream, targeted at the device owning the SFU session
Specification
15 §8.4, §15
Payload fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
sfuSessionIduuidv7YesThe SFU session.
assigned by call control
tracksarray<Track>YesTransceivers.

16 Audio

call.media_feedback

Listener-to-sender loss report (audio_loss) for one audio stream, used only to tune the sender's Opus in-band FEC; from is set by the relay. Protected hop by hop (DTLS) only, in every mode. 15's message table lists its direction as client → client (through the relay) and relay → client; 16 defines only listener-sent audio_loss.

Direction
client-to-server
Class
ephemeral
Stream
sv-control data channel of the relay connection; the relay forwards it only to to, and only when both from and to are in listeners (15 §6.5, §6.6). Not a WebSocket event. This document defines only the payload kind d.kind = audio_loss; 15 owns the envelope (t, from, to, d), forwarding and general rate limits.
Specification
16 §4.7
Payload fields
NameTypeRequiredMeaning and constraints
kindstringYesFeedback kind defined by this document
audio_loss
sourceIdintegerYesThe reported stream of the sender to
0 or 2
lossPermilleintegerYesFrames missing at the network level (before FEC) over the report interval
0–1,000; floor(1,000 × lost / expected)
latePermilleintegerYesFrames that arrived after their playout deadline (§9.3)
0–1,000; floor(1,000 × late / expected)
bufferTargetMsintegerYesThe listener's current jitter-buffer target T (§9.3) for this stream
0–1,000
receivedintegerYesDistinct sequence numbers received in the interval
0–65,535; capped at 65,535

Also described in 15 §6.6, §16.2.

18 Media end-to-end encryption

media.attestation

Control-channel message (15 §6.5 envelope, t = media.attestation) carrying one MediaAttestation: a DSK labelled signature over the 8-byte frame hashes of one batch of consecutive counters of one KID. Sent on the relay control channel whatever route the frames took, including sources sent through the SFU (SFU sessions have no control channel). The relay sets from and forwards it unchanged otherwise to every listener except the sender, whether or not they subscribed to the source on the relay. Sent only in secure calls; best-effort control traffic subject to 15 §6.5 rate limits.

Direction
client-to-server
Class
ephemeral
Stream
sv-control data channel of every relay connection of the call that the sender has open (both relays during a planned relay migration); not a WebSocket event
Specification
18 §9.5
Payload fields
NameTypeRequiredMeaning and constraints
tstringYesControl-channel message type (15 §6.5 envelope).
"media.attestation"
fromintegerYesThe sending participant's pid.
pid; set by the relay
d.vintegerYesFormat version.
1; receivers ignore a message with any other value
d.callIduuidv7YesThe call's callId.
lowercase hyphenated; must be this call's callId
d.epochintegerYesThe MLS epoch of the KID's keys.
low 4 bits MUST equal the KID's residue
d.srcintegerYesThe KID's sourceId, repeated in clear so a relay can route without parsing the KID.
0-3; must equal the KID's sourceId
d.kidstringYesThe KID.
kid-string: decimal, no leading zeros, value < 2^56
d.firstintegerYesFirst counter of the batch.
0 to 2^32 - 1
d.lastintegerYesLast counter of the batch.
first <= last <= first + 255 and last <= 2^32 - 1
d.hashesbase64urlYesConcatenated frame hashes in counter order.
exactly 8 x (last - first + 1) octets
d.sigbase64urlYesEd25519 labelled signature (label media-attest) over MediaAttestationContent.
64 octets

19 Notifications and push

notification.created

A new notification record; desktop clients turn non-silent ones into OS notifications.

Direction
server-to-client
Class
durable
Stream
me (at the home server)
Specification
19 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
recordNotificationRecord | nullYesThe record.
null in reduced payload for devices not in targets
idstringNoRecord id.
only in reduced payload
badgeintegerYesBadge.
per receiving session's device

notification.settings_changed

A notification settings entry changed (deleted entries sent with defaults).

Direction
server-to-client
Class
durable
Stream
me (at the home server)
Specification
19 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
scopeenum SettingsScopeYesWhich settings.
global | community | context
settingsNotificationSettings | CommunityNotificationSettings | ContextNotificationSettingsYesThe new settings.

notification.state_changed

Records that moved to a state (read, dismissed, withdrawn).

Direction
server-to-client
Class
durable
Stream
me (at the home server)
Specification
19 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
idsarray<string>YesRecord IDs.
at most 100; per-session filtered by targets; may be []
stateenum RecordStateYesNew state.
unknown -> no action except badge
badgeintegerYesBadge.

notification.updated

Full new state of a changed record (ring ended, items withdrawn, preview dropped).

Direction
server-to-client
Class
durable
Stream
me (at the home server)
Specification
19 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
recordNotificationRecord | nullYesThe record.
null in reduced payload
idstringNoRecord id.
only in reduced payload
badgeintegerYesBadge.

notify.event

S2S event from hosting server to recipient's home server (06 event envelope, batching, retries, dedup); lane high for ring kinds, normal otherwise; orderKey = recipient canonical address.

Direction
server-to-server
Specification
19 §5
Payload fields
NameTypeRequiredMeaning and constraints
recipientstringYesAccount to notify.
canonical address homed at receiver
kindenum NotificationKindYesKind.
S2S kinds only; unknown -> ignored
hoststringYesHosting server canonical domain.
MUST equal S2S token iss
ctxstringYesContext.
context reference
ctxKindenum CtxKindYeschannel | direct | group.
agree with ctx prefix
ctxNamestring | nullYesContext name.
<= 100 scalar values
ctxAddrstring | nullYesChannel canonical address.
channels only
communityobject | nullYesCommunity.
{name} <= 100 scalar values, channels only
securityenum SecurityYesMode when sequenced.
unknown -> secure
senderAddressRef | webhook SenderYesLatest trigger's sender or caller.
except withdrawn
attimestampYesLatest trigger time.
itemsarray<NotifyItem>NoTriggers.
message kinds; 1-20, oldest first
countintegerNoTriggers represented.
message kinds; >= items length
otherSendersintegerNoDistinct other senders.
message kinds
previewPreview | nullNoPreview.
insecure message kinds only
ticketEventTicketRefNoEvent ticket.
message kinds
callNotifyCallNoCall info.
call kinds
withdrawnarray<string>NoWithdrawn mids.
withdrawn; 1-50 mids
previewOnlybooleanNoEdit, not delete.
withdrawn only; default false

Also described in 00 §2.9, §4.9, §6 HP-9, 06 §10.1.

notify.triggered

In-app notification for mention/reply/mention_all/dm_message triggers, sent attentive or not; clients MUST NOT show an OS notification for it.

Direction
server-to-client
Class
ephemeral
Stream
me (at the hosting server); targeted (03 §7.2 E5) at every connected session of the recipient
Specification
19 §4.4
Payload fields
NameTypeRequiredMeaning and constraints
ctxstringYesContext.
context reference
kindenum NotifyItemKindYesTrigger kind.
mention | reply | mention_all | dm_message; unknown -> dm_message for display
seqintegerYesseq of triggering event.
midstringYesTriggering entry.
root mid, or edit entry mid for an edit that newly mentions
senderAddressRef | webhook SenderYesSender.
{addr, name, kind}; kind user|bot|webhook; webhook has no addr; unknown kind -> user
attimestampYesEvent timestamp.

push.registration_removed

The home server deleted a push registration; the owning client re-registers silently if it can.

Direction
server-to-client
Class
durable
Stream
me (at the home server)
Specification
19 §16.1
Payload fields
NameTypeRequiredMeaning and constraints
idstringYesRegistration id.
didstringYesDevice id.
reasonenum RegistrationRemovedReasonYesWhy.
gone | rejected | gateway_not_allowed

21 Deployment and operations

relayctl.ack

relay -> control. Acknowledges snapshot processing within 100 ms; MAY combine acks produced within 20 ms of each other.

Direction
server-to-server
Class
session
Specification
21 §6.4.4
Payload fields
NameTypeRequiredMeaning and constraints
acksarray<SnapshotAck>YesOne entry per processed snapshot.

relayctl.call_close

control -> relay. The call ended or moved away; relay sends relay.closing (mapped from reason) to remaining sessions, closes them and frees call state (including replay cache entries for that call's tickets once expired).

Direction
server-to-server
Class
session
Specification
21 §6.4.7
Payload fields
NameTypeRequiredMeaning and constraints
callIdstringYesThe call.
reasonCallCloseReasonYesWhy the call is closed; decides the relay.closing reason sent to clients.
ended | restarted | migrated | lost | unknown; unknown value treated as unknown

relayctl.call_drain

control -> relay. Starts the old relay's part of a planned relay migration (15 §6.9): relay.closing drain with retryAfterMs 0 to every session, keep forwarding under snapshots, close remaining sessions at the deadline (session_down drain_deadline), keep call state until call_close or 15 s after the deadline with no snapshot.

Direction
server-to-server
Class
session
Specification
21 §6.4.6
Payload fields
NameTypeRequiredMeaning and constraints
callIdstringYesThe call to drain.
deadlineMsintegerYesTime after receipt at which remaining sessions are closed.
10000 in this version; any other value treated as 10,000

relayctl.call_open

control -> relay. Creates call state (no-snapshot state, forwards nothing until a snapshot) before the first snapshot of a call on that relay: on assignment, on migration to the relay, and on resynchronisation. Repeated identical open is a no-op; changing security, ctx or url is refused with core.conflict. Reply relayctl.error only on failure.

Direction
server-to-server
Class
session
Specification
21 §6.4.3
Payload fields
NameTypeRequiredMeaning and constraints
callIdstringYesThe call.
15 §2.5.1
ctxstringYesUsed for logs and for the ticket ctx check of §6.7 rule 2.
context reference
securityCallSecurityYesThe call's fixed mode (15 §2.1 rule 3); used for the protection-flag check of 16 §4.9.2.
insecure | secure; unknown value MUST be refused with core.invalid_request
urlstringYesRelay URL the call is assigned to; RelayTickets carry it as aud (15 §5.1).
one of the relay's hello urls
profilesarray<RelayProfile>YesRelay profiles allowed in the call.
subset of voice-dc/1, video-dc/1; MAY change (applies to new sessions)
maxInboundKbpsintegerNoPer-session inbound cap for this call.
default from the welcome; MAY change (applies to new sessions)

relayctl.call_stats

relay -> control. Every 5,000 ms, lists each call open on the link in which at least one session subscribes (relay.subscribe) to source 1 or 3; used for 17 §13.2 items 2 and 3. Unknown members ignored.

Direction
server-to-server
Class
session
Specification
21 §6.5.4
Payload fields
NameTypeRequiredMeaning and constraints
callsarray<CallStatsEntry>YesPer-call video fan-out counters.
at most 256 entries per message (send several messages if needed)

relayctl.error

Either direction. Rejects a malformed or unacceptable message; carries a problem object in d and re naming the offending message. Never closes the link by itself.

Direction
server-to-server
Class
session
Specification
21 §6.2.4
Payload fields
NameTypeRequiredMeaning and constraints
(d)problem object (00 §7.9)YesThe problem.
code one of core.invalid_request, core.unsupported_version, core.forbidden, core.conflict, relay.call_unknown; data.errors (03 §10.5) points at the offending member for core.invalid_request

relayctl.hello

relay -> control. The relay's first message on a new control link; answered by relayctl.welcome (re set) or relayctl.error and a close. Nothing else is sent by either side until the welcome.

Direction
server-to-server
Class
session
Specification
21 §6.4.1
Payload fields
NameTypeRequiredMeaning and constraints
relayIdstringYesOperator-assigned, stable across restarts of the node.
relay-id = 1*64( ALPHA / DIGIT / "." / "_" / "-" )
protocolstringYesBinding version.
major.minor (03 §12.1 grammar); this document is "1.0"
urlsarray<string>YesRelay URLs at which this node accepts /connect. Call control MUST check every one is allowed for this relayId, else relayctl.error core.forbidden and close 4003.
1–8 relay URLs (15 §6.1 relay-url)
softwarestringNoProduct and version, for diagnostics.
at most 64 characters
regionstringNoOperator's location label.
1–64 characters of [a-z0-9-]
capacityRelayCapacityYesWhat the operator configured this node to carry.
{maxSessions, maxEgressKbps}, both >= 1
stateRelayStateYesCurrent load state (§6.5.3).
accepting | full | draining
callsarray<string>YescallIds this node holds state for under this issuer from an earlier link (§6.8).
at most 10,000 entries; empty after a restart

relayctl.keys

control -> relay. Replaces the relay's key set for the link's issuer; applied atomically; a keysVersion not higher than the held one is ignored. Answered by relayctl.keys_ack. MUST be sent within 1,000 ms of any change to the issuer's sign keys.

Direction
server-to-server
Class
session
Specification
21 §6.4.2
Payload fields
NameTypeRequiredMeaning and constraints
keysVersionintegerYesAs in relayctl.welcome.
>= 1, never decreases
keysarray<ServerKey>YesAs in relayctl.welcome.
1–16 sign keys
revokedarray<string>YesAs in relayctl.welcome.
RFC 7638 thumbprints, last 400 days

relayctl.keys_ack

relay -> control. Acknowledges relayctl.keys, naming the version the relay now holds. A relay that doesn't ack within 2,000 ms is treated as failed (close 4008).

Direction
server-to-server
Class
session
Specification
21 §6.4.2
Payload fields
NameTypeRequiredMeaning and constraints
keysVersionintegerYesThe key-set version the relay now holds.

relayctl.load

relay -> control. Load and state report, every 5,000 ms and at once when state changes. Used for relay assignment (§6.10).

Direction
server-to-server
Class
session
Specification
21 §6.5.3
Payload fields
NameTypeRequiredMeaning and constraints
stateRelayStateYesaccepting, full or draining.
unknown treated as full
sessionsintegerYesOpen sessions on this link's issuer.
sessionsTotalintegerYesOpen sessions on the node, all issuers.
callsintegerYesOpen calls on this link.
ingressKbpsintegerYesIngress bandwidth.
node total over the last 5 s
egressKbpsintegerYesEgress bandwidth.
node total over the last 5 s
cpuPermilleintegerNoNode CPU use.
0–1000 per core-equivalent of capacity
dropPermilleintegerYesMedia messages dropped for queue or lateness reasons (16 §8.1).
per thousand forwarded, over the last 5 s

relayctl.ping

control -> relay. Heartbeat every heartbeatMs (1,000 ms); the relay answers relayctl.pong with the same n at once.

Direction
server-to-server
Class
session
Specification
21 §6.8
Payload fields
NameTypeRequiredMeaning and constraints
nintegerYesHeartbeat counter echoed in the pong.

relayctl.pong

relay -> control. Heartbeat reply with the same n. No pong for 3,000 ms makes call control close with 4008 and enter suspect.

Direction
server-to-server
Class
session
Specification
21 §6.8
Payload fields
NameTypeRequiredMeaning and constraints
nintegerYesThe n of the ping being answered.

relayctl.session_close

control -> relay. Removes one participation's relay session: relay stops forwarding at once, sends relay.closing with reason and retryAfterMs, closes the peer connection after flush or 1,000 ms, then reports relayctl.session_down reason instructed. Does nothing if no session exists. Sent for every seat removal within 500 ms of the decision and after the snapshot that removes the pid.

Direction
server-to-server
Class
session
Specification
21 §6.4.5
Payload fields
NameTypeRequiredMeaning and constraints
callIdstringYesThe call.
pidintegerYesThe participant whose session to close.
reasonRelaySessionCloseReasonYesThe relay.closing reason to send (15 §6.6).
left, removed, revoked, moved, switched, call_ended, call_restarted, session_expired, drain, timeout, overloaded; unknown values passed through unchanged
retryAfterMsintegerNoPassed through in relay.closing.

relayctl.session_down

relay -> control. A session ended. Call control identifies sessions by (relayId, relaySessionId) and ignores a report that isn't the seat's current session.

Direction
server-to-server
Class
session
Specification
21 §6.5.2
Payload fields
NameTypeRequiredMeaning and constraints
callIdstringYesThe call.
pidintegerYesThe participant.
relaySessionIdstringYesThe session that ended.
reasonSessionDownReasonYesWhy the session ended.
unknown values treated as transport_closed
downAttimestampYesWhen it ended.
RFC 3339

relayctl.session_up

relay -> control. Sent within 100 ms after the relay created a session and sent relay.welcome and the first call.tick on it. Call control checks the seat (pid exists and belongs to did); if so records (relayId, relaySessionId) as the seat's current session and applies the 15 §2.6 'relay reports the session up' transition; otherwise sends session_close reason revoked and records a security diagnostic. For a replacement, session_up for the new session MUST precede session_down replaced for the old.

Direction
server-to-server
Class
session
Specification
21 §6.5.1
Payload fields
NameTypeRequiredMeaning and constraints
callIdstringYesFrom the ticket's cid.
pidintegerYesFrom the ticket.
didstringYesDevice ID, from the ticket.
substringYesAddress, from the ticket.
relaySessionIdstringYesAs returned to the client (15 §6.2).
at most 64 characters; unique only within one relay
iceTcpbooleanYesThe session uses ICE-TCP; for capacity planning only.
upAttimestampYesWhen the session came up.
RFC 3339

relayctl.snapshot

control -> relay. Delivers LeaseSnapshots; the relay processes each in order (unknown_call / invalid / stale / applied) and, on applied, emits it as call.tick to every session of the call. Answered by relayctl.ack.

Direction
server-to-server
Class
session
Specification
21 §6.4.4
Payload fields
NameTypeRequiredMeaning and constraints
snapshotsarray<LeaseSnapshot>YesSnapshots to apply.
1–256 LeaseSnapshots (15 §4.2), at most one per callId per message; each names a call opened on this link

relayctl.welcome

control -> relay. Accepts the link; carries the issuer, binding version, link ID and the issuer's sign keys. Always replaces the relay's key set for that issuer whatever its version. Followed by resynchronisation (call_open + newest snapshot for every call assigned to the relay; call_close for listed calls not assigned).

Direction
server-to-server
Class
session
Specification
21 §6.4.1
Payload fields
NameTypeRequiredMeaning and constraints
issuerstringYesThe hosting server. Every call opened on this link belongs to it. Relay MUST check it against its configuration (close 4003 on mismatch).
canonical domain
protocolstringYesBinding version call control will use: the highest minor of the shared major.
major.minor
linkIduuidv7YesNames this link, for logs.
keysVersionintegerYesVersion of the key set.
>= 1; never decreases for an issuer across restarts and changes of link holder
keysarray<ServerKey>YesThe issuer's ServerKeys (02 §11.1) for RelayTicket validation.
1–16 entries; purpose sign only, with current status
revokedarray<string>YesEvery sign key the issuer revoked in the last 400 days.
RFC 7638 thumbprints
heartbeatMsintegerYesHeartbeat interval (§6.8).
1000 in this version
maxInboundKbpsintegerYesDefault inbound cap per session (15 §6.6); a call MAY override it in relayctl.call_open.
default 10000