This guide is for anyone writing a client, bot or server that speaks the Sloppy Voice v2 protocol, in any language. It explains how the protocol works and in what order you need it, with examples taken from the specification. The specification is the authoritative source: every page links to the sections that hold the full rules, and where this guide and the specification disagree, the specification wins.

This page gives the shape of the whole system. Read it first, then the Quick tour, then the pages for the parts you are building.

What Sloppy Voice v2 is

Sloppy Voice v2 is a federated voice, video and text chat system. It has the features of Discord and federates like e-mail: anyone can run a server, and accounts on different servers talk to each other (00 §1.1).

The main ideas:

  • Addresses look like e-mail addresses. A user is saxon@sloppyvoice.com. The domain part tells a client which server to talk to, through a DNS TXT record (00 §2.1, document 02).
  • Channels use the same address format. A channel is PublicLobby@sloppyvoice.com. Users and channels share one namespace per server, so a local part names either a user or a channel, never both (00 §2.1).
  • One server is one community. A server is like a Discord guild: it has members, roles and channels. "Server" names the protocol endpoint and "community" names the membership and roles; they are the same entity (00 §2.2).
  • Insecure by default, secure by choice. In an insecure context the server can read messages, hear calls and see shared screens. Accounts, channels and servers can opt in to secure mode, where everything in the context is end-to-end encrypted (00 §1.1).
  • Links invite people. sloppyv://PublicLobby@sloppyvoice.com can be pasted anywhere to invite someone. Every sloppyv link is offered next to an HTTPS share link, because many apps don't make custom schemes clickable (00 §2.1, document 01).

The top design goal is usability for people who aren't IT-literate. Three rules follow from it, and they explain a lot of the protocol's shape (00 §1.1):

  1. The insecure path has no security friction. Sign in with a familiar provider, confirm a pre-filled name, and you're in. Insecure accounts hold no cryptographic keys.
  2. Turning on security is one switch. If the person's last sign-in with their provider was more than a day ago, one provider sign-in comes first. After it, the client does every group-key, media-key, join, leave and rotation operation without asking the user anything; the user acts only at the moments listed in 00 §4.12.4.
  3. Warnings are rare, specific and from a closed list. A client shows only the warnings in 00 §4.12.1 and MUST NOT show any security warning that isn't in 00 §4.12.

If you write a client, rule 3 is a hard requirement, not a style preference: 00 §4.12.5 lists the events that must never prompt the user, including MLS joins and leaves, other users' new devices, key rotation, reconnects and route changes.

Servers, domains and base URLs

A server is one Sloppy Voice instance at one base URL, for example https://chat.sloppyvoice.com/server. Every endpoint path is relative to it (00 §2.1). A server has one canonical domain and zero or more alias domains; addresses on an alias name the same accounts and channels as the canonical domain. Every stored, signed, compared or hashed address uses the canonical domain, and a verifier rejects a signed object that names an alias with address.non_canonical (00 §6 HP-8).

The domain owner points a domain at a base URL with a TXT record at _sloppyv.<domain>:

_sloppyv.sloppyvoice.com.  TXT  "v=sv1 url=https://chat.sloppyvoice.com/server"

The server, in turn, lists the domains it serves in its ServerMetadata at {base}/meta. A client accepts the binding only when both sides agree, because either statement alone can be forged by someone who controls only one side (02 §2). The Discovery page covers resolution, the .well-known fallback, web clients and pinning.

One deployment MAY run several servers. https://chat.sloppyvoice.com/server for sloppyvoice.com and https://chat.sloppyvoice.com/server2 for guild.sloppyvoice.com are two unrelated servers at protocol level: each has its own base URL, metadata, canonical domain, signing keys, accounts and community (00 §3.4). Two domains that point to the same base URL are the same server (00 §9.1 R-03).

The parts of the system

Every server plays three roles at once (00 §2.2, 00 §3.1):

  • Community: the group of members, roles and channels.
  • Home server for the accounts registered on it.
  • Hosting server for the contexts it sequences and stores.

A context is anything with members and a message timeline: a channel, a 1:1 DM or a group DM. Each has a typed context reference (ctx): ch:<UUIDv7>, dm:<22-char base64url> or gdm:<UUIDv7> (00 §7.6).

