Every user account, bot account and channel on Sloppy Voice has an address of the form local@domain, for example PublicLobby@sloppyvoice.com (01 §1.1). This page covers what you need to accept addresses from people, put them on the wire, show them back, and turn them into links. Resolving a domain to a server is on Discovery; this page assumes you can get a base URL and ServerMetadata for a domain.

The short version:

  1. Everything a person types, pastes or taps goes through one function, canonicalize(), which returns the canonical address.
  2. Only the canonical address is stored, signed, compared, hashed or sent in JSON.
  3. What you show people is the display form, built from the owner's display name after you check it.

Servers implement all of this plus the address lookup. A bot needs only the canonical forms of 01 §7, plus the display-name check if it renders names to people (01, conformance).

Three forms

An address exists in three forms, and you must keep them apart (01 §2.1):

Form Example Where it appears
Input form Public Lobby@Chat.SloppyVoice.com, sloppyv://PublicLobby@sloppyvoice.com, https://sloppyvoice.com/j/PublicLobby Typed text, pasted text, links, discovery input. Only ever passed to canonicalize().
Wire form (canonical address) publiclobby@sloppyvoice.com Every JSON member, signed object, MLS structure, hash input, database key and comparison.
Display form PublicLobby@sloppyvoice.com, or "Public Lobby" inside the sloppyvoice.com community Shown to people.

The wire form is case-folded, so it is lowercase wherever the script has case; capitalization and spacing come back through the display name. The display form MUST NOT be stored or sent in a JSON member as an address, and when someone pastes it back it is input form again (01 §2.3).

A canonical address is L "@" C: a prepared local part, @, and the canonicalDomain of the server the address's domain resolves to, as a lowercase A-label (01 §7.1).

Wire grammar

The ABNF is written over the UTF-8 octets of the canonical address (01 §2.2):

canonical-address = canonical-local "@" canonical-domain

; 1 to 64 octets in total. Every non-ASCII character is
; further restricted by the SV local-part profile.
canonical-local   = 1*lp-unit
lp-unit           = %x30-39 / %x61-7A / UTF8-non-ascii
                    ; ASCII digits, ASCII lowercase letters, or a
                    ; non-ASCII character. ASCII uppercase never appears.

; 3 to 253 octets in total, at least two labels.
canonical-domain  = label 1*( "." label )
label             = a-label / ldh-label           ; 1 to 63 octets each
a-label           = "xn--" 1*59( lc-alnum / "-" ) ; MUST decode to a valid
                                                  ; U-label (IDNA2008)
ldh-label         = lc-alnum [ *61( lc-alnum / "-" ) lc-alnum ]
lc-alnum          = %x30-39 / %x61-7A

A string that matches is only well-formed; it is canonical when it also passes the checks in Checking received addresses. Addresses never carry a port, a path, a trailing dot, an IP literal or a quoted local part. Note that lp-unit has no ., _, - or +: a local part is letters, combining marks and digits only.

Local parts in any script

Local parts are Unicode letters and digits from any script, so σοφόσπαπάσ, 田中太郎, مريم2024 and ᏣᎳᎩ (Cherokee) are all valid (01 §3.1). Preparation is the PRECIS UsernameCaseMapped profile of RFC 8265 with fixed choices. The two that change results were confirmed by the owner (AD-1, D-092); the third is that IdentifierClass validity is checked both before and after the mappings (steps 4 and 8 below):

  • Case mapping is Unicode full default case folding, not toLowerCase(). Case folding is covered by Unicode's stability policy, so a prepared local part never changes when Unicode is upgraded. It also makes Straße and STRASSE one address, and folds Greek final ς together with σ.
  • The only additional mapping is U+0130 → U+0049. Turkish "İstanbul" prepares to istanbul, not to "i" plus a combining dot above, which UTS #39 flags as confusable with plain "i".

Folding is locale-independent, so capital I always folds to dotted i. A local part with dotless ı, such as ışık, can never be shown with a capital I, because "Işık" prepares to the different local part işık (vector N29).

prepareLocal

prepareLocal(s) returns a prepared local part or a failure reason. You MUST apply its 13 steps in order and produce exactly the result 01 §3.2 describes. In outline:

  1. Reject input over 256 code points (too_long).
  2. Remove every White_Space code point; nothing left is empty.
  3. Width-map fullwidth and halfwidth forms, then map U+0130 to U+0049.
  4. Check PRECIS IdentifierClass validity (disallowed_code_point, unassigned).
  5. Apply full default case folding.
  6. Apply NFC.
  7. Apply the RFC 5893 Bidi Rule to right-to-left strings (bidi_rule).
  8. Check validity again.
  9. Check idempotence (unstable).
  10. Check the repertoire: letters, combining marks and decimal digits whose UTS #39 Identifier_Type is Recommended, Inclusion or Limited_Use (disallowed_code_point, restricted_code_point, 01 §3.3).
  11. Check the shape rules: no leading mark, at least one letter, limits on combining-mark runs, no dot above i or j (01 §3.4).
  12. Check the script rules (mixed_script, mixed_digits, 01 §3.5).
  13. Check the length: at most 64 UTF-8 octets (too_long).

prepareLocal never transliterates, strips accents, maps lookalikes or truncates. The 64-octet limit is measured after folding, so input can pass before folding and fail after: ß becomes ss.

Two partial forms matter more to client and SDK authors than the full algorithm:

  • minimalPrepare(s) is steps 2, 3, 5 and 6 only. It never fails except with empty, and for assigned code points its result doesn't depend on the Unicode version. You use it to check received canonical addresses and to look up names.
  • linkPrepare(s) is steps 2 to 9. It leaves out the repertoire, shape, script and length rules, whose data changes between Unicode versions. You use it to check display names.

Only the server that registers a local part enforces the full profile. Receivers MUST NOT re-validate a received canonical address with it, or reject one because it would fail under their Unicode version, because an address registered under one Unicode version must not fail on a peer running another (AD-8, 01 §7.5).

The script rule

A local part must meet the script-coverage condition of UTS #39 Highly Restrictive, computed with the algorithm in 01 §3.5.1. It passes if it is single-script, or if one of these sets covers every code point:

  • {Latn, Hani, Hira, Kana, Jpan}: Japanese with Latin;
  • {Latn, Hani, Bopo, Hanb}: Chinese with Bopomofo and Latin;
  • {Latn, Hani, Hang, Kore}: Korean with Hanja and Latin.

Common and Inherited code points such as ASCII digits go with any script, so anna2024 and مريم2024 are single-script. tanaka太郎 passes. pаypal with a Cyrillic а fails with mixed_script, and so does Anna২০ with Bengali digits. All decimal digits must also come from one digit system (mixed_digits, 01 §3.5.2).

Warning

Do not use a library restriction level that also enforces Identifier_Status Allowed, such as ICU SpoofChecker's. It rejects Limited_Use scripts such as Cherokee, which the profile admits (vectors L21, L22, 01 §3.5.1).

A server MAY set a registration minimum, default 2 code points and at most 3; it never applies to lookups or existing names (01 §3.6).

Comparison, sorting and hashing

Two addresses are the same exactly when their canonical forms are identical octet for octet. There is no locale-sensitive, accent-insensitive or skeleton-based equality (01 §3.7). The canonical form is also what you hash and sort (01 §7.10):

  • Hashing uses the UTF-8 octets of the canonical address with no terminator, length prefix or extra normalization, unless the owning document's encoding adds one, as the dm: ID on Direct messages does.
  • Protocol sorting, such as the 1:1 DM hosting rule, compares UTF-8 octets as unsigned bytes. alice2@a.com sorts before alice@a.com because 2 (0x32) is less than @ (0x40).
  • User-interface sorting SHOULD use the Unicode Collation Algorithm on the display name, and MUST NOT decide anything in the protocol.

Canonical addresses and display names in JSON are in NFC. Accept both raw UTF-8 and \u escapes and compare after decoding. Never normalize a received canonical address to "fix" it: one that isn't already canonical fails the canonical check (01 §7.11).

Domains

prepareDomain(d) turns the domain part of input into a lowercase A-label domain, or fails with address.invalid_domain (01 §4.1). It trims white space and fails on white space inside, treats the ideographic, fullwidth and halfwidth ideographic full stops (U+3002, U+FF0E, U+FF61) as ., removes one trailing dot, rejects ports and IP literals (using the WHATWG "ends in a number" test), and runs UTS #46 ToASCII with Transitional_Processing = false, so ß and ς are kept. The result needs at least two labels, at most 253 octets, and a last label that isn't all digits.

The result is the typed domain, and it is only ever the input to discovery. The address always uses the canonical domain that discovery returns.

Domains travel as A-labels. You MAY show the U-label (bücher.example for xn--bcher-kva.example) only if every label passes the script, digit and Identifier_Type rules and isn't a whole-script confusable of an ASCII label; otherwise show the A-label form of the whole domain (01 §4.3). This stops an all-Cyrillic аррӏе being shown as if it were apple.

Display names

A display name is the local part with spaces and capitalization added, and nothing else (D-005). publiclobby might be shown as "Public Lobby", "PUBLIC LOBBY" or "PublicLobby", but never "Lobby" or "Public Lobby" with an exclamation mark (01 §6.1).

Formally, a display name N is linked to local part L exactly when linkPrepare(N) = L. The consequences:

  • A display name can't add, remove or change any letter, digit or mark, and can't add punctuation, emoji or invisible characters.
  • Accents must match. σοφόσπαπάσ accepts "Σοφός Παπάς" and "ΣΟΦΌΣ ΠΑΠΆΣ", but not "ΣΟΦΟΣ ΠΑΠΑΣ".
  • A display name has the same scripts as its local part. иванпетров can't be shown as "Ivan Petrov".
  • Typing a display name works as an address: Public Lobby@sloppyvoice.com canonicalizes to publiclobby@sloppyvoice.com.

A stored display name uses single U+0020 spaces with none at the ends, is in NFC, and is at most 128 UTF-8 octets (01 §6.2). Servers reject a name that doesn't link, or is over 128 octets, with address.display_name_mismatch (reason not_linked or too_long), and a name whose collision key matches another entry's with address.too_similar and field: "name" (01 §6.3). An entry always has a display name: if none is given, or an update proposes an empty or white-space-only string, it is the prepared local part itself, and that is not an error. Sign-up SHOULD collect the display name first and derive the local part from it, so a person types "Saxon Jones" once; see Accounts.