Component What it does What it holds Guide
Home server (role) OIDC login, home sessions, device records, bot accounts, issuing HomeAssertions, publishing IdentityState, storing KeyBackup, AccountVault and KeyPackages, the community list and DM index, message requests, notification records, sending pushes, revocation fan-out Account database, server signing keys, ciphertext blobs it can't open Accounts, Federation
Hosting server (role) Community, channels, membership, roles, invites, moderation; sequencing and storing messages and attachments; hosting DMs; MLS Delivery Service for every secure context and Authentication Service for secure channels; storing GroupInfo, handshakes, SealedMessages, HistoryShares and VisibilityGrants; call control and voice leases; running the relay and, optionally, an SFU; sending notify Content: plaintext in insecure contexts, ciphertext in secure ones; the MLS external-sender key Communities, Messaging
Relay Forwards voice-dc/1 frames and video-dc/1 fragments over WebRTC data channels, checks each recipient separately, enforces leases, never holds media keys. Every server has one. Lease state; plaintext media only in insecure contexts Calls, Media
SFU (optional) Forwards sfu-rtp/1 RTP with simulcast or SVC, driven by the hosting server through an adapter Same as the relay Media, Running a server
Push gateway Forwards opaque wake-ups to APNs and FCM for one app build. Run by the publisher of that build. Push tokens Notifications
OIDC provider Authenticates people to their home server, for example Google External identities Accounts
Client Desktop, web, mobile or bot. All speak the same protocol. Secure clients hold keys and do all end-to-end cryptography. Session tokens; for secure accounts the identity key, device signing key, vault keys, MLS state and pins Client requirements

A few points that matter when you design an implementation:

  • The client talks directly to every server whose contexts it uses. The home server is never in the chat or media path of a remote context (00 §3.2). Your home server vouches for you with a short-lived HomeAssertion, and the remote server gives you a remote session of its own.
  • Clients never talk to each other directly. Every exchange between two clients, call media included, goes through servers, and there is no client-to-client signalling (00 §3.2, D-094 in 00 §9.2). Relays and SFUs have public addresses that clients reach directly, so clients configure no STUN or TURN servers and a deployment runs neither (15 §6.3, 17 §12.2, 21 §5.2).
  • The DM's hosting server is computed, not chosen. For a 1:1 DM both sides compute the same host and the same dm: ID from the two canonical addresses, so two people starting a DM at once get one conversation (00 §6 HP-9, Direct messages).
  • The push gateway sees nothing useful. Push payloads carry only an opaque notification ID in every mode; the device fetches the record from its home server and the event from the hosting server (00 §3.3, 00 §6 HP-9). Push registrations exist only at the home server, so remote servers never see push tokens.
  • Bots are accounts. A bot is an account with kind: "bot", created on its home server by a user who holds manage_bots and authenticated with Authorization: Bot <token> (00 §6 HP-10). The bot token works only at the bot's home server; at other servers a bot gets a HomeAssertion and a remote session, as a user does (03 §3.1).

Architecture

            DNS: _sloppyv.<fqdn> TXT   or   https://<fqdn>/.well-known/sloppyv
                                  |  discovery
                                  v
 +----------+  OIDC  +---------------------+   S2S over HTTPS    +----------------------+
 | OIDC     |<------>| HOME SERVER a.com   |<------------------->| HOSTING SERVER b.com |
 | provider |        | accounts, devices,  |  (sv-s2s+jwt)       | community, channels, |
 +----------+        | IdentityState,      |                     | messages, DMs, MLS,  |
                     | vault, DM index,    |                     | calls, leases        |
                     | notifications       |                     +----------------------+
                     +---------------------+                        ^            |
                        ^           | wake-up {h}                   |            | lease
           home session |           v                remote session |            | snapshots
           HTTPS + WS   |    +--------------+        HTTPS + WS     |            v
                        |    | PUSH GATEWAY |--> APNs, FCM          |     +-------+  +-----+
                        |    +--------------+                       |     | RELAY |  | SFU |
                        |    (Web Push needs no gateway)            |     +-------+  +-----+
                        |                                           |        ^         ^
                     +----------------------------------------------------+  | WebRTC  |
                     | CLIENT alice@a.com (one device)                    |--+---------+
                     +----------------------------------------------------+

This is a simplified copy of the diagram in 00 §3.2, which also labels the documents behind each arrow.

The four planes

Traffic falls into four planes, each with its own transport (00 §3.3):