The receiver check

Display names come from servers, and a server can be wrong or malicious, so you MUST check every display name before showing it (01 §6.4). checkDisplayName(name, address):

  1. Let L be the local part of address (before the last @), unchanged.
  2. Map every White_Space code point to U+0020, collapse runs to one space, trim, and apply NFC. Call the result S.
  3. Fail if S is empty or longer than 128 UTF-8 octets.
  4. Pass exactly when linkPrepare(S) succeeds and equals L octet for octet. Show S, never the original name.

Run it on every name you render: AddressRef name members, lookups, profiles, channel objects, member lists, events and notification records. A server that stores or forwards a name from another server runs it too, drops a name that fails, and stores or forwards S. The check needs no network and no confusable data. Step 2 stops a server padding a name with line feeds or hundreds of spaces to push the domain out of view: vectors N30 and N31 pass and are shown as "Saxon Jones".

If the check fails, show the prepared local part and never the bad name, not even in a tooltip or a notification. Don't warn about it, because a bad display name isn't in the closed warning catalogue (01 §6.5). The fallback is safe because the local part is the identity.

AddressRef

In JSON, an address that may be shown with its display name travels as an AddressRef (01 §6.7):

{ "addr": "publiclobby@sloppyvoice.com", "name": "Public Lobby" }

addr is canonical. name is the display name as the owning server last stated it; if it is absent or null, show the prepared local part. Where an address appears without a name, as in mentions arrays and signed objects, it is a plain canonical string. Never take a display name from anywhere else, in particular from what a sender wrote about themselves in message content.

Display form and the domain

The display-local form is the display name with its white space removed if it passes the check, otherwise the prepared local part: "Public Lobby" gives PublicLobby. The display form is the display-local form, @ and the displayed domain: the canonical domain, shown as a U-label only under the rules in Domains. It always canonicalizes back to the same address, so people can copy and paste it (01 §6.6).

You MUST show the domain whenever an address's canonical domain differs from the context domain: the hosting server's canonical domain inside a channel or community, and the viewer's home server's canonical domain in DMs and everywhere else (01 §4.4). Profile cards, verification screens, warnings that name a person, link previews and message requests always show the full display form. This is the defence against lookalikes on other servers: alice@evil.example can call itself "Alice", but its domain is visible.

Render each address as a left-to-right isolate with the display-local form in a first-strong isolate, and each display name in a first-strong isolate, so right-to-left names can't reorder their surroundings. Never put isolation characters on the clipboard (01 §6.8). Presentation is on Client requirements.

canonicalize()

canonicalize(input, defaultDomain) is the one function that turns input form into wire form. Every client MUST use it for every address that comes from a person or a link, and every server MUST use it wherever it accepts input form, such as admin tooling (01 §7.2). defaultDomain is optional: the canonical domain to use for input that has none, such as the viewer's home server in a "New message" box, or the community being viewed in its member search.

  1. Parse with parseInput (below). The result is an address target, a community target, an HTTPS URL to resolve into a sloppyv URI and feed back in, or a failure. An invite code from a link is carried through unchanged.
  2. Local part. L = prepareLocal(raw local part). A failure of empty, too_long, contains_at or invalid_utf8 returns address.invalid_local_part. Any other failure may come from your Unicode data rather than the name, so compute M = minimalPrepare(raw local part), and if M passes the syntactic canonical checks 2 to 4, mark it unconfirmed and continue.
  3. Domain. D = prepareDomain(raw domain), or defaultDomain. With neither, return address.invalid with reason: "missing_domain". If prepareDomain fails, return address.invalid_domain.
  4. Discovery. Resolve D. Discovery confirms that D is in the server's domains, or fails with a discovery.* error such as discovery.domain_not_served.
  5. Canonical domain. Take C, the result's canonicalDomain, only after discovery has checked that C resolves back to the same base URL (02 §5.3). Skipping that check would let a server reached through its operator's own domain claim someone else's: bob@evil.example would be shown as bob@sloppyvoice.com. A mismatch is discovery.canonical_mismatch; if C itself can't be resolved, its resolution error is returned unchanged.
  6. Confirmation (unconfirmed local parts only). Call the address lookup for M. A 200 whose address is exactly M at C, octet for octet, confirms L = M. A 200 with any other address, a 404, or a 400 address.invalid_local_part returns the original failure. A 410 returns address.deleted. Any other failure (network, 429, 5xx) is returned as is, and the caller may retry later. While the person is still typing, you MAY show the original failure as a hint before confirmation completes.
  7. Result.
Member Meaning
address L "@" C; absent for a community target
domain C
local L; absent for a community target
baseUrl The server's base URL
viaAlias true if D ≠ C. Diagnostics only; MUST NOT be shown
evidence The delegation evidence from discovery
invite The invite code from a link, if any

Steps 2 and 6 exist so an address never stops working because one party's Unicode data is older or newer than another's. The owning server is the authority on what it registered, and accepting only the exact minimalPrepare result stops it redirecting one name to another (AD-14).

canonicalize is idempotent and never returns, stores or shows the typed domain. Apart from the confirmation in step 6, it doesn't check that anything exists at the address. To find out what an address names, call the lookup at baseUrl and use the address from its response, which differs only for the old address of a renamed channel.

Warning

If you are offline or discovery fails, do not fall back to using the typed domain as the canonical domain. Report that the server can't be reached and retry later (01 §7.3).

canonicalize has no cache of its own and relies on the discovery cache, so don't keep a separate table from typed domains to canonical domains. A canonical address, once obtained, is final: store it in contacts, the DM index, drafts and pins, and never canonicalize or rewrite it again (01 §7.4).

Aliases and canonical domains

A server can answer for several domains. Its ServerMetadata lists them in domains and names one as canonicalDomain; the others are alias domains. The namespace belongs to the server, not the domain, so publiclobby@chat.sloppyvoice.com is the same entry as publiclobby@sloppyvoice.com (01 §5.1).

Aliases are input only:

  • Never show the typed alias. Show the canonical domain, never what the person typed and never viaAlias, and don't tell them they used an alias. Someone who types Saxon Jones@chat.sloppyvoice.com sees SaxonJones@sloppyvoice.com (01 §7.8).
  • Never put an alias on the wire. Signed objects, identifiers, records and every JSON member that holds an address contain canonical forms only (01 §7.6).
  • The canonical domain never changes in v1, because every identity at the server is bound to it (D-032, 01 §7.9).
  • Adding an alias takes a DNS delegation and an entry in domains. Old addresses don't change.
  • Removing an alias changes nothing stored, because only canonical forms are stored, but unresolved links that use it stop working. Before removing an alias, operators SHOULD stop publishing links that use it and keep it registered, delegated and listed in domains for at least 365 days after the last such link was generated; after removing it, they SHOULD keep the domain registration so nobody else can take it over (01 §7.9); see Running a server.

Input form is accepted only in typed or pasted text, sloppyv URIs and share links, discovery lookups, path parameters such as {local} on the server that owns the entry, and a few moderation and policy targets such as the address or domain of POST /v1/bans (01 §7.7). For an {addr} path parameter that names an address on another server, a server rewrites only an address whose domain is one of its own alias domains, and answers any other non-canonical address with 400 address.non_canonical. Everywhere else, a server rejects a non-canonical address in a request body with 400 address.non_canonical and never rewrites it silently, because rejecting catches client bugs early (01 §7.6):

HTTP/1.1 400 Bad Request
Content-Type: application/problem+json

{
  "type": "urn:sloppyv:error:address.non_canonical",
  "code": "address.non_canonical",
  "title": "Address isn't in canonical form",
  "status": 400,
  "retryable": false,
  "userAction": "none",
  "data": {
    "reason": "alias_domain",
    "field": "/participants/1",
    "canonical": "saxonjones@sloppyvoice.com"
  }
}

Checking received addresses

Where an address must be canonical, the receiver checks it with isCanonical(addr, expectedDomain?) (01 §7.5). Checks 1 to 5 need no network:

  1. Valid UTF-8, exactly one @, matches canonical-address.
  2. The local part is 1 to 64 octets and in NFC.
  3. The local part is unchanged by minimalPrepare.
  4. The local part has no White_Space, no Default_Ignorable_Code_Point, and nothing of General_Category Cc, Cf, Cs, Co, Zl, Zp or Zs.
  5. The domain is at most 253 octets, has at least two labels, contains only [0-9a-z.-], has no trailing dot, and its last label isn't all digits.

Check 6 needs discovery: the domain equals the server's canonicalDomain, and expectedDomain when one is given.

Run checks 1 to 6 on every address in a signed object and, on a server, in every request body, resolving the domain through discovery if you don't yet know its canonical domain. Two exceptions: the addresses inside MLS sv_device credentials are checked locally with checks 1 to 5 and get check 6 through the verified IdentityState, and for mentions arrays the hosting server runs checks 1 to 5 and silently drops addresses of accounts it doesn't know to have access to the context instead of resolving them. Run checks 1 to 5 on addresses in events and other data, adding check 6 when you already know the canonical domain. A failure is address.non_canonical with reason malformed, local_not_prepared, domain_not_alabel or alias_domain; a failed discovery gives the discovery.* error instead, because the address may be canonical but nothing can be said yet. When verifying a signed object, address.non_canonical rejects the object and is never shown as a warning (01 §12.1).

Note

The spec doesn't say which of checks 1 to 6 gives which non_canonical reason, for example whether an uppercase domain is malformed or domain_not_alabel (01 §7.5). Handle all four reasons the same way.

Note

Where contacting a server is forbidden (02 §5.8), such as a message request before Accept, don't resolve that server's domain yourself. Run checks 1 to 5, and check 6 only against a canonical domain you already hold or your home server provides. The result is provisional: it allows display only, never a pin, and the full check 6 runs once contact is allowed (01 §7.5).

Lenient input parsing