Plane Between Carries Guide
Control Client and a server HTTPS JSON commands, and one WebSocket for server-to-client events HTTP API, Event WebSocket
Federation Server and server HTTPS JSON with an sv-s2s+jwt bearer token per request; a single event-ingest endpoint plus lookups; retries for up to 24 h Federation
Media Client and relay, client and SFU; never client and client WebRTC data channels (voice-dc/1, video-dc/1, control) and RTP (sfu-rtp/1) Calls, Media
Push Home server, push gateway, APNs and FCM; home server and Web Push services An opaque notification ID only Notifications

The control plane is deliberately asymmetric. Every command is an HTTPS request. The event WebSocket at GET /v1/events is server-to-client apart from a few session.* messages, and a client opens at most one per client session per server (00 §7.4). The first message on it is session.hello, which carries the token, because browsers can't set headers on WebSockets and tokens never go in URLs.

Every WebSocket frame is one Envelope. This is a durable timeline event from 00 §7.4:

{
  "v": 1,
  "t": "message.created",
  "id": "01938f2e-7c1a-7b3e-9d1e-5f2a8c7d9e01",
  "ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
  "seq": 4182,
  "ts": "2026-12-04T18:22:31.512Z",
  "d": {
    "mid": "01938f30-1b2c-7d4e-8f90-a1b2c3d4e5f6",
    "carrier": "plain",
    "sender": { "addr": "alice@a.com", "name": "Alice", "did": "q2bS9xVg3m0yJpQe1vT0Aw", "kind": "user" },
    "createdAt": "2026-12-04T18:22:31.512Z",
    "content": { "text": "Hello", "replyTo": null, "attachments": [] },
    "mentionAll": false,
    "editedAt": null,
    "deleted": null,
    "reactions": [],
    "updatedSeq": 4182
  }
}

ctx names the stream: a context reference, me for account-level events, or community for events about the server's community as a whole. Durable events carry a gap-free seq per stream, which is how a client resumes after a reconnect; ephemeral events such as typing and lease ticks carry none and are never replayed. The Event WebSocket page covers this in full.

Security modes

Security is a property of accounts, devices, servers and contexts (00 §4.1):

Entity Property Values Changes
Account security insecure, secure Upgrade any time; a downgrade counts as an identity reset
Device of a secure account enrolment enrolled, unenrolled Pairing or the recovery key enrols it
Server secure false, true Upgrade only
Channel security insecure, secure Upgrade only
1:1 DM security computed Follows its two participants
Group DM security computed Upgrades automatically; never downgrades

A context's security mode is the channel's security, or the DM's computed security. The account's mode is the sec claim of its IdentityState, signed by the home server; a server's is the secure member of its ServerMetadata. An enrolled device is a device of a secure account that holds the account's identity key and has an active DeviceCertificate listed in the account's IdentityState. An unenrolled device is signed in but hasn't been paired or restored, and can use insecure contexts only.

Insecure by default

New accounts, channels and servers are insecure (SM-1, 00 §4.2). The exceptions are a secure server's own: a channel created on it is secure, and an account created on it starts in the account state upgrade_required. Insecure mode is conventional client–server trust: confidentiality and integrity rest on TLS and an OIDC-derived session (00 §5.1). The servers involved can read, alter and forge anything in their insecure contexts. The protocol's only promise there is that no third party, such as a network attacker or an unrelated server, can read or impersonate.

An insecure account holds no account keys at all: no identity key, device signing key, box key, vault key or MLS state. Ephemeral transport keys (TLS, WebRTC DTLS, browser-managed Web Push subscription keys) don't count, and every client uses them (00 §7.15, D-060).

Secure contexts

In a secure context these are end-to-end encrypted: message text and formatting, edits, reaction values, replies, attachments and their names, history keys, voice, screen video, screen and application sound, and webcam (SM-6, 00 §4.2).

The mechanisms, each covered on its own page:

  • Identity. All enrolled devices of a secure account share one Ed25519 identity key. Each device has its own device signing key (DSK) and box key, bound to the identity key by a DeviceCertificate. The home server publishes a signed IdentityState for every account. See Secure accounts.
  • Group keys. Each secure context has exactly one MLS group (RFC 9420). The hosting server is the Delivery Service, and for channels also the Authentication Service; in DMs and group DMs each client is the Authentication Service. See MLS and sealed messages.
  • Content. Every piece of secure application content travels as a SealedMessage: AES-256-GCM under a per-message key derived from the epoch's history key and the message ID, with a key commitment and a DSK signature. MLS PrivateMessage isn't used for content (00 §6 HP-4).
  • Media. SFrame (RFC 9605) keyed from the context's own MLS group, plus a MediaAttestation every 500 ms per active source so a member can't pass off media as another member's. See Media.