People type a leading @, wrap addresses in brackets, paste them from e-mails and type display names with spaces. parseInput(T) accepts all of these and never guesses (01 §8.2). In order, it:

  1. rejects input over 1,024 code points and trims white space and invisible characters at the ends;
  2. hands sloppyv: and web+sloppyv: input to the URI parser, and https:// or http:// input to share-link recognition;
  3. strips a mailto: prefix and query, then percent-decodes;
  4. removes every Default_Ignorable_Code_Point (zero-width characters, bidi marks, soft hyphens) and maps fullwidth @ and small ﹫ to @;
  5. unwraps name <address>, and strips wrapping brackets, quotes and trailing sentence punctuation until nothing changes;
  6. checks for a link scheme again, which catches <sloppyv://…> and (https://…).;
  7. drops one leading @;
  8. splits on @: more than one is multiple_at, one gives an address target, and none gives a community target if the text has a full stop and no white space, or otherwise a bare name that takes defaultDomain.

The no-@ rule is unambiguous because local parts never contain a full stop. All of these give saxonjones @ sloppyvoice.com:

@saxonjones@sloppyvoice.com
Saxon Jones@SloppyVoice.com
Saxon Jones @ sloppyvoice.com
Saxon Jones <saxonjones@sloppyvoice.com>
mailto:Saxon%20Jones@sloppyvoice.com?subject=hi

Address fields MUST accept any script through the platform's input methods and MUST NOT use a keyboard type limited to ASCII, such as a mobile e-mail keyboard. They SHOULD turn off autocorrect, automatic capitalization, spell checking and smart punctuation. Don't canonicalize text an input method is still composing, and debounce discovery and lookups by at least 300 ms while a person types (01 §8.3).

The address lookup

GET /v1/addresses/{local} says what a local part names on a server: a user or bot, or a channel. Clients call it after canonicalize and before opening a profile or channel, and during sign-up to check availability (01 §9.1).

{local} is one path segment: a local part in any input form, including the display-local form, percent-encoded as UTF-8. Servers also accept HEAD. Authentication is optional; anonymous requests are answered as anonymous, because a person following a link may not have an account yet (AD-11). An invalid or expired token still fails with 401 core.unauthenticated or core.token_expired (01 §9.2). A server may also present an S2S token here; the receiver verifies or ignores it and never answers 401 because of it (03 §3.2).

The server percent-decodes the segment once and answers 400 address.invalid_local_part with reason invalid_utf8 if it isn't UTF-8, contains_at if it contains @ (or U+FF20, U+FE6B), or empty if nothing is left after minimalPrepare. It then looks up minimalPrepare of the segment. If an entry has exactly that local part, it answers for that entry even if the name would fail the profile under its current Unicode data, so grandfathered names keep working. Otherwise it runs prepareLocal to explain the miss: a failure is 400 address.invalid_local_part, a pass is 404. It never redirects, and the response always carries the canonical address, so the form you sent is never echoed back.

200: AddressInfo

A user, looked up with a capitalized local part (01 §9.7):

GET https://chat.sloppyvoice.com/server/v1/addresses/SaxonJones
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: private, max-age=60
Vary: Authorization

{
  "kind": "user",
  "address": "saxonjones@sloppyvoice.com",
  "name": "Saxon Jones",
  "bot": false
}

A voice channel, looked up by its display name:

GET https://chat.sloppyvoice.com/server/v1/addresses/Public%20Lobby
{
  "kind": "channel",
  "address": "publiclobby@sloppyvoice.com",
  "name": "Public Lobby",
  "ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
  "channelKind": "voice",
  "security": "insecure"
}

The members of AddressInfo (01 §9.3):

Member Present Meaning
kind Always user (a user or bot account) or channel. Treat an unknown value as something you can't open, and show the address only.
address Always The canonical address. For the old local part of a renamed channel, the channel's current address.
name Always The display name. Run the receiver check on it.
bot kind is user Whether the account is a bot.
ctx kind is channel The channel's context reference, ch:<UUIDv7>.
channelKind kind is channel text or voice. Treat an unknown value as text.
security kind is channel insecure or secure. Treat an unknown value as secure for what you show before joining, and never create or change a secure-state pin from it.

Nothing else is included: no member counts, topics, membership, online state or account age. Channel values equal the Channel object's, so the lookup can serve the pin checks on Communities.

Misses

A miss is 404 address.not_found with data.available, which says whether an ordinary person could register the name as a user right now, and, when it is false, data.reason: reserved, too_similar, not_allowed (with minChars for a length refusal) or taken (01 §9.4). A free name during sign-up:

HTTP/1.1 404 Not Found
Content-Type: application/problem+json
Cache-Control: no-store

{
  "type": "urn:sloppyv:error:address.not_found",
  "code": "address.not_found",
  "title": "Nothing has this address",
  "status": 404,
  "retryable": false,
  "userAction": "none",
  "data": { "available": true }
}

A name in quarantine, including the old local part of a renamed channel once its rename reservation has ended, answers 410 address.deleted with data.formerKind (user or channel; a bot is reported as user) and nothing else about the deleted account; an availability check treats it as available: false. Both 404 and 410 carry Cache-Control: no-store. A channel hidden from the requester is answered exactly as a taken name: 404, available: false, reason: "taken". People reach hidden channels through invites.

Note

01 §9.4 says to treat an unknown not_found reason as taken, while the general rule in 01 §12.1 would give reserved. Follow §9.4.

Servers MUST allow at least 30 lookups per minute per IP address for anonymous requesters, and per session for authenticated ones, and SHOULD NOT allow more than 120 per minute per IP address for anonymous requesters by default. Over the limit they answer 429 core.rate_limited with Retry-After and the rate-limit headers of HTTP API. Servers MUST NOT log an authenticated requester's full lookup history beyond what rate limiting and abuse handling need. Clients MUST debounce availability checks by at least 300 ms and SHOULD cache answers for the max-age given (01 §9.6).

Namespace errors

Users, bots and channels share one namespace per server (01 §5). The endpoints that create entries are on Accounts and Communities, but they report refusals with these codes:

  • address.taken (409): a user, bot or channel has the name, or it is reserved for a renamed channel.
  • address.too_similar (409): its case-folded confusable skeleton matches another entry's, with data.field local or name. paypa1 collides with paypal, and the display name "AIice" (capital I) with alice (01 §5.3).
  • address.reserved (409): a reserved name such as me, everyone, admin or general (01 §5.4). Class P names such as me are refused to everyone; class A names such as admin and class C names such as general are refused for users and bots, but a member holding manage_channels may use them for channels.
  • address.quarantined (409): a deleted account or channel held it. Quarantine lasts 365 days. A deleted channel's name is quarantined only against users and bots: a member holding manage_channels in the same community may create a new channel with it at once (01 §5.7).
  • address.not_allowed (403): server policy, too_short or blocked.

If only the display name collides at sign-up, the server still registers the account with the prepared local part as its display name. You detect this because the returned Account name differs from the name you sent, once white space and width are normalized as 01 §6.3 steps 1 and 2 do (vector S19).

A user or bot local part never changes in v1. A channel can be renamed: for 90 days its old local part stays reserved for that channel, and the lookup of the old name answers 200 with the channel's current address; after that it is quarantined like a deleted channel's name, until 365 days after the rename (01 §5.6). An address registered again after quarantine is a new principal with a new incarnation inc, and nothing carries over from the earlier holder except bans (01 §5.7, Accounts).

A sloppyv URI names one target so a person can paste it to someone they want to invite (01 §10.1):

Form Example Target
Address sloppyv://PublicLobby@sloppyvoice.com The user, bot or channel; the lookup says which
Community sloppyv://sloppyvoice.com The community of the server the domain resolves to
Either, with an invite sloppyv://PublicLobby@sloppyvoice.com?invite=7KQ2M9XP4HRT, sloppyv://sloppyvoice.com?invite=7KQ2M9XP4HRT As above, plus an invite code for the community of the target's server

The authority uses RFC 3986's userinfo@host shape, so generic URI parsers split it without special code. For a channel or community target, redeem the invite and then open the target. You MUST ignore an invite on a user target. If the lookup of an address target answers 404 or 410 and the link carries an invite, redeem the invite exactly as for a community link, and let the invite decide what it opens: that is how a person reaches a channel hidden from them before they join, and how a link to a renamed or deleted channel still lets them into the community (Communities).

Generating

Produce exactly this form (01 §10.3):

  1. sloppyv://;
  2. for an address target, the display-local form with every UTF-8 octet outside ALPHA / DIGIT percent-encoded in uppercase hex, then @;
  3. the canonical domain as an A-label;
  4. with an invite, ?invite= and the code in canonical form (12 characters of Crockford base32 without hyphens, 09 §8.2);
  5. nothing else: no trailing slash, other parameters or fragment.

The display-local form is used because it is what people recognise. In text people read or copy, you SHOULD use the IRI form, with the local part in Unicode and the domain as a U-label where Domains allows; in href attributes, QR codes and headers, use the URI form. Parsers MUST accept both and any mixture of the two (01 §10.6):

Target Display name URI form IRI form
publiclobby@sloppyvoice.com Public Lobby sloppyv://PublicLobby@sloppyvoice.com same
σοφόσπαπάσ@sloppyvoice.com Σοφός Παπάς sloppyv://%CE%A3%CE%BF%CF%86%CF%8C%CF%82%CE%A0%CE%B1%CF%80%CE%AC%CF%82@sloppyvoice.com sloppyv://ΣοφόςΠαπάς@sloppyvoice.com
田中太郎@xn--r8jz45g.xn--zckzah 田中 太郎 sloppyv://%E7%94%B0%E4%B8%AD%E5%A4%AA%E9%83%8E@xn--r8jz45g.xn--zckzah sloppyv://田中太郎@例え.テスト

Browsers only let a page handle web+ schemes, so a web client MAY register for web+sloppyv. Treat web+sloppyv: exactly like sloppyv:, and never generate it for people to share (01 §10.7).

Parsing

parseSloppyvUri is lenient about form and strict about the one parameter that matters (01 §10.4). It accepts the scheme in any ASCII case, sloppyv: without //, and both URI and IRI forms. It ignores fragments, paths and unknown parameters, so later versions can extend links without breaking v1 clients. It fails with address.invalid_link and:

  • scheme for any other scheme;
  • userinfo_password for a : in the userinfo;
  • port for a port, and ip_literal for a bracketed host;
  • invalid_utf8 when percent-decoding doesn't give UTF-8;
  • duplicate_param for more than one invite;
  • bad_invite for an invite that is empty, isn't valid UTF-8 after decoding, or has more than 64 code points after decoding.