The same message schema travels in both modes; only the carrier differs. An insecure post carries content:

POST {base}/v1/contexts/ch:01938a11-2b3c-7d4e-8f90-112233445566/messages

{ "mid": "01938f30-1b2c-7d4e-8f90-a1b2c3d4e5f6",
  "content": { "text": "Hello", "replyTo": null, "attachments": [] } }

A secure post carries sealed, whose plaintext is the same content JSON:

POST {base}/v1/contexts/ch:01938a11-2b3c-7d4e-8f90-112233445566/messages

{ "mid": "01938f30-1b2c-7d4e-8f90-a1b2c3d4e5f6",
  "sealed": {
    "v": 1,
    "ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
    "gen": 1,
    "mid": "01938f30-1b2c-7d4e-8f90-a1b2c3d4e5f6",
    "epoch": 42,
    "ekid": "q83vEjRWeJA",
    "kind": "message",
    "did": "q2bS9xVg3m0yJpQe1vT0Aw",
    "nonce": "3q2-7wAAAAAAAAAA",
    "kc": "mZ8rQ1cX0vB7nT4yL2kP9w",
    "ct": "Vt1yQm9…",
    "sig": "Jk3b0xW…"
  },
  "mentions": ["bob@b.com"],
  "mentionAll": false }

Both go to POST /v1/contexts/{ctx}/messages. The client generates mid (a UUIDv7); it is the idempotency key and, in a secure context, is bound into the message key. The server never takes the sender from the body; it knows it from the session. In a secure message, mentions and mentionAll are a cleartext hint for notifications, which a user can turn off (00 §7.4, D-063 in 00 §9.2).

What each mode protects

Insecure context Secure context
Text and files TLS to the hosting server; stored in plaintext, and the server can read it MLS and SealedMessage; attachments encrypted by the client; the server stores ciphertext only
Voice, screen, application sound, webcam DTLS to the relay or SFU, which can hear and see it SFrame keyed from MLS, plus MediaAttestation
Who can read and hear Participants and the hosting server Participants only
Who may enter Everyone; a secure account uses no keys there Only a secure account on an enrolled device
History for new members Earlier history as their permissions allow Nothing from before their join unless a member deliberately shares it; marker K6 at the join point
Identity validated by The hosting server, from the HomeAssertion Channels: the hosting server, against the IdentityState. DMs: each client, with identity pins
Notification content notify MAY include a preview of at most 140 characters No content in notify; the device fetches and decrypts the message itself
Push payload Opaque notification ID only Opaque notification ID only
Webhooks Allowed Refused with security.context_secure_unsupported

Sources: Matrix A (00 §4.3), Matrix E (00 §4.7), Matrix F (00 §4.8), Matrix G (00 §4.9) and SM-13 (00 §4.2).

Warning

Insecure contexts offer no protection against servers; the protocol only protects them against third parties (00 §10 item 10). The hosting server reads, alters, records and forges everything in its insecure contexts, and the relay or SFU hears and sees the media it forwards (00 §5.2). The intended open-lock text says so: "The server running this community can read messages and hear calls" (00 §5.5).

What secure mode does not hide

Secure mode removes servers from the content path, not from the membership path (00 §5.1). Servers still order messages, store ciphertext, see metadata and, in channels, decide who is a member. By design they see (00 §5.4):

  • membership and rosters, including device counts;
  • context names, topics and settings;
  • who sends, when, and how big (attachment sizes are padded to buckets);
  • message kinds (message, edit, reaction, delete), but not reaction values;
  • reply and thread structure where document 11 makes it cleartext;
  • mention hints, unless the sender turned them off;
  • typing and read state;
  • who shared earlier messages with whom, and which seq ranges;
  • who is in a call, who speaks when, and media bitrates;
  • IP addresses of connecting clients, and push timing.

Two limits of the trust model matter for anyone writing user-facing text (00 §10 items 1 and 2):

  • A malicious home server can impersonate its own users in secure channels without warning other members, because servers validate identity in channels. Only the victim's own devices notice (self-alerts W4a and W4b). Users must not be told that a channel lock protects against their contacts' home servers.
  • A malicious hosting server can admit accounts it controls into its own secure channels. They appear in the member list. The intended closed-lock text for a channel therefore reads "Only members can read and hear this. The community's server decides who is a member" (00 §5.5).