The invite code is passed on decoded but otherwise unchanged; it is normalized only when redeemed, so ?invite=7kq2-m9xp-4hrt is valid input. When you re-share a target, generate a fresh URI rather than copying the one you received, so unknown parameters and alias domains are dropped.

A link can come from anyone. When a person activates one (01 §10.5):

  1. Run canonicalize, then the lookup, or the invite preview for a link with an invite. Send these anonymously if the person isn't signed in.
  2. If they aren't signed in, keep the target, start sign-in or sign-up with the link's server suggested, and resume at step 1 afterwards, because the answer can differ for a signed-in requester.
  3. If the account is already in the target, open it directly. Otherwise show a preview with the display form (domain always shown), display name, what it is (person, bot, text channel, voice channel or community), the community's name and its advertised security.
  4. Act only after one explicit tap ("Join", "Open", "Message"). You MUST NOT join, start a DM, start a call or change any state just because a link was activated.
  5. Show gate cards (G1, G2) when the person goes ahead; Client requirements has the screens.

Secure contexts only

A preview of a secure target shows the outline gated lock, never the closed lock, which is reserved for contexts whose MLS state the client holds (01 §10.5).

Many apps don't make custom schemes clickable, so wherever you offer a sloppyv URI you also offer an HTTPS share link, which works for people who don't have the app yet (01 §11.1).

Template

A server publishes an RFC 6570 URI Template (Level 3 or below) in the links.join member of its ServerMetadata. It expands to an absolute https URI whose scheme and authority are literal text, and the host must be the server's base-URL host or one of its domains. The template MUST reference local and invite and MAY reference domain; a template that breaks any of these rules is treated as absent (01 §11.2). The RECOMMENDED template, served on the canonical domain itself, is:

https://<canonical-domain>/j{/local}{?invite}
Variable Value Undefined when
local The display-local form of the target The target is a community
domain The canonical domain, as an A-label Never
invite The invite code in canonical form There is none

Because local is undefined, not empty, for a community, {/local} expands to nothing:

Target Invite Share link
PublicLobby — https://sloppyvoice.com/j/PublicLobby
PublicLobby 7KQ2M9XP4HRT https://sloppyvoice.com/j/PublicLobby?invite=7KQ2M9XP4HRT
community 7KQ2M9XP4HRT https://sloppyvoice.com/j?invite=7KQ2M9XP4HRT

Build a link from the template of the target's server, never your own, using the canonical domain and the display-local form; if that server publishes no links.join, offer the sloppyv URI alone. A server that generates links itself, such as an invite URL, follows the same rules. Before using a template, confirm through discovery that its host is the base-URL host or resolves to the same base URL; otherwise treat it as absent and offer only the sloppyv URI.

What the page serves

If you operate a server that publishes links.join, every expanded link MUST answer as 01 §11.3 says. The main points:

  • An HTML page that works without JavaScript, cookies or sign-in, with a Link: <sloppyv://…>; rel="alternate" header and a matching <link rel="alternate"> element.
  • Unknown, hidden and quarantined targets answer identically, so the page doesn't reveal hidden channels: 200 with a community-only page and an echoing Link when the URL has an invite, otherwise 404 (410 if quarantined) and no Link.
  • Access-Control-Allow-Origin: * and Access-Control-Expose-Headers: Link on every response, so web clients can read the header; this is safe because the page uses no credentials.
  • Cache-Control: max-age=60 or shorter; a Content-Security-Policy that allows scripts only from the page's own origin (or none) and sets frame-ancestors 'none'; X-Content-Type-Options: nosniff; Referrer-Policy: no-referrer; Strict-Transport-Security with max-age of at least 31,536,000 (includeSubDomains RECOMMENDED, not required).
  • An expired or invalid invite code doesn't change the response; the client finds out when it redeems it.
  • No cookies, third-party scripts, fingerprinting or attribution redirects, and no record linking a visit to a later sign-up.
HTTP/1.1 200 OK
Link: <sloppyv://PublicLobby@sloppyvoice.com?invite=7KQ2M9XP4HRT>; rel="alternate"
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Link

When a person pastes or opens an HTTPS URL where addresses are accepted (01 §11.4):

  1. Pick templates by host. Match the URL only against the template of the server its host belongs to: the server whose base-URL host it is, or the one it resolves to through discovery. Never trust another server's metadata for this, or a server could publish https://sloppyvoice.com/j{/local}{?invite} as its own template and capture genuine sloppyvoice.com links.
  2. Match the template left to right, for templates built only from {local}, {/local}, {domain}, {/domain} and {?invite}. A matched domain MUST canonicalize to that same server, or the match is discarded. If the allowed templates give more than one match with different targets, go to step 3.
  3. Otherwise fetch the URL for its Link header, but only after the person explicitly pasted or opened it, never because it appears in a message: HTTPS only (an http:// link is tried as https://), at most 3 redirects, all HTTPS, no credentials, cookies or Authorization header, 5 s timeout, at most 64 KiB of body, HEAD first and GET only if HEAD gives no usable Link, reading <link rel="alternate"> from the HTML <head>. A web client fetches with CORS and fails with fetch_failed if the response can't be read.
  4. Parse the first alternate link with a sloppyv or web+sloppyv scheme and continue with canonicalize.
  5. If nothing usable is found, fail with not_a_share_link (or fetch_failed) and treat the URL as an ordinary web link.

The protocol keeps no deferred-join state. After installing the app, the person opens or pastes the link again, and you read the clipboard only after they tap a paste control (01 §11.6).

Error codes

Every address.* error is a problem-details object (see HTTP API) with retryable: false and userAction: "none". Use the same codes for local canonicalize failures, so one error renderer covers both (01 §12.1).

Code Status data
address.invalid 400 reason: too_long, multiple_at, missing_domain, empty, invalid_utf8
address.invalid_local_part 400 reason (01 §3.9); optional index
address.invalid_domain 400 reason (01 §4.2)
address.invalid_link 400 reason, as under Parsing, plus not_a_share_link, fetch_failed
address.non_canonical 400 reason; optional field, canonical
address.display_name_mismatch 400 reason: not_linked, too_long
address.not_allowed 403 reason: too_short, blocked; minChars
address.not_found 404 available, reason, minChars
address.taken 409 —
address.too_similar 409 field: local or name
address.reserved 409 —
address.quarantined 409 formerKind
address.deleted 410 formerKind

Treat an unknown address.* code by its HTTP status. Treat an unknown reason as disallowed_code_point for local parts, idna for domains, malformed for non_canonical, and not_linked for display names; for other codes 01 §12.1 says to use the first value listed, except that 01 §9.4 says taken for address.not_found (see the note under Misses).

Test vectors

01 §13 holds the normative test vectors, computed with Unicode 16.0.0 data and UTS #39 and UTS #46 16.0.0. An implementation conforms only if it reproduces every one, and must use Unicode 16.0.0 or later (01 §1.4). Copy inputs from the code-point columns, not the glyphs: the code points are normative, many of these strings can't be told apart by eye, and editors may normalize them. Vectors marked "simulated", such as C13 and C14, describe behaviour under Unicode data other than 16.0.0; you check them by substituting that data.

Set Function Vectors
§13.1 prepareLocal L1–L29 pass, F1–F25 fail (with index)
§13.2 checkDisplayName N1–N33
§13.3 Collision keys (servers) S1–S19
§13.4 prepareDomain D1–D19
§13.5 parseInput with preparation P1–P25
§13.6 canonicalize with aliases C1–C14
§13.7 sloppyv URIs U1–U19 parse, G1–G6 generate
§13.8 Share links H1–H9 expand and serve, M1–M4 match
§13.9 Protocol sort order 7 addresses

A selection that covers the cases implementations most often get wrong:

# Input Expected
L7 Straße (0053 0074 0072 0061 00DF 0065) strasse
L10 ΣΟΦΌΣ ΠΑΠΆΣ (03A3 039F 03A6 038C 03A3 0020 03A0 0391 03A0 0386 03A3) σοφόσπαπάσ (CF 83 CE BF CF 86 CF 8C CF 83 CF 80 CE B1 CF 80 CE AC CF 83)
L19 İstanbul (0130 0073 0074 0061 006E 0062 0075 006C) istanbul
L21 ᏣᎳᎩ (13E3 13B3 13A9) passes: Cherokee is Limited_Use
F2 pаypal (0070 0430 0079 0070 0061 006C) mixed_script
F6 Ana ZWJ B (0041 006E 0061 200D 0042) disallowed_code_point, index 3
N29 ışık shown as Işık (0049 015F 0131 006B) fails; show the local part
N31 saxonjones shown as Saxon, 300 spaces, Jones passes, shown as "Saxon Jones"
D4 faß.de (0066 0061 00DF, then .de) xn--fa-hia.de
P5 Saxon Jones <saxonjones@sloppyvoice.com> saxonjones @ sloppyvoice.com
C2 Saxon Jones@Chat.SloppyVoice.com saxonjones@sloppyvoice.com, viaAlias true
C12 bob@impostor.sloppyvoice.net discovery.canonical_mismatch
U11 sloppyv://PublicLobby@sloppyvoice.com?invite=A&invite=B address.invalid_link, duplicate_param
M4 https://sloppyvoice.com/j/PublicLobby, when another server publishes that template resolves to S1, never the other server

The C, U and M vectors use a fixture of three servers: S1 at https://chat.sloppyvoice.com/server with canonical domain sloppyvoice.com and aliases chat.sloppyvoice.com and xn--slppyvoice-fcb.com; S2 at https://chat.sloppyvoice.com/server2 with guild.sloppyvoice.com; and S3 at https://impostor.sloppyvoice.net/server, which falsely claims sloppyvoice.com (01 §13.6). The fixture also points stranger.sloppyvoice.net and oldalias.sloppyvoice.com (an alias S1 has removed from domains) at S1, for the discovery.domain_not_served vectors C9 and C10. Discovery details such as evidence and caching don't affect the results, so a stub discovery layer that returns these servers is enough to run the vectors without a network.

  • Discovery: resolving a domain, ServerMetadata, canonicalDomain, domains and links.join.
  • Accounts: sign-up, display-name changes and deletion.
  • Communities: channels, renames and invites.
  • Client requirements: how names, addresses and link previews are presented.
  • Security model: lookalikes, alias spoofing and the rest of the threat model.