In DMs the clients validate identity instead: each client pins a contact's identity key on first use and shows W2 when it changes (00 §5.3). This asymmetry between channels and DMs is an owner requirement and the main one in the model. The Security model page covers the full threat model from document 22.

Who can enter what

The rule for secure doors is SM-4: only a secure account using an enrolled device can read, post to, join the MLS group of, or join a call in a secure context (00 §4.2). A server MUST refuse an insecure account with security.account_required and an unenrolled device with security.device_not_enrolled. Joining a secure server's community needs a secure account but not an enrolled device; an unenrolled device then can't open any channel there. Channels across every combination of server, channel and account (00 §4.3):

Server Channel Account and device Result The user sees
insecure insecure insecure Allowed Nothing about security
insecure insecure secure, any device Allowed; the account's keys aren't used W1 once per community, then an open-lock "Not encrypted" indicator
insecure secure insecure Refused: security.account_required Gate card G1, "Turn on encryption to join"
insecure secure secure, unenrolled Refused from this device: security.device_not_enrolled Gate card G2, "Set up encryption on this device"
insecure secure secure, enrolled Allowed Closed lock; no prompts
secure secure insecure Refused at community join: security.account_required G1 at community level
secure secure secure, unenrolled Community membership yes; every channel refused with security.device_not_enrolled G2 inside each channel
secure secure secure, enrolled Allowed Closed lock, plus a "secure community" badge
secure insecure any Can't exist (SM-2): security.server_requires_secure
(home) secure none insecure account homed there Can't exist (SM-3), except transiently as upgrade_required Blocking "Turn on encryption to continue" at next sign-in

After G1 or G2 the user takes the one action offered, and the interrupted join or action resumes by itself (00 §4.12.2). A client that leaves the user to retry by hand doesn't meet that rule.

DMs, group DMs and calls

DM security is computed from the participants' IdentityStates, never chosen by a user (00 §6 HP-6):

  • 1:1 DMs follow their participants. A 1:1 DM is secure exactly when both accounts are secure, and it changes mode in the same conversation when either account changes, with a timeline marker at each change (SM-8). The exception is a DM whose hosting server is a secure server, which can't hold an insecure DM (SM-10): it is closed with marker K5 and continues at the host the hosting rule now selects, or, when both homes are secure servers, stays in place in state encryption_pending with no content until the insecure participant turns on encryption. A secure user talking to an insecure one sees banner W7 in that DM.
  • Group DMs never downgrade. A group DM is created secure exactly when all participants are secure, and becomes secure automatically when all remaining participants are. Adding an insecure account to a secure group DM fails with security.would_downgrade, and a participant whose account becomes insecure is removed (SM-9). After the refusal the client offers "Start a new group without encryption" (Matrix D, 00 §4.6).
  • Calls inherit the security mode of their context (SM-11). All call media (voice, screen share, application sound and webcam) goes through the hosting server's relay or SFU in every context and security mode, and clients MUST NOT send media to each other directly (00 §4.7). 1:1 DM calls use the relay; channel and group DM calls use the relay or the SFU. Because every path goes through the server, the server enforces voice leases on all of them, so call moderation holds against modified clients, and other participants never learn your IP address from a call (00 §10 item 7).

The Direct messages and Calls pages cover the details.

Upgrades only go one way

Channels and servers only upgrade (SM-7). A downgrade request fails with security.downgrade_forbidden; to go back you create a new channel. A secure server never goes back to insecure, and every channel on it is secure, so a request for an insecure channel there fails with security.server_requires_secure (00 §4.2).

Accounts upgrade with one action, "Turn on encryption", in Settings or from a G1 card. The home server refuses PUT {home}/v1/me/identity unless the session's last provider sign-in is within 24 h, so a stolen session token can't attach a key that DM contacts would pin silently; the client asks for a provider sign-in first when the last one is more than 23 h old, which keeps the limit from running out during the ceremony (00 §6 HP-12). An account in the state upgrade_required (created on a secure server, or a local insecure account when its server upgrades) can only turn on encryption or delete itself (SM-1, SM-3). Other requests fail with security.upgrade_required; the client shows G1 when a remote server returns it, and the blocking "Turn on encryption to continue" screen of Matrix A row A10 for its own account (00 §4.12.2). A downgrade from secure to insecure counts as an identity reset.

A channel upgrade is started by a member with manage_channels on an enrolled device: a dry run lists the members who can't follow, W5 names them, and the switch at upgradeSeq is atomic. Members who were in the channel before the switch keep reading the pre-upgrade plaintext under marker K3; accounts that join later see nothing from before their join, that plaintext included. Secure members' devices join the MLS group by themselves. Insecure members move to the membership state needs_encryption: they keep their membership and roles and can read that pre-upgrade history, but nothing new. An active call ends with reason security_upgraded and clients rejoin it as a secure call automatically, keeping mic and push-to-talk state (00 §4.10, 00 §6 HP-12). 00 §4.10 lists every transition; the Communities page covers the upgrade procedure.

Secure contexts only

In a secure channel, group DM or 1:1 DM, an account is served sealed content only from the start of its current membership (visibleFromSeq). There is no history setting, and nothing hands keys to newcomers, bots included. A user's own new devices recover what the account can read through the key archive, and a member may deliberately share earlier messages with one specific member, which every member sees (00 §4.2 SM-13, D-007).

The security errors

00 §4.11 owns the seven security.* error codes. All of them have retryable: false, and every data member is optional.

Code Status userAction data Meaning
security.account_required 403 enable_encryption scope (community or channel) with domain (community) or ctx (channel, DM or group DM) The account is insecure and the context or community is secure
security.device_not_enrolled 403 set_up_device ctx The account is secure but this device holds no identity key
security.upgrade_required 403 enable_encryption none The account is homed on a secure server and hasn't turned on encryption yet
security.server_requires_secure 409 none none An insecure channel was requested on a secure server
security.downgrade_forbidden 409 none none A channel or server downgrade was requested
security.would_downgrade 409 none insecure: the canonical addresses of the insecure accounts Adding this insecure account would downgrade a secure group DM
security.context_secure_unsupported 403 none feature, for example webhooks The feature, such as a webhook, isn't available in secure contexts

Note

The general status table in 03 §2.5 lists security.* under 403, but 00 §4.11 and the code index in 03 §10.7 give 409 for security.server_requires_secure, security.downgrade_forbidden and security.would_downgrade. Use the per-code statuses, and branch on code, not on the status.

Errors are RFC 9457 problem details with Content-Type: application/problem+json; a WebSocket error carries the same object in d. This is the example from 00 §7.9:

{
  "type": "urn:sloppyv:error:security.account_required",
  "code": "security.account_required",
  "title": "This channel is end-to-end encrypted",
  "status": 403,
  "detail": "Turn on encryption for your account to join this channel.",
  "retryable": false,
  "retryAfterMs": null,
  "userAction": "enable_encryption",
  "data": { "scope": "channel", "ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566" }
}

Clients render the fix from code and userAction and never parse title or detail. A receiver treats an unknown scope as channel.

Warnings, gate cards and markers

Everything a user sees about security comes from a closed catalogue in 00 §4.12; document 20 owns the exact copy:

  • Warnings W1 to W9, for example W1 (a secure account enters an insecure community or channel), W2 (a DM contact's identity key changed) and W9 (a context the client pinned as secure is now presented as insecure).
  • Gate cards G1 and G2, which block a secure context and offer the one action that fixes it.
  • Timeline markers K1 to K8, for example K1 "Messages from here on are end-to-end encrypted." and K6 at a newcomer's join point.
  • UX moments M1 to M11, the points where the user must act because nothing else can, such as OAuth consent and saving the recovery key.

A client shows the closed lock for a context only when the context is advertised secure and the client holds current MLS state for its group. A client that has seen a channel, server or group DM as secure and later sees it as insecure shows W9 and refuses to send (SM-12). The other two lock states (00 §4.12.6):

  • A secure account sees an open lock ("Not encrypted") on insecure contexts. An insecure account sees no lock on them.
  • An insecure account, or a secure account on an unenrolled device, sees an outline gated lock ("Encrypted") on secure contexts it can't open. The gated lock appears only in lists, previews and on the gate card, never beside content, and leads to G1 or G2.

The Client requirements page covers the catalogue and presentation rules.

Protocol version sv1

Sloppy Voice v2 is the product. Its wire protocol is protocol version 1, written sv1 (00 §7.1). The version appears in these places:

Where Value
Discovery record v=sv1
HTTP API path {base}/v1/…
WebSocket subprotocol sloppyv.v1
Cryptographic labels Start with sv1 , for example sv1 history
MLS group_id prefix sv1:
Error type URIs urn:sloppyv:error:<code>
ServerMetadata versions ["1.0"]

{base}/meta is the one unversioned endpoint (GET /meta); everything else is under {base}/v1/ (00 §7.3). The URI scheme is sloppyv.

Versioning rules from 00 §7.8:

  • A minor version only adds things. Receivers MUST ignore unknown members and unknown event types, and treat unknown enum values as the owning document says.
  • An unknown endpoint returns 404 core.not_found, which the caller treats as "feature absent".
  • A breaking change needs a new path version (/v2), served alongside /v1 for at least 12 months.
  • A client older than the server's minClient shows an "update required" screen.
  • Optional capabilities are negotiated by feature name. ServerMetadata lists the server's features, clients send theirs in session.hello, federation peers read each other's metadata, and the effective set is the intersection. The initial names are voice-dc/1 and video-dc/1 (mandatory), and sfu-rtp/1 and webhooks (optional; webhooks work in insecure contexts only).
  • Secure-mode support is mandatory and has no feature flag.

There is no cryptographic negotiation either. Version 1 has exactly one cryptographic suite, sv1-c1, with no algorithm negotiation within it; a future suite gets a new ID, and sv1-c2 is reserved for a post-quantum hybrid (00 §7.15). The Cryptography page lists its primitives.

Wire conventions

00 §7 fixes the conventions every document follows: I-JSON bodies, lowerCamelCase members, <area>.<name> event types and error codes, base64url without padding (decoders reject padding), RFC 3339 UTC timestamps with milliseconds, durations as integer milliseconds in members ending in Ms, UUIDv7 message and object IDs, and canonical addresses in every stored and signed object. The HTTP API page covers them with errors, pagination, idempotency, rate limits and size limits.

Conformance classes

An implementation claims one or more conformance classes. A class is met only when every MUST in the listed documents that applies to that class is met (00 §1.5).

Class What it must implement Documents
Server Discovery and metadata; the home-server role; the hosting-server role, including the MLS Delivery Service, the Authentication Service for channels, sealed-content storage, manual history sharing, call control and voice leases; a media relay; federation in both directions. Every server supports the server side of secure mode, even if no context on it is secure yet. 01–15; the relay parts of 16 and 17; the relay and control parts of 18; 19; 21 §6 and the requirements 21 marks normative
SFU-capable server Server, plus the sfu-rtp/1 media profile through an SFU reached via the server's control plane 15, 17, 21 §7.1
Full client Desktop and mobile apps: everything a client does, including secure mode, calls, voice-dc/1, video-dc/1, sfu-rtp/1, SFrame, MediaAttestation and, on mobile, push All, especially 20
Web client Full client, with the web-specific rules for discovery and key storage All, especially 02, 08, 20
Bot client Login with a bot token, messaging and DMs. A secure bot also implements identity, MLS and SealedMessage. Media is optional, but a bot that joins a call in a secure context MUST implement SFrame and MediaAttestation. 05, 07, 11–14, 20; 15–18 for a bot that joins calls
Push gateway The gateway API 19

Every server must support secure mode because a secure DM can be hosted on any server and any user can turn on encryption at any time (00 §1.5). For a server this is storage and structural checks, not content cryptography: the server stores and orders MLS messages and SealedMessages, checks credentials against IdentityStates, and never holds a content key.

One join, end to end

Flow F2 in 00 §8 shows how the parts fit together. Bob (bob@a.com, insecure) opens sloppyv://PublicLobby@sloppyvoice.com and joins the voice channel:

1. Canonicalize the address: local part "publiclobby", domain "sloppyvoice.com"   (01)
2. Discover sloppyvoice.com: TXT record (web clients: {home}/v1/resolve),
   then GET {base}/meta, domain in "domains"                                      (02)
3. GET  {base}/v1/addresses/publiclobby      -> voice channel, ctx, "Public Lobby", insecure
4. GET  {base}/v1/community                  -> name and join policy for the preview
   (Bob taps "Join"; nothing is joined before that tap)
5. POST {a.com base}/v1/federation/assertions  (aud: "sloppyvoice.com") -> HomeAssertion
6. POST {base}/v1/federation/sessions        -> remote session at sloppyvoice.com
7. POST {base}/v1/community/join             (one checkbox if the join gate asks to accept rules)
8. POST {base}/v1/channels/ch:…/join        -> channel member, no further prompt
9. Open {base}/v1/events, subscribe to the community stream and the channel's stream
   (only channel members may subscribe to a channel's stream)
10. GET {base}/v1/contexts/ch:…/messages?before=…   -> timeline
11. POST {base}/v1/contexts/ch:…/call/join   -> pid, relay URL, RelayTicket, allowed media
12. Connect to the relay; speak if Bob's role grants speak_and_share

From step 3 on, every request except step 5 goes directly to sloppyvoice.com; Bob's home server a.com only issues the assertion. The reference entries for the endpoints used: GET /v1/addresses/{local}, GET /v1/community, POST /v1/federation/assertions, POST /v1/federation/sessions, POST /v1/community/join, POST /v1/channels/{id}/join, GET /v1/contexts/{ctx}/messages and POST /v1/contexts/{ctx}/call/join.

Bob sees nothing about security. In flow F3, Alice (alice@a.com, secure, enrolled device) joins the secure channel Ops@b.com by the same path, with these differences:

  • the HomeAssertion carries sec: secure, enr: true, igen, ikf and dkf, and the client sends it to POST /v1/federation/sessions with a DeviceProof, its DeviceCertificate and its IdentityState;
  • after joining the channel, the client fetches the group's GroupInfo and joins the MLS group by external commit, which b.com checks as Authentication Service;
  • b.com serves her nothing sequenced before her join, and her client shows K6 at her join point.

She sees no prompt at any step. 00 §8 has ten flows like these, from first login to recovery, moderation and history sharing. The Quick tour does a similar walk by hand for a bot, with the exact requests.

Map of the guide

Page What it covers Spec
Quick tour A bot's first session by hand with dig, curl and websocat: discovery, metadata, bot-token login, joining a channel, posting, history and the event socket 00, 02, 03, 05, 09, 11
Addresses Address grammar, local parts and display names, canonicalization, address lookup, sloppyv URIs and share links 01
Discovery The _sloppyv TXT record, .well-known, /v1/resolve, ServerMetadata, delegation evidence, server keys and pinning 02
HTTP API Request rules, authorization, CORS, errors, pagination, idempotency, rate limits and size limits 03
Event WebSocket session.hello, subscriptions, the envelope, durable and ephemeral events, resume and heartbeat 03
Accounts OIDC login, sign-up, tokens, device records, linked providers, bots, account states and deletion 05
Federation HomeAssertion, DeviceProof, remote sessions, S2S request tokens and events, revocation fan-out, blocking 06
Communities Community and channel membership, invites, join gates, channel and server upgrades 09
Roles and moderation Permissions, roles, moderation actions, bans, reports and the audit log 10
Messaging Message content, edits, deletes, reactions, mentions, read state, presence, timeline sync, attachments 11
Direct messages The DM hosting rule, DM IDs, message requests, the DM index, security transitions, group DM membership 12
Secure accounts Identity keys and certificates, IdentityState, pins and safety numbers, turning on encryption, pairing, recovery and the vault 07, 08
MLS and sealed messages The MLS profile, external commits, commit duty, SealedMessage, visibleFromSeq and manual history sharing 13, 14
Calls Call control, voice leases, relay connection, routing, SFU signalling, epoch switches and auto-rejoin 15
Media voice-dc/1, video-dc/1 and sfu-rtp/1, Opus, screen share and webcam, SFrame and MediaAttestation 16, 17, 18
Notifications notify, notification records, push registration, the push gateway API, ringing and badges 19
Client requirements The normative UX rules: warnings, gate cards, markers, the never-prompt list, the lock indicator, web hardening 20
Cryptography The sv1-c1 suite, the JWS profile, labelled signatures, label registries, CPace and Argon2id 04
Running a server Deployment profiles, scaling, the relay-control and SFU adapter interfaces, key rotation, outages 21
Security model The threat model per party and mode, metadata exposure and residual risks 22

The reference section of this site lists every endpoint, event, error and object, generated from the specification, and the specification itself is rendered here too, starting with document 00.

Where to start

00 §1.3 gives a reading order for the specification, and the same order works for this guide:

Examples in the specification are informative unless the text says otherwise; where an example and the normative text disagree, the normative text wins (00 §1.3). The same holds for the examples in this guide.