262 endpoints from the specification, grouped by the document that defines them. Each entry links to the section it comes from; the specification is authoritative.

01 Addresses, display names and links

GET {expansion of links.join} (RECOMMENDED template: https://<canonical-domain>/j{/local}{?invite})

The HTML page an expanded share link serves (GET and HEAD), naming the target and carrying its sloppyv URI in a Link rel="alternate" header and <link rel="alternate"> element; also fetched by clients to recognise pasted share links.

Auth
none (no cookies, no sign-in)
Caller
browser
Idempotency
GET and HEAD. 200 for visible targets and for any target with an invite (unknown/hidden/deleted targets with an invite get a community-only page and a Link echoing the requested local part and invite); without an invite, 404 (410 for a quarantined local part) with no Link header. Expired or invalid invite doesn't change the response.
Specification
01 §11.3
Path parameters
NameTypeRequiredMeaning and constraints
localstringNoTarget local part.
Display-local form, percent-encoded UTF-8 by RFC 6570 expansion; undefined for a community
domainstringNoTarget server's canonical domain.
Canonical domain as an A-label; only if the template references it
Query parameters
NameTypeRequiredMeaning and constraints
invitestringNoInvite code.
09's canonical form; undefined when there is none

Response: 200, 404, 410 with HTML page (works without JavaScript, cookies or sign-in)

GET /v1/addresses/{local}

Says what a local part names on the owning server (a user/bot or a channel), with its canonical address and display name, and for a channel its ctx, kind and security; a miss carries registration availability.

Auth
Optional: none (anonymous), or a home-session, remote-session or bot token (03, 05, 06). An invalid or expired token fails as 03 says.
Caller
client
Rate limit
At least 30 lookups per minute per IP address for anonymous requesters and per session for authenticated ones; SHOULD NOT allow more than 120 per minute per IP for anonymous requesters by default; over the limit 429 core.rate_limited with Retry-After and 03's rate-limit headers. No named policy is defined.
Idempotency
Safe GET; servers MUST also accept HEAD. Server MUST NOT redirect to a canonical URL; it answers for the entry found. 200: Cache-Control: private, max-age=60 and Vary: Authorization; 404/410: Cache-Control: no-store.
Specification
01 §9
Path parameters
NameTypeRequiredMeaning and constraints
localstringYesThe local part to look up.
One path segment: a local part in any input form (case, width and spacing variants, display-local form), percent-encoded as UTF-8 (RFC 3986). Server percent-decodes exactly once; must be valid UTF-8; must not contain @, U+FF20 or U+FE6B; looked up by minimalPrepare.

Response: 200, 400, 401, 404, 410, 429 with AddressInfo

Response fields
NameTypeRequiredMeaning and constraints
kindenum AddressInfoKindYesWhat the address names (user covers user and bot accounts).
user or channel; unknown value: treat as not openable, show the address only
addressstring (canonical address)YesThe canonical address.
§7; domain is the server's canonicalDomain whatever domain the client used; for the old local part of a renamed channel during its rename reservation, the channel's current address
namestringYesThe display name.
§6.2; receivers apply §6.4
botbooleanNoWhether the account is a bot (kind: "bot" in 05). For secure bots the IdentityCertificate kind wins if they disagree.
Required when kind is user
ctxstringNoThe channel's context reference.
Required when kind is channel; ch:<UUIDv7> (00 §7.6); MUST equal the Channel object's value
channelKindenum ChannelKindNoThe channel kind.
Required when kind is channel; text or voice; MUST equal Channel object kind; unknown value treated as text
securityenum ChannelSecurityNoThe channel's security mode.
Required when kind is channel; insecure or secure; MUST equal Channel object security; unknown value treated as secure for pre-join display and never creates/changes a secure-state pin

Errors: address.invalid_local_part, address.not_found, address.deleted, core.unauthenticated, core.token_expired, core.rate_limited

02 Discovery, server metadata and server keys

GET /meta

Returns the server's ServerMetadata; unversioned, also served for HEAD, identical for every requester, never redirected; fetched by clients, web clients, servers and push gateways.

Auth
none
Caller
client
Specification
02 §7.1

Response: 200, 304 with ServerMetadata

Errors: discovery.metadata_invalid, discovery.server_unreachable, discovery.version_unsupported, core.unsupported_version

GET /v1/resolve

Runs the server's own resolve(domain) (including its pin state) and returns a ResolveResult; used by web clients for every resolution (D-029), and by any client (native included) for no-contact use (§5.8) and pin recovery (§10.6). Every server MUST implement it. CORS *, Cache-Control: private, max-age=<seconds until expiresAt>, no Vary on Authorization.

Auth
none (optional Bearer session token, which raises the rate limit)
Caller
client
Rate limit
Anonymous: 30 requests per 60 s per IP address. Authenticated: 120 requests per 60 s per session. Over the limit: 429 core.rate_limited
Specification
02 §6
Query parameters
NameTypeRequiredMeaning and constraints
domainstringYesThe domain to resolve.
A-label or U-label form, at most 253 octets after conversion; converted per 01 (UTS #46, IDNA2008, lowercase A-label); exactly one parameter, repeats fail with core.invalid_request

Response: 200 with ResolveResult

Response fields
NameTypeRequiredMeaning and constraints
domainstringYesThe queried domain.
lowercase A-label
baseUrlstringYesNormalized base URL.
normalized base URL (§3.3)
canonicalDomainstringYesThe canonical domain, verified per §5.3.
sourceSourceYesWhere the delegation came from.
txt or wellknown; unknown values treated as wellknown
evidenceEvidenceYesDelegation evidence.
dnssec, same-site, wellknown or dns-only; unknown values treated as dns-only
resolvedAttimestampYesTimestamp of the delegation.
RFC 3339
expiresAttimestampYesWhen the client's cached copy expires.
earlier of delegation and metadata expiry, never more than 86,400 s after the response
stalebooleanYesTrue if the server is using a stale copy because the target is unreachable.

Errors: discovery.invalid_domain, discovery.not_found, discovery.record_invalid, discovery.delegation_conflict, discovery.dns_failure, discovery.server_unreachable, discovery.metadata_invalid, discovery.domain_not_served, discovery.canonical_mismatch, discovery.version_unsupported, discovery.forbidden_target, discovery.peer_suspended, core.invalid_request, core.rate_limited

GET /v1/resolve/pins

Admin: list federation pins, optionally filtered by state, with cursor pagination.

Auth
Bearer session token: home session of a local account that holds the admin system role (else 403 core.forbidden with data.missingRole "admin")
Caller
client
Pagination
collection
Specification
02 §10.5
Query parameters
NameTypeRequiredMeaning and constraints
statePinStateNoFilter by pin state.
pinned or suspended
cursorstringNoPagination cursor.
opaque cursor (00 §7.10)
limitintegerNoPage size.
1–100, default 50

Response: 200 with PinList

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<PeerPin>YesPins on this page.
nextCursorstringYesCursor for the next page.
cursor pagination per 00 §7.10 (value shown only as … in §10.5)

Errors: core.forbidden

DELETE /v1/resolve/pins/{domain}

Admin: forget a pin; the next resolution is a first use.

Auth
Bearer session token: home session of a local account that holds the admin system role
Caller
client
Specification
02 §10.5
Path parameters
NameTypeRequiredMeaning and constraints
domainstringYesThe pinned domain.
lowercase A-label

Response: 204

Errors: core.not_found, core.forbidden

GET /v1/resolve/pins/{domain}

Admin: read one federation pin.

Auth
Bearer session token: home session of a local account that holds the admin system role
Caller
client
Specification
02 §10.5
Path parameters
NameTypeRequiredMeaning and constraints
domainstringYesThe pinned (queried) domain.
lowercase A-label

Response: 200 with PeerPin

Errors: core.not_found, core.forbidden

POST /v1/resolve/pins/{domain}/accept

Admin: accept the observed result of a suspended pin (compare-and-set against the observed values); not allowed for reasons key_unrevoked and secure_downgrade.

Auth
Bearer session token: home session of a local account that holds the admin system role
Caller
client
Idempotency
Compare-and-set: body must equal observed values; 409 core.conflict if the pin isn't suspended, the body doesn't match, or the reason can't be accepted (data.reason names it)
Specification
02 §10.5
Path parameters
NameTypeRequiredMeaning and constraints
domainstringYesThe suspended domain.
lowercase A-label

Request body: PinAcceptRequest

Request fields
NameTypeRequiredMeaning and constraints
baseUrlstringYesObserved base URL the admin reviewed.
MUST equal observed.baseUrl
canonicalDomainstringYesObserved canonical domain the admin reviewed.
MUST equal observed.canonicalDomain
keyThumbprintsarray<string>YesThumbprints of the observed keys the admin reviewed.
MUST equal the observed key thumbprints

Response: 200 with PeerPin

Errors: core.not_found, core.conflict, core.forbidden

GET https://<fqdn>/.well-known/sloppyv

Fallback delegation document served by the queried domain's own HTTPS origin (not by a Sloppy Voice server), fetched by clients, servers, web clients (DoH path) and push gateways when there is no TXT record, after a temporary DNS failure, or (servers MUST) to upgrade a weak TXT delegation.

Auth
none
Caller
client
Specification
02 §4

Response: 200, 404, 410 with WellKnownDocument

Response fields
NameTypeRequiredMeaning and constraints
vstringYesProtocol version of this delegation.
MUST be "sv1"; any other value means the document is treated as absent by v1 consumers
urlstringYesThe base URL for D.
A base-url (§3.3)

Errors: discovery.record_invalid, discovery.not_found, discovery.server_unreachable, discovery.dns_failure, discovery.delegation_conflict

03 Client transport, envelopes and errors

GET /v1/events

The event WebSocket (RFC 6455) at {base}/v1/events with the https scheme replaced by wss, subprotocol sloppyv.v1; carries envelopes, server-to-client events and the session.* client messages. The spec does not name the HTTP method; GET is the RFC 6455 upgrade (RFC 8441/9220 extended CONNECT over HTTP/2/3 is allowed).

Auth
none at the handshake (unauthenticated); the token (Bearer client-session access token, or a Bot token at the bot's home server only) travels inside session.hello
Caller
client
Rate limit
handshake (per IP); client messages on the socket count against socket
Specification
03 §5.1

Response: 101, 400, 429

Errors: core.unsupported_version, core.rate_limited

05 Accounts, login, sessions, devices and bots

GET /v1/auth/authorize

Starts leg A: validates client and redirect, creates the authorization transaction, sets the transaction cookie and redirects to the provider.

Auth
None (browser)
Caller
browser
Rate limit
30 per minute per IP; at most 20 open transactions per bound account and 200 per client IP (IPv4 or IPv6 /64)
Specification
05 §6.2
Query parameters
NameTypeRequiredMeaning and constraints
client_idstringYesClient identifier (§5.1).
HTTPS Client ID Metadata Document URL (no query/fragment/userinfo) or urn:sloppyv:client:loopback
request_uristringNoAlternative to the full parameter set: from POST /v1/auth/par. When present only pushed params are used; client_id MUST equal the pushed client_id.
urn:ietf:params:oauth:request_uri:...; single use, 60 s
response_typestringYesAlways code.
code
redirect_uristringYes§5.2.
exact match against client's redirect_uris; loopback port ignored; no fragment
code_challengebase64urlYesPKCE challenge (RFC 7636 §4.2).
43 characters; BASE64URL(SHA-256(code_verifier))
code_challenge_methodstringYesPKCE method.
S256; plain MUST be refused
statestringYesOpaque client state; checked on return.
1-512 characters; client MUST generate >=128 random bits
providerstringNoIf absent the server shows its own provider chooser.
provider-id from auth.providers
promptstringNoFor 'Use a different account'.
select_account only; anything else -> invalid_request
ui_localesstringNoLanguage of the server's pages.
BCP 47 language tags

Response: 302

Errors: auth.invalid_client, auth.invalid_redirect_uri, core.invalid_request, auth.provider_unknown, core.rate_limited

Opened in the system browser or top-level navigation. client_id and redirect_uri validated first; failures shown as an error page, never redirected. Later errors redirected with error, error_description, state, iss, sv_code. intent=reauth in a non-pushed request is treated as login. Unrecognized params (scope, nonce) ignored.

GET /v1/auth/callback

Provider redirect target for leg B; validates the provider response, resolves the intent, may show the 'Continue to ...' page, then issues the code.

Auth
Transaction cookie (browser)
Caller
browser
Specification
05 §6.5
Query parameters
NameTypeRequiredMeaning and constraints
codestringNoProvider authorization code.
statestringYesUpstream state (32 random bytes, 43 chars).
issstringNoRFC 9207.
required equal to issuer when provider sets authorization_response_iss_parameter_supported
errorstringNoProvider error; access_denied -> auth.access_denied, other -> auth.provider_error.

Response: 302

Errors: auth.transaction_expired, auth.access_denied, auth.provider_error, auth.reauth_mismatch, auth.reauth_required

redirectUri registered at the provider is always {base}/v1/auth/callback. HTML pages: Cache-Control: no-store, Referrer-Policy: no-referrer, X-Content-Type-Options: nosniff, CSP frame-ancestors 'none'.

POST /v1/auth/consent

Answers the server's own 'Continue to ...' page.

Auth
Transaction cookie and consent token tx (browser form)
Caller
browser
Specification
05 §5.4

Request body: ConsentForm (application/x-www-form-urlencoded)

Request fields
NameTypeRequiredMeaning and constraints
txbase64urlYesConsent token embedded in the page form.
43 chars (32 random bytes); single use
decisionConsentDecisionYescontinue | cancel

Response: 302

Errors: auth.transaction_expired, auth.access_denied

Rejected if Origin present and not the server's origin, or Sec-Fetch-Site present and not same-origin. Failures show the auth.transaction_expired page and end the transaction without redirect. cancel -> 302 with error=access_denied&sv_code=auth.access_denied.

POST /v1/auth/logout

Signs out: revokes this device (scope current) or every other active device (scope others).

Auth
Bearer or Bot
Caller
client
Specification
05 §14

Request body: LogoutRequest (optional JSON)

Request fields
NameTypeRequiredMeaning and constraints
scopeLogoutScopeNocurrent (default) | others; bots current only; others requires fresh authentication
revocationstringNoDeviceRevocation for this device (as §12.9).
with scope current only

Response: 204, 200 with none (204) | LogoutOthersResponse (200)

Response fields
NameTypeRequiredMeaning and constraints
revokedarray<string>Yesdids revoked.
only for scope others

Errors: auth.reauth_required, bot.not_allowed, core.unauthenticated

scope current with an expired, revoked or unknown token also answers 204 (03 §3.2 rule 8(b)); scope others with such a token gets 401. Allowed for suspended accounts.

POST /v1/auth/par

Pushed authorization request (RFC 9126); mandatory for intent=reauth.

Auth
None, or Bearer for intent=reauth
Caller
client
Rate limit
30 per minute per IP
Specification
05 §6.1

Request body: inline (application/x-www-form-urlencoded or application/json, snake_case)

Request fields
NameTypeRequiredMeaning and constraints
client_idstringYesClient identifier (§5.1).
HTTPS Client ID Metadata Document URL (no query/fragment/userinfo) or urn:sloppyv:client:loopback
response_typestringYesAlways code.
code
redirect_uristringYes§5.2.
exact match against client's redirect_uris; loopback port ignored; no fragment
code_challengebase64urlYesPKCE challenge (RFC 7636 §4.2).
43 characters; BASE64URL(SHA-256(code_verifier))
code_challenge_methodstringYesPKCE method.
S256; plain MUST be refused
statestringYesOpaque client state; checked on return.
1-512 characters; client MUST generate >=128 random bits
providerstringNoIf absent the server shows its own provider chooser.
provider-id from auth.providers
promptstringNoFor 'Use a different account'.
select_account only; anything else -> invalid_request
ui_localesstringNoLanguage of the server's pages.
BCP 47 language tags
intentstringNoBinds a reauth request to that session's device. Only a pushed request can carry reauth.
login (default) | reauth; reauth requires Authorization: Bearer <access token>

Response: 201 with PushedAuthorizationResponse

Response fields
NameTypeRequiredMeaning and constraints
request_uristringYessingle use, valid 60 s
expires_inintegerYesSeconds.
60

Errors: core.invalid_request, auth.invalid_client, auth.invalid_redirect_uri, auth.provider_unknown, core.rate_limited, core.internal, core.unavailable, bot.not_allowed

Cache-Control: no-store. Errors are problem details that also carry RFC 6749 error/error_description; HTTP status 400 for invalid_request/invalid_grant/unsupported_grant_type, 401 for invalid_client (§7.8). Unrecognized parameters ignored.

POST /v1/auth/signup

Creates the account, its ProviderLink, first device and token family after the user chose a name.

Auth
Bearer sign-up token
Caller
client
Rate limit
30 per hour per IPv4 address or IPv6 /64; 5 attempts per sign-up token; 5 sign-up tokens per hour per external identity
Idempotency
Ignores Idempotency-Key; responses carrying newly issued tokens are never stored for replay (§7.4, 03 §14.2 item 8). Sign-up token is single use; a retry after a lost 201 gets auth.identity_already_linked and the client restarts the login flow.
Specification
05 §8.4

Request body: SignupRequest (JSON)

Request fields
NameTypeRequiredMeaning and constraints
namestringYesChosen display name; local part derived by 01's rule (remove white space, PRECIS).
inviteCodestringNo§8.3.
required when inviteRequired
acceptTermsbooleanNorequired when termsUrl set; MUST be true else auth.terms_not_accepted
platformPlatformYesas §7.3; bot refused with core.invalid_request
clientSoftwarestringYes§5.3
deviceNamestringNoas §7.3
sharedComputerbooleanNodefault false; §12.6
setupTokenstringNoOne-time first-admin setup token (21 §11.1 item 7).

Response: 201 with TokenResponse

Response fields
NameTypeRequiredMeaning and constraints
access_tokenstringYessva_ token
token_typestringYesBearer
expires_inintegerYesSeconds.
900
refresh_tokenstringYessvr_ token
authAttimestampYesSession's authAt.
accountAccountYes
deviceDeviceRecordYesThe new device record (current: true).

Errors: auth.identity_already_linked, auth.signup_token_invalid, core.invalid_request, auth.registration_closed, auth.invite_required, auth.invite_invalid, auth.terms_not_accepted, address.*, address.reserved, core.rate_limited

Processed in order: token check, body syntax, registration/invite, terms, name (01 checks), identity still unlinked, then one transaction creating everything. account.name may differ from name sent (prepared local part) when only the display name collided.

POST /v1/auth/token

Variant 1 of 2

Authorization code grant: redeems a code for tokens (login), a sign-up token (unknown identity), a fresh access token (reauth) or a ProviderLink plus access token (link).

Auth
None (public client)
Caller
client
Rate limit
60 per minute per IP
Idempotency
Ignores Idempotency-Key; responses carrying newly issued tokens are never stored for replay (§7.4, 03 §14.2 item 8). Syntax errors in platform/client_software/device_name/shared_computer (core.invalid_request) do not consume the code; a second redemption of a code fails auth.invalid_grant and revokes what the first issued (§6.6).
Specification
05 §7.3

Request body: inline (application/x-www-form-urlencoded or application/json, snake_case)

Request fields
NameTypeRequiredMeaning and constraints
grant_typestringYesauthorization_code
codestringYesFrom the redirect (§6.6).
svc_ + 43 base64url chars; single use; 60 s
redirect_uristringYesexactly the value used at /authorize
client_idstringYesexactly the value used at /authorize
code_verifierstringYesPKCE verifier (RFC 7636 §4.5).
43-128 chars [A-Za-z0-9-._~]; >=256 random bits; never reused
platformPlatformNoDevice platform (§12.2).
required for a login that creates a device; desktop|web|ios|android; bot refused with core.invalid_request
client_softwarestringNoClient software string (§5.3), e.g. sloppyvoice-desktop/1.0.3.
required for a login that creates a device; 1-64 printable ASCII, loosely token/token
device_namestringNoSuggested device name.
1-64 characters
shared_computerbooleanNoShared-computer mode (§12.6).
default false; form body literal true/false, JSON boolean; only with platform web or desktop

Response: with TokenResponse | SignupTokenResponse | ReauthTokenResponse | LinkTokenResponse

Response fields
NameTypeRequiredMeaning and constraints
access_tokenstringYessva_ token
token_typestringYesBearer
expires_inintegerYesSeconds.
900
refresh_tokenstringYessvr_ token
authAttimestampYesSession's authAt.
accountAccountYes
deviceDeviceRecordYesThe new device record (current: true).

Errors: core.invalid_request, auth.invalid_grant, auth.unsupported_grant_type, auth.invalid_client, auth.registration_closed, account.suspended, auth.too_many_devices, auth.provider_in_use, auth.provider_unknown, core.rate_limited, core.internal, core.unavailable

Cache-Control: no-store. Status 400 for invalid_request/invalid_grant/unsupported_grant_type-mapped codes, 401 invalid_client, 429 core.rate_limited, 500/503 server_error (§7.8). Success HTTP status not stated by the spec.

Variant 2 of 2

Refresh token grant: rotates the refresh token and issues a new access token.

Auth
None (public client)
Caller
client
Rate limit
60 per minute per IP; 1 refresh per 10 s per family (rule-2 retries excepted; reuse checked before the limit)
Idempotency
Rotation with reuse detection: re-presenting a rotated token within 30 s while its successor is unused is a retry (successor invalidated, new pair issued); otherwise reuse revokes the device (§7.6).
Specification
05 §7.6

Request body: inline (form or JSON)

Request fields
NameTypeRequiredMeaning and constraints
grant_typestringYesrefresh_token
refresh_tokenstringYesThe current refresh token.
svr_ token
client_idstringYesmust equal the client ID the family was issued to, else auth.invalid_grant

Response: with RefreshTokenResponse

Response fields
NameTypeRequiredMeaning and constraints
access_tokenstringYessva_
token_typestringYesBearer
expires_inintegerYes900
refresh_tokenstringYessvr_; new token every use
authAttimestampYes

Errors: auth.invalid_grant, auth.refresh_reused, auth.session_revoked, account.suspended, auth.unsupported_grant_type, core.rate_limited

GET /v1/bots

Lists bots the caller owns, or all bots on the server with ?all=true (requires manage_bots).

Auth
Bearer
Caller
client
Pagination
collection
Specification
05 §15.3
Query parameters
NameTypeRequiredMeaning and constraints
allbooleanNotrue requires manage_bots

Response: 200 with {items: [Bot], nextCursor}

Errors: bot.not_allowed, core.forbidden, auth.home_session_required, account.suspended

POST /v1/bots

Creates a bot account owned by the caller, with its first token/device.

Auth
Bearer
Caller
client
Idempotency
Ignores Idempotency-Key; responses carrying newly issued tokens are never stored for replay (§7.4, 03 §14.2 item 8). After a lost response: list tokens, revoke unknown device, create a new token.
Specification
05 §15.2

Request body: CreateBotRequest (JSON)

Request fields
NameTypeRequiredMeaning and constraints
namestringYesBot display name.
local part derived and checked as at sign-up (§8.4 step 5)
aboutstringNo§11.1 limits
deviceNamestringNoName of first token's device.
default 'Bot token 1'
expiresAttimestampNoExpiry of first token.
at most 2 years ahead

Response: 201 with CreateBotResponse

Response fields
NameTypeRequiredMeaning and constraints
botBotYes
tokenstringYessvb_; shown only once

Errors: core.forbidden, bot.permission_required, auth.reauth_required, bot.limit_reached, bot.not_allowed, address.*, auth.home_session_required, account.suspended

Requires fresh authentication (maxAgeMs 600000, §9). Caller must be an active local kind:user account holding manage_bots (core.forbidden with data.permission manage_bots otherwise). Independent of auth.registration. Emits bot.created to owner devices and device.added via bot_token on bot's me stream.

DELETE /v1/bots/{local}

Deletes the bot account (§16, reason owner).

Auth
Bearer
Caller
client
Specification
05 §15.3
Path parameters
NameTypeRequiredMeaning and constraints
localstringYesBot's local part.

Errors: auth.reauth_required, bot.not_owner, core.not_found, bot.not_allowed, auth.home_session_required, account.suspended

Requires fresh authentication (maxAgeMs 600000, §9).

GET /v1/bots/{local}

Returns one Bot (owner and manage_bots holders).

Auth
Bearer
Caller
client
Specification
05 §15.3
Path parameters
NameTypeRequiredMeaning and constraints
localstringYesBot's local part.

Response: 200 with Bot

Errors: core.not_found, bot.not_owner, bot.not_allowed, auth.home_session_required, account.suspended

PATCH /v1/bots/{local}

Edits a bot's name or about, or transfers ownership.

Auth
Bearer
Caller
client
Specification
05 §15.3
Path parameters
NameTypeRequiredMeaning and constraints
localstringYesBot's local part.

Request body: inline JSON

Request fields
NameTypeRequiredMeaning and constraints
namestringNosame rule as §11.6
aboutstringNo
ownerstringNoNew owner.
canonical address of a local kind:user account holding manage_bots; requires fresh authentication

Errors: bot.invalid_owner, bot.not_owner, auth.reauth_required, core.not_found, bot.not_allowed, auth.home_session_required, account.suspended

Emits bot.updated (to old and new owner on transfer) and account.profile_changed if the profile changed. Response not stated.

DELETE /v1/bots/{local}/avatar

Removes a bot's avatar.

Auth
Bearer
Caller
client
Specification
05 §15.3
Path parameters
NameTypeRequiredMeaning and constraints
localstringYesBot's local part.

Errors: bot.not_owner, auth.home_session_required, account.suspended, bot.not_allowed, core.not_found

PUT /v1/bots/{local}/avatar

Sets a bot's avatar as §11.7.

Auth
Bearer
Caller
client
Specification
05 §15.3
Path parameters
NameTypeRequiredMeaning and constraints
localstringYesBot's local part.

Request body: raw image bytes

Errors: account.avatar_invalid, core.too_large, bot.not_owner, auth.home_session_required, account.suspended, bot.not_allowed, core.not_found

GET /v1/bots/{local}/tokens

Lists the bot's token device records.

Auth
Bearer
Caller
client
Pagination
collection
Specification
05 §15.4
Path parameters
NameTypeRequiredMeaning and constraints
localstringYesBot's local part.

Response: 200 with {items: [DeviceRecord], nextCursor: null}

Errors: bot.not_owner, core.not_found, auth.home_session_required, account.suspended, bot.not_allowed

POST /v1/bots/{local}/tokens

Creates a new bot device record and its token.

Auth
Bearer
Caller
client
Idempotency
Ignores Idempotency-Key; responses carrying newly issued tokens are never stored for replay (§7.4, 03 §14.2 item 8).
Specification
05 §15.4
Path parameters
NameTypeRequiredMeaning and constraints
localstringYesBot's local part.

Request body: inline JSON

Request fields
NameTypeRequiredMeaning and constraints
deviceNamestringNo
expiresAttimestampNoat most 2 years ahead

Response: 201 with BotTokenResponse

Response fields
NameTypeRequiredMeaning and constraints
tokenstringYessvb_
deviceDeviceRecordYes

Errors: auth.reauth_required, bot.token_limit_reached, bot.not_owner, auth.home_session_required, account.suspended, bot.not_allowed, core.not_found

Requires fresh authentication (maxAgeMs 600000, §9). Owner only. Max maxBotTokens active tokens.

DELETE /v1/bots/{local}/tokens/{did}

Revokes a bot token's device (§13, reason bot_token_revoked).

Auth
Bearer
Caller
client
Specification
05 §15.4
Path parameters
NameTypeRequiredMeaning and constraints
localstringYesBot's local part.
didstringYes

Errors: bot.not_owner, core.not_found, auth.home_session_required, account.suspended, bot.not_allowed

Owner, owner without manage_bots, or other manage_bots holders may revoke.

POST /v1/bots/{local}/tokens/{did}/rotate

Issues a new token for the same device record; the old one keeps working for graceMs.

Auth
Bearer
Caller
client
Idempotency
Ignores Idempotency-Key; responses carrying newly issued tokens are never stored for replay (§7.4, 03 §14.2 item 8).
Specification
05 §15.4
Path parameters
NameTypeRequiredMeaning and constraints
localstringYesBot's local part.
didstringYes

Request body: inline JSON

Request fields
NameTypeRequiredMeaning and constraints
graceMsintegerNoHow long the old token keeps working.
0-86400000, default 0
expiresAttimestamp|nullNoat most 2 years ahead; null removes expiry; absent keeps current

Response: 200 with BotTokenRotateResponse

Response fields
NameTypeRequiredMeaning and constraints
tokenstringYessvb_
deviceDeviceRecordYes
oldTokenValidUntiltimestampYes

Errors: auth.reauth_required, bot.not_owner, auth.home_session_required, account.suspended, bot.not_allowed, core.not_found

Requires fresh authentication (maxAgeMs 600000, §9). Not a revocation: did, DSK and DeviceCertificate unchanged; nothing sent to other servers.

DELETE /v1/me

Deletes the account immediately and finally (no grace period).

Auth
Bearer
Caller
client
Rate limit
10 per hour per account
Specification
05 §16.1
Query parameters
NameTypeRequiredMeaning and constraints
confirmstringYesNot a secret; guards against stray/replayed requests.
the account's canonical address exactly, percent-encoded per 03 §2.6

Response: 204

Errors: account.confirmation_mismatch, auth.reauth_required, bot.not_allowed, account.suspended, core.rate_limited, auth.home_session_required

Requires fresh authentication (maxAgeMs 600000, §9). kind:user home-session only; no request body.

GET /v1/me

Returns the caller's Account, its own device record and authAt (absent for bot tokens).

Auth
Bearer or Bot
Caller
client
Specification
05 §11.5

Response: 200 with MeResponse

Response fields
NameTypeRequiredMeaning and constraints
accountAccountYes
deviceDeviceRecordYes
authAttimestampNoabsent for bot tokens; equals device.authAt

Errors: auth.home_session_required, core.token_expired, auth.session_revoked

Allowed for suspended accounts. Home-session or bot tokens only; remote-session token -> 403 auth.home_session_required.

PATCH /v1/me

Changes display name (spacing/capitalization only) or about.

Auth
Bearer or Bot
Caller
client
Specification
05 §11.6

Request body: inline JSON

Request fields
NameTypeRequiredMeaning and constraints
namestringNoprocessed per 01 §6.3 incl. 01 §5.3 collision check; empty/white space resets to prepared local part
aboutstringNo§11.1 limits else core.invalid_request

Response: 200 with Account

Errors: address.display_name_mismatch, address.too_similar, core.invalid_request, account.suspended, auth.home_session_required

If anything changed: profileVersion +1, account.updated to own devices, account.profile_changed S2S to audiences.

DELETE /v1/me/avatar

Removes the avatar; bumps profileVersion.

Auth
Bearer or Bot
Caller
client
Specification
05 §11.7

Errors: account.suspended, auth.home_session_required

Response status not stated.

PUT /v1/me/avatar

Uploads a new avatar as raw image bytes; server decodes, scales to fit 1024x1024, re-encodes and strips metadata.

Auth
Bearer or Bot
Caller
client
Specification
05 §11.7

Request body: raw image bytes (Content-Type image/png | image/jpeg | image/webp)

Response: 200 with Account

Errors: account.avatar_invalid, core.too_large, account.suspended, auth.home_session_required

At most maxAvatarBytes; images over 4096x4096 or undecodable refused. Bumps profileVersion.

GET /v1/me/devices

Lists active device records (newest lastSeenAt first), optionally followed by devices revoked in the last 30 days.

Auth
Bearer or Bot
Caller
client
Pagination
collection
Specification
05 §12.9
Query parameters
NameTypeRequiredMeaning and constraints
includestringNoAppend devices revoked in the last 30 days.
revoked

Response: 200 with {items: [DeviceRecord], nextCursor: null}

Errors: auth.home_session_required, account.suspended

With a bot token, returns the bot's own devices.

DELETE /v1/me/devices/{did}

Body-less alias of POST .../revoke with reason removed and no revocation; 204, also for an already revoked device. Fresh authentication needed unless it is the caller's own device.

Auth
Bearer or Bot
Caller
client
Rate limit
10 per hour per account
Idempotency
204 again for an already revoked device.
Specification
05 §12.9
Path parameters
NameTypeRequiredMeaning and constraints
didstringYesdevice ID (§12.4); the spec allows the literal 'current' explicitly only for GET and POST .../revoke

Response: 204

Errors: auth.reauth_required, bot.not_allowed, auth.home_session_required, account.suspended

Requires fresh authentication (maxAgeMs 600000, §9). (unless own device).

GET /v1/me/devices/{did}

Returns one device record.

Auth
Bearer or Bot
Caller
client
Specification
05 §12.9
Path parameters
NameTypeRequiredMeaning and constraints
didstringYesdevice ID (§12.4), or the literal 'current'

Response: 200 with DeviceRecord

Errors: auth.home_session_required, account.suspended

{did} MAY be the literal current.

PATCH /v1/me/devices/{did}

Renames a device.

Auth
Bearer or Bot
Caller
client
Specification
05 §12.9
Path parameters
NameTypeRequiredMeaning and constraints
didstringYesdevice ID (§12.4); the spec allows the literal 'current' explicitly only for GET and POST .../revoke

Request body: inline JSON

Request fields
NameTypeRequiredMeaning and constraints
namestringYes1-64 code points, no control characters

Response: 200 with DeviceRecord

Errors: device.already_revoked, device.name_invalid, auth.home_session_required, account.suspended

Emits device.updated. No fresh authentication.

POST /v1/me/devices/{did}/revoke

Revokes a device (runs §13). For the caller's own device (or 'current') it is a sign-out with reason signed_out and no fresh authentication; for any other active device fresh authentication (600000 ms) is required. Bot tokens may revoke only their own device.

Auth
Bearer or Bot
Caller
client
Rate limit
10 per hour per account
Idempotency
Revoking an already revoked device answers 200 with the record.
Specification
05 §12.9
Path parameters
NameTypeRequiredMeaning and constraints
didstringYesdevice ID (§12.4), or the literal 'current'

Request body: RevokeRequest (JSON, all optional)

Request fields
NameTypeRequiredMeaning and constraints
reasonRevokeRequestReasonNoremoved (default) | lost_or_stolen; other -> core.invalid_request; ignored for own device
revocationstringNoInvalid one fails whole request with device.revocation_invalid.
DeviceRevocation JWS (sv-devrevoke+jwt, 07) for this did, signed by identity key

Response: 200 with RevokeResponse

Response fields
NameTypeRequiredMeaning and constraints
deviceDeviceRecordYes
identityStateVerinteger|nullYesver of the IdentityState published by §13 step 3, or null.

Errors: auth.reauth_required, bot.not_allowed, device.revocation_invalid, core.invalid_request, auth.home_session_required, account.suspended

Fresh authentication required unless {did} is the current device (reason then signed_out). Bot tokens get bot.not_allowed for other devices.

GET /v1/me/providers

Lists the account's ProviderLinks ordered by linkedAt.

Auth
Bearer
Caller
client
Pagination
collection
Specification
05 §10.2

Response: 200 with {items: [ProviderLink], nextCursor: null}

Errors: bot.not_allowed, auth.home_session_required, account.suspended

POST /v1/me/providers

Starts linking a provider: creates a pushed authorization request with intent link and returns the authorize URL.

Auth
Bearer
Caller
client
Rate limit
10 per hour per account
Specification
05 §10.3

Request body: LinkProviderRequest (JSON)

Request fields
NameTypeRequiredMeaning and constraints
providerstringYesan enabled provider ID; signup flag irrelevant
clientIdstringYesas client_id §5.1
redirectUristringYesas redirect_uri §5.2
codeChallengebase64urlYesas code_challenge
codeChallengeMethodstringYesS256
statestringYesas state
uiLocalesstringNoas ui_locales

Response: 201 with LinkProviderResponse

Response fields
NameTypeRequiredMeaning and constraints
requestUristringYesPushed request URI with intent link.
authorizeUrlstringYesFull /v1/auth/authorize URL to open.
expiresInMsintegerYes60000

Errors: auth.reauth_required, auth.too_many_providers, auth.provider_unknown, bot.not_allowed, auth.home_session_required, account.suspended

Requires fresh authentication (maxAgeMs 600000, §9). Linking completes at /v1/auth/token (intent link); the same identity twice is idempotent.

DELETE /v1/me/providers/{linkId}

Unlinks a provider; returns active devices that were signed in through it (no session is revoked).

Auth
Bearer
Caller
client
Rate limit
10 per hour per account
Specification
05 §10.4
Path parameters
NameTypeRequiredMeaning and constraints
linkIduuidv7Yes

Response: 200 with UnlinkResponse

Response fields
NameTypeRequiredMeaning and constraints
unlinkeduuidv7YeslinkId removed.
devicesSignedInWithItarray<string>YesActive dids whose sessions were created through this link.

Errors: auth.reauth_required, auth.last_provider, bot.not_allowed, auth.home_session_required, account.suspended

Requires fresh authentication (maxAgeMs 600000, §9). Emits auth.provider_unlinked.

GET /v1/users/{local}/profile

Public profile of a local account (no security state, dates, owner, devices or providers). Also fetched by servers for their users (cache >= 300 s, revalidate with If-None-Match, §17.3).

Auth
none
Caller
client|server
Rate limit
120 per minute per client IP (IPv4 or IPv6 /64); federation peers exempt or 1,200 per minute
Specification
05 §17.1
Path parameters
NameTypeRequiredMeaning and constraints
localstringYespercent-encoded UTF-8 local part; processed per 01 §9.2 steps 1-5 (minimalPrepare lookup)

Response: 200, 304 with PublicProfile

Response fields
NameTypeRequiredMeaning and constraints
addressstringYesCanonical address.
namestringYesReceivers MUST apply 01's display-name check and fall back to local part.
never empty
kindAccountKindYesuser | bot; unknown treated as bot
incbase64urlYesIncarnation.
aboutstringYesas §11.1
avatarAvatar|nullYes
profileVersionintegerYes

Errors: address.invalid_local_part, core.not_found, account.deleted, core.unauthenticated, core.rate_limited

Open CORS. ETag "<profileVersion>", Cache-Control: public, max-age=300; If-None-Match -> 304. Invalid Authorization header -> 401 except an S2S token (which MAY be attached for per-peer limits). Never redirects. 404 also for channels and suspended accounts; 410 during deleted-address quarantine.

GET /v1/users/{local}/profile/avatar

Serves the avatar image bytes with nosniff and CSP default-src 'none'; sandbox. Cache-Control: public, max-age=31536000, immutable when v equals the current profileVersion, else max-age=300; 404 core.not_found when there is no avatar.

Auth
none
Caller
client|server
Rate limit
Same as profile
Specification
05 §17.2
Path parameters
NameTypeRequiredMeaning and constraints
localstringYespercent-encoded UTF-8 local part; processed per 01 §9.2 steps 1-5 (minimalPrepare lookup)
Query parameters
NameTypeRequiredMeaning and constraints
vintegerNoCache-busting profile version, as in Avatar.url.
equals current profileVersion for the immutable cache response

Response: 200 with image bytes

Errors: core.not_found, core.rate_limited

X-Content-Type-Options: nosniff; CSP default-src 'none'; sandbox. v == current -> Cache-Control: public, max-age=31536000, immutable; otherwise max-age=300.

06 Federation

POST /v1/federation/assertions

Ask the home server for a short-lived, single-use HomeAssertion vouching for this account and device to one remote server.

Auth
Bearer home access token (home session, 05) or Bot <bot token>; a remote session token is refused
Caller
client
Rate limit
Per device of a user account: server MUST allow at least 120 assertions per hour with bursts of at least 30; bot accounts limited per bot account by 05 §15.7 (default 120 per hour)
Idempotency
Exempt from Idempotency-Key replay: server MUST ignore the header and MUST NOT store the response; every request mints a new assertion with a new jti (03 §14.2 item 8).

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
audstringYesDomain of the remote server the client wants to use.
1–253 octets; client SHOULD send the canonical domain it resolved; alias, U-label or mixed case accepted and converted

Response: 200 with inline (AssertionResponse)

Response fields
NameTypeRequiredMeaning and constraints
assertionstring (JWS compact, HomeAssertion)YesThe HomeAssertion (§4.3).
≤ 4,096 octets
audstringYesThe canonical domain placed in the assertion's aud claim.
canonical domain
expiresAttimestampYesThe assertion's exp.
RFC 3339
identityStatestring (JWS, IdentityState, 07)NoThe account's current IdentityState JWS.
MUST be present when the assertion's sec is secure; SHOULD be present otherwise

Errors: core.unauthenticated, auth.home_session_required, security.upgrade_required, account.suspended, core.invalid_request, federation.audience_is_home, discovery.domain_not_served, discovery.*, federation.blocked, discovery.peer_suspended, core.rate_limited

GET /v1/federation/blocks

List the server's FederationBlocks, cursor-paginated.

Auth
Session (home, or remote for a remote admin) of an account holding the admin system role (10 §4.2)
Caller
client
Pagination
collection
Specification
06 §12.4
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoPagination cursor.
00 §7.10
limitintegerNoPage size.
00 §7.10

Response: 200 with inline {items: [FederationBlock], nextCursor}

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<FederationBlock>YesBlocks.
nextCursorstringNoCursor for the next page.
00 §7.10

Errors: core.forbidden

DELETE /v1/federation/blocks/{domain}

Remove a block (alias accepted); restores federation for new requests, nothing is replayed.

Auth
Session (home, or remote for a remote admin) of an account holding the admin system role (10 §4.2)
Caller
client
Specification
06 §12.4
Path parameters
NameTypeRequiredMeaning and constraints
domainstringYesBlocked peer.
Domain or alias

Response: 204

Errors: core.forbidden, core.not_found

PUT /v1/federation/blocks/{domain}

Create or update a block; {domain} may be an alias and is stored under the resolved canonical domain (or unresolved if resolution fails).

Auth
Session (home, or remote for a remote admin) of an account holding the admin system role (10 §4.2)
Caller
client
Specification
06 §12.4
Path parameters
NameTypeRequiredMeaning and constraints
domainstringYesPeer to block.
Domain or alias; blocking one of the server's own domains → 400 core.invalid_request

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
includeSubdomainsbooleanNoAlso cover every domain ending with "." + domain.
Default false
notestringNoPrivate administrator note.
≤ 500 characters; never sent to any peer; not copied into the audit log

Response: 201, 200 with FederationBlock

Errors: core.forbidden, core.invalid_request

POST /v1/federation/events

Single ingest endpoint for every S2S event: a batch of 1–100 events from one origin to one destination, answered with one EventResult per event.

Auth
S2S request token (Authorization: Bearer <sv-s2s+jwt>)
Caller
server
Rate limit
Per federation peer: receivers MUST allow each authenticated peer at least 10 requests/s sustained, bursts of 50; 429 core.rate_limited with Retry-After beyond
Idempotency
Deduplicated per (origin canonical domain, event id), keys kept ≥ 48 h; resend returns duplicate. Each attempt needs a fresh S2S token (new jti).

Request body: EventBatchRequest

Request fields
NameTypeRequiredMeaning and constraints
eventsarray<S2SEvent>YesThe batch.
1–100 events; whole body ≤ destination's maxRequestBytes (03); no two events share an id

Response: 200 with EventBatchResponse

Response fields
NameTypeRequiredMeaning and constraints
resultsarray<EventResult>YesPer-event outcomes.
Exactly one per request event, same order

Errors: federation.batch_invalid, federation.s2s_unauthenticated, federation.blocked, core.too_large, core.rate_limited, discovery.peer_suspended, federation.issuer_unreachable, core.unavailable, federation.event_invalid, federation.event_too_large, federation.event_not_authorized, federation.event_expired, address.non_canonical

GET /v1/federation/policy

Read the server's federation policy (mode, allowlist, block count).

Auth
Session (home, or remote for a remote admin) of an account holding the admin system role (10 §4.2)
Caller
client
Specification
06 §12.4

Response: 200 with FederationPolicy

Errors: core.forbidden

PATCH /v1/federation/policy

Change the federation mode and/or allowlist; every allows entry is resolved and stored under its canonical domain.

Auth
Session (home, or remote for a remote admin) of an account holding the admin system role (10 §4.2)
Caller
client
Feature
federation_allowlist (only for mode allowlist; OPTIONAL to implement)
Specification
06 §12.2, §12.4

Request body: inline (partial FederationPolicy)

Request fields
NameTypeRequiredMeaning and constraints
modeFederationModeNoPolicy mode.
open or allowlist; allowlist → 501 core.unsupported_feature (data.feature "federation_allowlist") where not implemented
allowsarray<string>NoAllowlist entries.
Domains; resolved to canonical; unresolvable entries stored as given (lowercase A-label) and re-resolved at least every 24 h

Response: 200 with FederationPolicy

Errors: core.forbidden, core.unsupported_feature

POST /v1/federation/sessions

Present a HomeAssertion (plus DeviceProof and DeviceCertificate for enrolled devices) to a remote server to create a new remote session, or renew the current one when the current token is sent.

Auth
none (the HomeAssertion in the body authenticates; public per 03 §3.2 rule 6); optional Authorization: Bearer <current remote session token> for renewal
Caller
client
Rate limit
Server MUST allow at least 30 creations/renewals per minute per account and at least 600 per minute per issuing domain; MAY refuse more with core.rate_limited
Idempotency
Exempt from Idempotency-Key replay: server MUST ignore the header and MUST NOT store the response. Each attempt carries a fresh assertion; after a 401 on renewal the client resends the same body without Authorization (assertion still unused).

Request body: inline (SessionRequest)

Request fields
NameTypeRequiredMeaning and constraints
assertionstring (JWS compact, HomeAssertion)YesThe HomeAssertion.
≤ 4,096 octets; aud must be this server's canonical domain
deviceProofstring (JWS compact, DeviceProof)NoThe DeviceProof (§5).
Required when the assertion has enr: true; MUST be absent otherwise (server ignores it if present); ≤ 1,024 octets
deviceCertificatestring (JWS, DeviceCertificate, 07)NoThe device's DeviceCertificate; needed because IdentityState lists only the DSK thumbprint.
Required when the assertion has enr: true; ≤ 2,048 octets (07 §4.1)
identityStatestring (JWS, IdentityState, 07)NoThe IdentityState returned with the assertion; saves the server a fetch.
RECOMMENDED whenever the assertion's sec is secure; ≤ 32,768 octets
clientstringNoClient software identifier.
1–128 printable ASCII characters, as in session.hello (03)

Response: 201, 200 with RemoteSession

Response fields
NameTypeRequiredMeaning and constraints
sessionIduuidv7YesSession ID assigned by the remote server.
Stable across renewals and extensions
tokenstringNoOpaque remote session access token.
Only in create and renew responses; never returned by GET; session-token = 1*512( ALPHA / DIGIT / "-" / "." / "" / "~" ), >=128 bits entropy, SHOULD be prefixed rs
tokenTypestringNoToken scheme.
Only with token; always Bearer
stateRemoteSessionStateYesSession state (§6.7).
active or extended; client treats unknown value as active
accountobjectYesThe server's view of the account: addr (canonical address), name (assertion name if it passes 01's display-name check, else the prepared local part), kind (user|bot), inc (incarnation from the assertion), security (insecure|secure, server's current view).
{addr, name, kind, inc, security}
deviceobjectYesdid, and enrolled (boolean, the server's current view).
{did, enrolled}
secureAccessSecureAccessYesWhether the session may enter secure contexts. In active: full iff account.security=secure and device.enrolled=true, else none; in extended, §7.3 applies.
full, existing_only or none; client treats unknown as none
createdAttimestampYesWhen the session was created.
verifiedAttimestampYesWhen an assertion was last verified for it (creation or renewal).
expiresAttimestampYesWhen the session ends unless renewed or extended.
now + 3,600 s on create/renew
renewAftertimestampYesClient SHOULD renew after this time.
expiresAt − 600 s
extendableUntiltimestampYesLatest expiresAt an extension can reach.
verifiedAt + 24 h

Errors: core.invalid_request, core.too_large, core.token_expired, federation.session_ended, core.unauthenticated, federation.assertion_invalid, address.non_canonical, federation.wrong_audience, federation.assertion_replayed, federation.device_proof_required, federation.device_proof_invalid, federation.identity_mismatch, federation.issuer_unreachable, discovery.peer_suspended, federation.blocked, moderation.banned, core.rate_limited, core.unavailable

DELETE /v1/federation/sessions/current

End the current remote session with reason signed_out; memberships are unchanged.

Auth
Bearer remote session token
Caller
client
Specification
06 §6.5

Response: 204

Errors: core.token_expired, federation.session_ended

GET /v1/federation/sessions/current

Return the current RemoteSession object (without token), e.g. to learn expiresAt and state after a restart.

Auth
Bearer remote session token
Caller
client
Specification
06 §6.5

Response: 200 with RemoteSession

Response fields
NameTypeRequiredMeaning and constraints
sessionIduuidv7YesSession ID assigned by the remote server.
Stable across renewals and extensions
stateRemoteSessionStateYesSession state (§6.7).
active or extended; client treats unknown value as active
accountobjectYesThe server's view of the account: addr (canonical address), name (assertion name if it passes 01's display-name check, else the prepared local part), kind (user|bot), inc (incarnation from the assertion), security (insecure|secure, server's current view).
{addr, name, kind, inc, security}
deviceobjectYesdid, and enrolled (boolean, the server's current view).
{did, enrolled}
secureAccessSecureAccessYesWhether the session may enter secure contexts. In active: full iff account.security=secure and device.enrolled=true, else none; in extended, §7.3 applies.
full, existing_only or none; client treats unknown as none
createdAttimestampYesWhen the session was created.
verifiedAttimestampYesWhen an assertion was last verified for it (creation or renewal).
expiresAttimestampYesWhen the session ends unless renewed or extended.
now + 3,600 s on create/renew
renewAftertimestampYesClient SHOULD renew after this time.
expiresAt − 600 s
extendableUntiltimestampYesLatest expiresAt an extension can reach.
verifiedAt + 24 h

Errors: core.token_expired, federation.session_ended

POST /v1/federation/sessions/current/extend

Ask the remote server to extend a session by up to 1 h (to at most verifiedAt + 24 h) because the home server is unreachable; the remote server probes the home server itself.

Auth
Bearer remote session token
Caller
client
Rate limit
At most one extension per session per 300 s; further requests fail with core.rate_limited
Specification
06 §6.6

Request body: inline (ExtendRequest)

Request fields
NameTypeRequiredMeaning and constraints
reasonstringYesWhy the extension is requested.
Only home_unreachable; other values rejected with 400 core.invalid_request

Response: 200 with RemoteSession (without token; the token doesn't change)

Response fields
NameTypeRequiredMeaning and constraints
sessionIduuidv7YesSession ID assigned by the remote server.
Stable across renewals and extensions
stateRemoteSessionStateYesSession state (§6.7).
active or extended; client treats unknown value as active
accountobjectYesThe server's view of the account: addr (canonical address), name (assertion name if it passes 01's display-name check, else the prepared local part), kind (user|bot), inc (incarnation from the assertion), security (insecure|secure, server's current view).
{addr, name, kind, inc, security}
deviceobjectYesdid, and enrolled (boolean, the server's current view).
{did, enrolled}
secureAccessSecureAccessYesWhether the session may enter secure contexts. In active: full iff account.security=secure and device.enrolled=true, else none; in extended, §7.3 applies.
full, existing_only or none; client treats unknown as none
createdAttimestampYesWhen the session was created.
verifiedAttimestampYesWhen an assertion was last verified for it (creation or renewal).
expiresAttimestampYesWhen the session ends unless renewed or extended.
now + 3,600 s on create/renew
renewAftertimestampYesClient SHOULD renew after this time.
expiresAt − 600 s
extendableUntiltimestampYesLatest expiresAt an extension can reach.
verifiedAt + 24 h

Errors: core.invalid_request, core.token_expired, federation.session_ended, core.conflict, federation.extension_limit, discovery.peer_suspended, federation.home_reachable, core.rate_limited

07 Identity keys, certificates and verification

GET /v1/me/identity

Returns the caller's own identity plus the calling device's enrolment status.

Auth
home session (Authorization: Bearer, 05) or bot token (Authorization: Bot, 05); remote session token refused with 403 core.forbidden
Caller
client
Specification
07 §11.3

Response: 200 with IdentityResponse plus `thisDevice`

Response fields
NameTypeRequiredMeaning and constraints
addressstringYesThe canonical address
canonical address
statestring (IdentityState JWS)YesThe current IdentityState JWS
deviceCertificatesarray<string>YesDeviceCertificate JWS of each listed device
same order as devices; empty when insecure
thisDeviceThisDeviceYesThe calling device; enrolled is true when did is listed in devices
{"did": string, "enrolled": boolean}

Errors: core.unauthenticated, core.forbidden

PUT /v1/me/identity

Registers a new identity (IdentityCertificate plus the calling device's DeviceCertificate) for an insecure account: first upgrade or re-upgrade after a downgrade.

Auth
home session (Authorization: Bearer) with fresh authentication maxAgeMs 86,400,000 (05 §9, D-085), or bot token (Authorization: Bot, 05 §15.5)
Caller
client
Rate limit
generation-change limit: 5 per account per 24 h (§20); over it 429 core.rate_limited
Idempotency
Accepts Idempotency-Key (00 §7.11). Natural: if the account is already secure and both certificates are byte-identical to the current idc and the calling device's registered certificate, answers 200 with the IdentityResponse (replay); the fresh-auth check runs before this, so a replay needs it too.
Specification
07 §11.4

Request body: inline (TurnOnEncryptionRequest)

Request fields
NameTypeRequiredMeaning and constraints
identityCertificatestring (IdentityCertificate JWS)YesNew IdentityCertificate
igen = expectedIgen + 1
deviceCertificatestring (DeviceCertificate JWS)YesDeviceCertificate for the calling device
for the calling device, under that certificate
expectedIgenintegerYesThe account's current igen, as the client last saw it

Response: 200, 400, 403, 409, 429 with IdentityResponse

Response fields
NameTypeRequiredMeaning and constraints
addressstringYesCanonical address
statestringYesNew IdentityState JWS
deviceCertificatesarray<string>YesDeviceCertificates of listed devices

Errors: auth.reauth_required, identity.already_secure, identity.generation_mismatch, identity.invalid_certificate, address.non_canonical, identity.subject_mismatch, identity.key_reused, identity.device_mismatch, identity.device_revoked, core.rate_limited, backup.required, core.forbidden

POST /v1/me/identity/devices

Registers the calling device's DeviceCertificate under the current identity after pairing or recovery, making the device enrolled.

Auth
home session (Authorization: Bearer) or bot token (Authorization: Bot); no fresh authentication stated
Caller
client
Rate limit
At most 10 registrations per account per hour (§20: MAY be lower, never below 3); otherwise 429 core.rate_limited
Idempotency
Accepts Idempotency-Key. Natural: if the device is already listed with a byte-identical certificate, answers 200 with the IdentityResponse; a different certificate gives 409 identity.device_conflict.
Secure contexts only
Yes
Specification
07 §11.5

Request body: inline (RegisterDeviceRequest)

Request fields
NameTypeRequiredMeaning and constraints
deviceCertificatestring (DeviceCertificate JWS)YesThe calling device's DeviceCertificate
expectedIgenintegerYesThe current igen as the client last saw it

Response: 201, 200, 400, 403, 409, 429 with IdentityResponse

Response fields
NameTypeRequiredMeaning and constraints
addressstringYesCanonical address
statestringYesNew IdentityState JWS
deviceCertificatesarray<string>YesDeviceCertificates of listed devices

Errors: identity.not_secure, identity.generation_mismatch, identity.invalid_certificate, identity.device_mismatch, identity.device_revoked, identity.device_conflict, identity.key_reused, identity.too_many_devices, core.rate_limited

POST /v1/me/identity/reset

Replaces the account's identity with a new identity key (mode: "new_key") or turns encryption off (mode: "downgrade"), immediately, even from an unenrolled device.

Auth
home session (Authorization: Bearer) with fresh authentication (authAt at most 600 s old, 05 §9), or bot token (Authorization: Bot, 05 §15.5)
Caller
client
Rate limit
generation-change limit: 5 per account per 24 h (§20); over it 429 core.rate_limited
Idempotency
Accepts Idempotency-Key. Natural replay: if current igen equals expectedIgen + 1 and the request matches the last applied generation change, answers 200 and changes nothing. new_key matches when its certificates are byte-identical to current idc and the calling device's registered DeviceCertificate (keyPackages not compared); downgrade matches when the account is insecure and its last generation change was a downgrade initiated by the calling device.
Secure contexts only
Yes
Specification
07 §11.6

Request body: inline (ResetRequest)

Request fields
NameTypeRequiredMeaning and constraints
modeResetModeYesReset with a new key, or turn encryption off
new_key or downgrade; unknown values 400 core.invalid_request
expectedIgenintegerYesThe current igen as the client last saw it
identityCertificatestring (IdentityCertificate JWS)NoNew IdentityCertificate
required when new_key; igen = expectedIgen + 1
deviceCertificatestring (DeviceCertificate JWS)NoThe calling device's DeviceCertificate under the new IdentityCertificate
required when new_key
keyPackagesKeyPackageUpload (13 §9.2)NoKeyPackages for the calling device under the new certificates; user clients SHOULD send at least lastResort
new_key only; keyPackages at most 10 here, plus lastResort; present with downgrade: 400 core.invalid_request

Response: 200, 400, 403, 409, 429 with IdentityResponse

Response fields
NameTypeRequiredMeaning and constraints
addressstringYesCanonical address
statestringYesNew IdentityState JWS
deviceCertificatesarray<string>YesDeviceCertificates of listed devices

Errors: auth.reauth_required, core.invalid_request, identity.not_secure, identity.downgrade_not_allowed, identity.generation_mismatch, identity.invalid_certificate, address.non_canonical, identity.subject_mismatch, identity.key_reused, identity.device_mismatch, identity.device_revoked, mls.keypackage_invalid, core.rate_limited, backup.required

POST /v1/me/identity/revocations

Uploads a DeviceRevocation JWS signed by the identity key; revokes the device if still active, or attaches the rev to its RevokedEntry.

Auth
home session (Authorization: Bearer) or bot token (Authorization: Bot); fresh authentication (600 s, 05 §9) when revoking another device that is still active; bot token can't revoke another active device (bot.not_allowed)
Caller
client
Idempotency
Accepts Idempotency-Key. Natural: if the device's RevokedEntry already has a rev, changes nothing (step 8).
Secure contexts only
Yes
Specification
07 §11.7

Request body: inline (RevocationUploadRequest)

Request fields
NameTypeRequiredMeaning and constraints
revocationstring (DeviceRevocation JWS)YesA DeviceRevocation JWS (§8)
≤ 1,024 bytes

Response: 200, 400, 403, 404, 409 with IdentityResponse

Response fields
NameTypeRequiredMeaning and constraints
addressstringYesCanonical address
statestringYesCurrent IdentityState JWS
deviceCertificatesarray<string>YesDeviceCertificates of listed devices

Errors: identity.not_secure, identity.generation_mismatch, identity.invalid_certificate, identity.unknown_device, auth.reauth_required, bot.not_allowed

GET /v1/users/{local}/identity

Returns the public identity (current IdentityState plus the DeviceCertificate of each listed device) of any account homed on this server; also fetched by hosting servers and other home servers.

Auth
none (public); a server MAY send an sv-s2s+jwt (06) to obtain a higher rate limit
Caller
client
Rate limit
At least 120 requests per minute per client IP address, and at least 1,200 per minute per authenticated federation peer; over the limit 429 core.rate_limited
Specification
07 §11.2
Path parameters
NameTypeRequiredMeaning and constraints
localstringYesLocal part of the account's address
local part as 01 defines it, percent-encoded UTF-8; server looks up minimalPrepare of the decoded segment (01 §9.2); failure 400 address.invalid_local_part

Response: 200, 304, 400, 404, 410, 429 with IdentityResponse

Response fields
NameTypeRequiredMeaning and constraints
addressstringYesThe canonical address
canonical address
statestring (IdentityState JWS)YesThe current IdentityState JWS
compact JWS ≤ 32,768 bytes
deviceCertificatesarray<string>YesThe DeviceCertificate JWS of each entry of devices
same order as IdentityState devices; empty when the account is insecure

Errors: address.invalid_local_part, identity.not_found, identity.account_deleted, core.rate_limited

08 Turning on encryption, pairing, backup and the vault

GET /v1/me/backup

Variant 1 of 2

Returns the active KeyBackup without nonce and ct, plus downloadAllowed and phraseChangePending, so a client can plan a restore; not counted against download limits.

Auth
home session token (Authorization: Bearer), any home session of the account; or the bot's token
Caller
client
Idempotency
Safe read
Secure contexts only
Yes
Specification
08 §5.5, §5.5.1
Query parameters
NameTypeRequiredMeaning and constraints
partstringYesSelects the metadata-only response.
literal "meta"

Response: 200, 404 with KeyBackup (without nonce and ct) + BackupMetaExtras

Response fields
NameTypeRequiredMeaning and constraints
vintegerYesFormat version.
1
addrstringYesAccount address.
canonical address
igenintegerYesIdentity generation whose keys the backup holds.
ikfstringYesIdentity public key thumbprint.
RFC 7638 thumbprint, base64url, 43 chars
vgenintegerYesNewest vault generation in the payload.
1 to 4,294,967,295
phraseIdbase64urlYesPhrase ID of the phrase that opens the backup.
16 bytes
kdfArgon2idParamsYesArgon2id parameters.
04 §12.2
verintegerYesBackup version.
server-assigned, from 1, never reused
stateenum KeyBackupStateYesBackup state.
active (staged never returned)
updatedAttimestampYesTime of the write.
updatedBystringYesDevice whose session wrote it.
did
downloadAllowedbooleanYesWhether a full GET by this session would pass §5.7 now (ignoring rate limits); false means fresh authentication is needed first.
phraseChangePendingbooleanYesWhether a new recovery phrase is required before the KeyBackup may be rewritten under the current one (§10.8).

Errors: backup.not_found

Variant 2 of 2

Downloads the full active KeyBackup (counted against download limits and logged in the device activity log).

Auth
home session token (Authorization: Bearer) of a session that passes §5.7 (active enrolled device; unenrolled device fresh within 3,600,000 ms; or the bot's token)
Caller
client
Rate limit
backup.download (10/24 h unenrolled sessions per account together; 5/h per session; 50/24 h enrolled sessions per account together; 50/24 h bot token for all processes)
Idempotency
Safe read; clients cache the result in memory for the lifetime of the restore screen
Secure contexts only
Yes

Response: 200, 403, 404, 429 with KeyBackup

Response fields
NameTypeRequiredMeaning and constraints
(all KeyBackup members)KeyBackupYesFull object including nonce and ct. Response carries Cache-Control: no-store.
§5.1

Errors: backup.not_found, auth.reauth_required, core.rate_limited

PUT /v1/me/backup

Stages a KeyBackup for an identity about to be registered or reset (stage: true), or atomically replaces the active KeyBackup with compare-and-set on prevVer.

Auth
home session token (Authorization: Bearer); staging: any home session of the account, enrolled or not, or the bot's token; updating: an enrolled device of the current igen
Caller
client
Rate limit
10 staged writes per account per rolling hour (429 core.rate_limited)
Idempotency
Staging: one staged backup per device (a re-stage from the same device replaces it), at most 3 per account (a fourth device replaces the oldest). Update: compare-and-set on prevVer; exactly one concurrent writer wins.

Request body: KeyBackupWrite

Request fields
NameTypeRequiredMeaning and constraints
vintegerYesFormat version.
must be 1
addrstringYesAccount address.
must equal the account's canonical address
igenintegerYesIdentity generation.
staged: current igen + 1; update: current igen
ikfstringYesIdentity key thumbprint.
base64url 43 chars; update: equal to current identity's
vgenintegerYesNewest vault generation in payload.
staged: 1; update: not lower than active backup's, not higher than vault's current
phraseIdbase64urlYesPhrase ID of the phrase that opens it.
16 bytes
kdfArgon2idParamsYesKDF parameters.
producer values v 19, m 65536, t 3, p 1, 16-byte salt; must be within 04 §12.1 verifier ranges
noncebase64urlYesAES-GCM nonce.
12 bytes
ctbase64urlYesAES-256-GCM ciphertext with 16-byte tag.
decoded length ≤ maxBackupBytes; clients keep ≤ 16 KiB
stagebooleanNotrue to stage a backup for an identity about to be registered or reset.
default false
prevVerintegerNoThe ver of the active KeyBackup this write replaces.
required when stage is false

Response: 200, 201, 400, 403, 409, 413, 429 with KeyBackup

Response fields
NameTypeRequiredMeaning and constraints
(stored KeyBackup)KeyBackupYesThe stored KeyBackup object.
201 with state staged for staging; 200 for update

Errors: backup.invalid, core.too_large, crypto.kdf_params_rejected, crypto.unsupported_algorithm, backup.identity_mismatch, core.rate_limited, security.device_not_enrolled, backup.version_conflict, backup.stale_generation, backup.phrase_change_required

GET /v1/me/pairing

Lists open sessions this device may join or takes part in (at most 3, no pagination).

Auth
home session token (Authorization: Bearer) of a secure user account
Caller
client
Idempotency
Safe read; called at start and on WebSocket reconnect
Secure contexts only
Yes
Specification
08 §6.4, §6.4.2

Response: 200, 403, 409 with inline { items: [PairingSession] }

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<PairingSession>YesEnrolled caller: sessions created by a new device with no approver yet, and sessions where it is approver. Unenrolled caller: sessions created by an enrolled device with no new device yet, and sessions where it is the new device.
at most 3

Errors: pairing.unsupported_client, pairing.account_not_secure

POST /v1/me/pairing

Creates a pairing session in state waiting; if the caller is the new device, prompts every enrolled device via pairing.requested and push.

Auth
home session token (Authorization: Bearer) of a secure user account; bot token refused
Caller
client
Rate limit
pairing.create (5 per account per rolling hour); pairing.open (3 open sessions per account)
Idempotency
Not idempotent; a new session from the same device supersedes (cancels with endReason superseded) that device's other open session
Secure contexts only
Yes

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
displayerenum DisplayerNoWhich device will display the credentials.
default new_device when caller unenrolled, enrolled_device when enrolled; enrolled caller may not ask for new_device

Response: 201, 403, 409, 429 with PairingSession

Response fields
NameTypeRequiredMeaning and constraints
(PairingSession)PairingSessionYesThe new session.
§6.2

Errors: pairing.role_mismatch, core.rate_limited, pairing.unsupported_client, pairing.account_not_secure

GET /v1/me/pairing/{id}

Reads one pairing session (to either participant or any device the list would include it for).

Auth
home session token (Authorization: Bearer) of a secure user account
Caller
client
Idempotency
Safe read
Secure contexts only
Yes
Specification
08 §6.4, §6.4.2
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YespairingId.

Response: 200, 403, 404, 409 with PairingSession

Errors: pairing.not_found, pairing.unsupported_client, pairing.account_not_secure

POST /v1/me/pairing/{id}/cancel

Cancels a session (participant) or denies a prompt (prompted enrolled device); moves it to cancelled and notifies participants and prompted devices.

Auth
home session token (Authorization: Bearer); denied: an enrolled device that received pairing.requested, while waiting; cancelled: a participant in any non-terminal state
Caller
client
Idempotency
Cancelling a terminal session answers 200 with the unchanged session
Secure contexts only
Yes
Specification
08 §6.4.5
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YespairingId.

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
reasonenum PairingCancelReasonYesdenied = user answered "No, that's not me"; cancelled = participant cancels.
denied | cancelled

Response: 200, 403, 404, 409 with PairingSession

Errors: pairing.not_found, pairing.ended, pairing.already_joined, pairing.unsupported_client, pairing.account_not_secure

POST /v1/me/pairing/{id}/join

Takes the missing role (approver must be enrolled, new device unenrolled); moves session to joined and notifies participants and prompted devices.

Auth
home session token (Authorization: Bearer) of a secure user account
Caller
client
Idempotency
Not stated; a second join after the role is filled gets pairing.already_joined
Secure contexts only
Yes
Specification
08 §6.4.3
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YespairingId.

Request body: inline (empty object {})

Response: 200, 403, 404, 409, 410 with PairingSession

Errors: pairing.not_found, pairing.expired, pairing.already_joined, pairing.ended, pairing.role_mismatch, pairing.unsupported_client, pairing.account_not_secure

GET /v1/me/pairing/{id}/messages

Polls protocol messages addressed to the caller with index above after; used when the WebSocket is down (at most once per second).

Auth
home session token (Authorization: Bearer) of a participant
Caller
client
Rate limit
clients poll at most once per second
Idempotency
Safe read
Secure contexts only
Yes
Specification
08 §6.4.4
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YespairingId.
Query parameters
NameTypeRequiredMeaning and constraints
afterintegerNoReturn messages with index above n.
default 0

Response: 200, 403, 404, 409 with inline { items: [PairingMessageItem] }

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<PairingMessageItem>YesEach { n, type, from, body, sentAt }; from is the sender's did.

Errors: pairing.not_found, pairing.unsupported_client, pairing.account_not_secure

POST /v1/me/pairing/{id}/messages

Sends one pairing protocol message (CPace, payload, ack or abort) to the other participant; the server relays it as pairing.message and applies the state transition.

Auth
home session token (Authorization: Bearer) of a participant
Caller
client
Idempotency
A byte-identical repeat (same type and body) of the caller's most recent message returns the original 202 {n} and changes nothing. Clients retry with exactly the same body and don't send the next message until the previous one got 202.
Secure contexts only
Yes
Specification
08 §6.4.4
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YespairingId.

Request body: PairingMessageRequest

Request fields
NameTypeRequiredMeaning and constraints
typeenum PairingMessageTypeYesMessage type.
cpace_a | cpace_b | confirm_a | payload | ack | abort
bodyobjectYesType-specific body (§6.6.2).
≤ 64 KiB for payload, ≤ 2 KiB otherwise

Response: 202, 403, 404, 409, 413 with inline { n }

Response fields
NameTypeRequiredMeaning and constraints
nintegerYesIndex assigned to the stored message.
from 1

Errors: pairing.not_found, pairing.ended, core.too_large, pairing.out_of_order, pairing.unsupported_client, pairing.account_not_secure

GET /v1/me/vault

Returns the vault summary: igen, current vgen (0 = uninitialized), rotationPending, vseq, counts, quota and retired vaults.

Auth
home session token (Authorization: Bearer) of a device listed active in the current IdentityState; or the bot's token for a bot account
Caller
client
Idempotency
Safe read
Secure contexts only
Yes
Specification
08 §8.7.1

Response: 200, 403 with VaultSummary

Response fields
NameTypeRequiredMeaning and constraints
igenintegerYesIdentity generation of the vault.
vgenintegerYesCurrent vault generation.
0 while uninitialized
rotationPendingbooleanYesA rotation is needed (§10.4).
vseqintegerYesLatest change sequence.
recordCountintegerYesNumber of records.
bytesUsedintegerYesBytes counted against quota.
quotaBytesintegerYesQuota (maxVaultBytes).
retiredarray<{igen, expiresAt}>YesRetired vaults readable until expiresAt.

Errors: security.device_not_enrolled

GET /v1/me/vault/box-keys

Lists BoxKeys of devices listed active in the current IdentityState.

Auth
home session token (Authorization: Bearer) of an active enrolled device; or the bot's token
Caller
client
Idempotency
Safe read
Secure contexts only
Yes
Specification
08 §10.1

Response: 200, 403 with inline { items: [BoxKey] }

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<BoxKey>YesBox keys of active devices.

Errors: security.device_not_enrolled

PUT /v1/me/vault/box-keys/{did}

Uploads the device's public X25519 box key, bound by its DeviceCertificate (dbk) and a DSK signature.

Auth
home session token (Authorization: Bearer) of the device named by {did}, listed active in the current IdentityState (or the bot's token for a bot account, §8.1)
Caller
client
Idempotency
Replaces any earlier box key for this did
Secure contexts only
Yes
Specification
08 §10.1
Path parameters
NameTypeRequiredMeaning and constraints
didstringYesDevice ID.
must equal the session's device

Request body: BoxKey

Request fields
NameTypeRequiredMeaning and constraints
didstringYesDevice ID.
equal to path and session's device
igenintegerYesIdentity generation.
current
pubbase64urlYesX25519 public key.
32 bytes; equal to x of devcert's dbk
devcertstringYesThe device's certificate.
DeviceCertificate JWS
sigbase64urlYesBinding signature.
labelled signature, label vault-box-key, by DSK over BoxKeyTBS

Response: 200, 400, 403 with BoxKey

Response fields
NameTypeRequiredMeaning and constraints
createdAttimestampYesStorage time.
set by server

Errors: vault.invalid_box_key, security.device_not_enrolled

GET /v1/me/vault/changes

Change feed: the current version (including tombstones) of every record with vseq above since, in vseq order.

Auth
home session token (Authorization: Bearer) of an active enrolled device; or the bot's token
Caller
client
Idempotency
Safe read
Pagination
other: vseq cursor with hasMore (not 00 §7.10 timeline or collection)
Secure contexts only
Yes
Specification
08 §8.8
Query parameters
NameTypeRequiredMeaning and constraints
sinceintegerYesReturn changes after this vseq.
a vseq; 0 to start
limitintegerNoMax items.
1 to 500, default 200
typestringNoTypes whose nonce and ct are wanted; other types returned as headers only.
repeatable

Response: 200, 403, 409, 410 with VaultChangesPage

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<VaultRecord>YesChanged records.
headers only for types not requested
vseqintegerYesCursor: vseq of last item, or since when no items.
headVseqintegerYesVault's newest vseq when built.
informative
hasMorebooleanYesContinue with since = vseq while true.

Errors: vault.changes_expired, vault.not_initialized, security.device_not_enrolled

GET /v1/me/vault/grants

Returns the newest VaultKeyGrant addressed to the session's device; 404 triggers vault.grant_needed to other devices.

Auth
home session token (Authorization: Bearer) of a device listed active in the current IdentityState; or the bot's token for a bot account (§8.1)
Caller
client
Idempotency
Safe read (side effect: server may send vault.grant_needed, throttled 10 min per device)
Secure contexts only
Yes
Specification
08 §10.3, §10.7

Response: 200, 403, 404, 409 with VaultKeyGrant

Errors: vault.grant_not_found, vault.not_initialized, security.device_not_enrolled

POST /v1/me/vault/grants

Posts VaultKeyGrants of the current generation for devices that lack one.

Auth
home session token (Authorization: Bearer) of a device listed active in the current IdentityState; or the bot's token for a bot account (§8.1)
Caller
client
Idempotency
Server keeps only the newest grant per device; a newer grant replaces older ones
Secure contexts only
Yes
Specification
08 §10.3

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
igenintegerYesIdentity generation.
vgenintegerYesGeneration granted.
MUST be the current generation
grantsarray<{did, enc, ct}>YesGrants per recipient device.
enc 32 bytes, ct 48 bytes base64url

Response: 200, 403, 409 with VaultGrantsPostResponse

Response fields
NameTypeRequiredMeaning and constraints
acceptedarray<string>YesGrants stored.
dids
rejectedarray<{did, reason}>YesGrants refused.
reason: not_active | no_box_key

Errors: vault.stale_generation, vault.not_initialized, security.device_not_enrolled

GET /v1/me/vault/keys

Returns vault generations with kcv, VaultKeyLinks, generation signatures and rotation/orphan/phrase-change flags.

Auth
home session token (Authorization: Bearer) of an active enrolled device; or the bot's token
Caller
client
Idempotency
Safe read
Secure contexts only
Yes
Specification
08 §10.2
Query parameters
NameTypeRequiredMeaning and constraints
igenintegerNoRead a retired vault's generations.
a retired generation

Response: 200, 403, 410 with VaultKeysState

Response fields
NameTypeRequiredMeaning and constraints
igenintegerYesIdentity generation.
vgenintegerYesCurrent generation.
rotationPendingbooleanYesA delisted device makes a new generation necessary.
pendingAttimestamp|nullYesSince when rotation is pending.
phraseChangePendingbooleanYesA device was delisted as lost or stolen since the last phrase change.
orphanedbooleanYesCurrent generation's creator isn't active and no active device holds a grant for it.
generationsarray<VaultGeneration>YesAll generations.

Errors: security.device_not_enrolled, vault.retired_expired

POST /v1/me/vault/keys

Creates vault generation 1 (initialization) or a new generation (rotation, or recovery of an orphaned generation) with its link, signature and grants.

Auth
home session token (Authorization: Bearer) of an active enrolled device; or the bot's token
Caller
client
Idempotency
Generation 1 with the same kcv as an existing generation 1 answers 200 (idempotent); different kcv gives 409 vault.generation_conflict. Rotation: first writer wins, others get vault.generation_conflict.
Secure contexts only
Yes

Request body: VaultGenerationCreate

Request fields
NameTypeRequiredMeaning and constraints
igenintegerYesIdentity generation.
current igen
vgenintegerYesNew generation number.
1 for init; prevVgen + 1 otherwise
prevVgenintegerYesGeneration being superseded.
0 for generation 1; must be current generation
kcvbase64urlYeskcv(vgen).
8 bytes
linkVaultKeyLink|nullYes{ linkedVgen, nonce, ct } wrapping the previous key.
null for generation 1
grantsarray<{did, enc, ct}>YesVaultKeyGrants for every verified other device.
[] for generation 1
idStateVerintegerYesver of the IdentityState used (V3).
createdBystringYesCreating device.
did; must be the session's device
devcertstringYesCreator's DeviceCertificate.
DeviceCertificate JWS
sigbase64urlYesGeneration signature over VaultGenerationTBS.
labelled signature, label vault-generation

Response: 200, 201, 400, 403, 409 with keys object (VaultKeysState) on 200 for an idempotent generation 1; 201 on creation (body not stated)

Errors: vault.invalid_generation, vault.generation_conflict, security.device_not_enrolled

GET /v1/me/vault/records

Lists vault records (no tombstones), ordered by rid, optionally filtered by type or bucket, or from a retired vault by igen.

Auth
home session token (Authorization: Bearer) of an active enrolled device; or the bot's token
Caller
client
Idempotency
Safe read
Pagination
collection
Secure contexts only
Yes
Specification
08 §8.7.2, §8.12
Query parameters
NameTypeRequiredMeaning and constraints
typestringNoFilter by type.
record type
bucketbase64urlNoFilter by bucket (lazy per-context download).
16 bytes
igenintegerNoRead a retired vault.
a retired generation
cursorstringNoCollection cursor.
opaque
limitintegerNoPage size.
1 to 500, default 100

Response: 200, 403, 409, 410 with inline { items: [VaultRecord], nextCursor }

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<VaultRecord>YesRecords ordered by rid.
nextCursorstring|nullYesNext page cursor.
null at end

Errors: security.device_not_enrolled, vault.not_initialized, vault.retired_expired

PUT /v1/me/vault/records

Writes 1 to 100 records, each an independent atomic compare-and-set on ver; returns one result per item.

Auth
home session token (Authorization: Bearer) of an active enrolled device; or the bot's token
Caller
client
Idempotency
Compare-and-set per record on ifVer (0 = create; n = replace version n); the stored version becomes ifVer + 1, bound into ct
Secure contexts only
Yes
Specification
08 §8.7.3

Request body: inline { records: [VaultRecordWrite] }

Request fields
NameTypeRequiredMeaning and constraints
recordsarray<VaultRecordWrite>YesRecords to write.
1 to 100 items

Response: 200, 400, 403, 409 with VaultWriteResponse

Response fields
NameTypeRequiredMeaning and constraints
resultsarray<VaultWriteResult>Yes{ rid, ok: true, ver, vseq } or { rid, ok: false, error: problem object }.
one per item, in order
vseqintegerYesVault vseq after the request.

Errors: vault.version_conflict, vault.stale_generation, vault.rotation_required, vault.record_too_large, vault.quota_exceeded, core.invalid_request, vault.not_initialized, security.device_not_enrolled

DELETE /v1/me/vault/records/{rid}

Replaces a record with a tombstone (ver n + 1, new vseq, deleted: true, no ct) if its ver is n.

Auth
home session token (Authorization: Bearer) of an active enrolled device; or the bot's token
Caller
client
Idempotency
Compare-and-set on ifVer
Secure contexts only
Yes
Specification
08 §8.7.4
Path parameters
NameTypeRequiredMeaning and constraints
ridbase64urlYesRecord ID.
16 bytes
Query parameters
NameTypeRequiredMeaning and constraints
ifVerintegerYesCompare-and-set version.
the current ver

Response: 200, 403, 404, 409 with VaultRecord (tombstone)

Errors: vault.version_conflict, core.not_found, security.device_not_enrolled, vault.not_initialized

GET /v1/me/vault/records/{rid}

Reads one vault record; tombstones give 404.

Auth
home session token (Authorization: Bearer) of an active enrolled device; or the bot's token
Caller
client
Idempotency
Safe read
Secure contexts only
Yes
Specification
08 §8.7.2, §8.12
Path parameters
NameTypeRequiredMeaning and constraints
ridbase64urlYesRecord ID.
16 bytes, 22 chars
Query parameters
NameTypeRequiredMeaning and constraints
igenintegerNoRead from a retired vault.
a retired generation

Response: 200, 403, 404, 409, 410 with VaultRecord

Errors: core.not_found, security.device_not_enrolled, vault.not_initialized, vault.retired_expired

09 Communities, membership, channels and security transitions

GET /v1/channels

Every channel the caller can view plus categories; non-members get previewVisible channels; never paginated.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §6.6

Response: 200 with ChannelList

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<Channel>YesViewable channels
bounded by maxChannels
categoriesarray<Category>YesCategories
categories with no viewable channel omitted unless manage_channels
nextCursornullYesNot paginated
always null

POST /v1/channels

Create a text or voice channel (manage_channels); secure channels start with no MLS group.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Idempotency
SHOULD carry Idempotency-Key
Specification
09 §6.4

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
namestringYesChannel display name
display name; local part derived via 01 rules
kindChannelKindYesImmutable kind
text|voice
securityChannelSecurityNoSecurity mode
default insecure on insecure server, secure on secure server; insecure on secure server fails security.server_requires_secure
retentionDaysinteger|nullNoRetention
1-36500 or null; default null
topicstringNoTopic
default ""; Text(1024)
categoryIduuidv7|nullNoCategory
default null; unknown fails channel.category_not_found
positionintegerNoPosition
default last in category; later channels move down by one

Response: 201 with Channel

Errors: core.forbidden, address.*, security.server_requires_secure, channel.category_not_found, channel.limit_reached

DELETE /v1/channels/{id}

Delete a channel: end call, emit channel.deleted, end subscriptions, retire MLS group, release local part, keep 410 tombstone ≥400 days.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §6.4
Path parameters
NameTypeRequiredMeaning and constraints
idstringYesChannel identifier
channel UUIDv7 or full context reference ch:<UUIDv7>; colon may be percent-encoded (ABNF channel-id)

Response: 204

Errors: core.not_found, core.forbidden

GET /v1/channels/{id}

One channel; 410 tombstone (channel.deleted) for at least 400 days after deletion.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §6.4
Path parameters
NameTypeRequiredMeaning and constraints
idstringYesChannel identifier
channel UUIDv7 or full context reference ch:<UUIDv7>; colon may be percent-encoded (ABNF channel-id)

Response: 200, 410 with Channel

Errors: core.not_found, channel.deleted

PATCH /v1/channels/{id}

Variant 1 of 3

Change channel settings (view, then manage_channels); emits channel.updated with changed member names.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Idempotency
ifVersion; upgrade members combined with settings fail core.invalid_request
Specification
09 §6.4
Path parameters
NameTypeRequiredMeaning and constraints
idstringYesChannel identifier
channel UUIDv7 or full context reference ch:<UUIDv7>; colon may be percent-encoded (ABNF channel-id)

Request body: inline (PATCH)

Request fields
NameTypeRequiredMeaning and constraints
namestringNoDisplay name
same derived local part = display change; different = address change (old address reserved 90 days)
topicText(1024)NoTopic
single line
retentionDaysinteger|nullNoRetention
1-36500 or null
categoryIduuidv7|nullNoCategory
positionintegerNoPosition
ifVersionintegerNoOptimistic concurrency

Response: 200 with Channel

Errors: core.not_found, core.forbidden, channel.kind_immutable, channel.version_conflict, core.invalid_request, address.display_name_mismatch, address.too_similar, address.*, channel.category_not_found

Variant 2 of 3

Channel upgrade dry run ({security:secure, dryRun:true}); changes nothing; returns an UpgradePlan. Allowed to an insecure admin.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §10.2
Path parameters
NameTypeRequiredMeaning and constraints
idstringYesChannel identifier
channel UUIDv7 or full context reference ch:<UUIDv7>; colon may be percent-encoded (ABNF channel-id)

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
securitystringYesTarget
secure
dryRunbooleanYesDry run
true
ifVersionintegerNoAs §2

Response: 200 with UpgradePlan

Errors: core.not_found, core.forbidden, channel.already_secure

Variant 3 of 3

Confirm channel upgrade with planVersion and a one-member GroupBootstrap; server performs atomic switch S1-S8, A1-A4 and returns the updated Channel.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Idempotency
Idempotency-Key MUST be present (else 400 core.invalid_request); repeat with same key returns same answer.
Specification
09 §10.4
Path parameters
NameTypeRequiredMeaning and constraints
idstringYesChannel identifier
channel UUIDv7 or full context reference ch:<UUIDv7>; colon may be percent-encoded (ABNF channel-id)

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
securitystringYesTarget; insecure on secure channel fails security.downgrade_forbidden
secure
dryRunbooleanNoDry run
default false
planVersionstringYesPlan version (§10.6)
from the confirmed dry run; missing fails core.invalid_request
deletePreUpgradeHistorybooleanNoDelete pre-upgrade content
default false
bootstrapGroupBootstrapYesCaller's one-member group
13 §7.4: generation, groupInfo, ekid; generation 1 for a first upgrade; missing fails channel.bootstrap_required
ifVersionintegerNoAs §2

Response: 200 with Channel

Errors: core.not_found, core.forbidden, channel.already_secure, security.account_required, security.device_not_enrolled, channel.upgrade_in_progress, core.invalid_request, channel.upgrade_plan_stale, channel.bootstrap_required, mls.group_id_mismatch, mls.credential_rejected, mls.policy_violation, security.downgrade_forbidden

POST /v1/channels/{id}/join

Become a channel member (silent, on first open); runs channel access procedure H1-H7, H9.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Idempotency
Idempotent
Specification
09 §4.5, §9.3
Path parameters
NameTypeRequiredMeaning and constraints
idstringYesChannel identifier
channel UUIDv7 or full context reference ch:<UUIDv7>; colon may be percent-encoded (ABNF channel-id)

Request body: empty JSON object {}

Response: 200 with { member: ChannelMember, channel: Channel }

Errors: core.unauthenticated, security.upgrade_required, core.not_found, channel.deleted, member.pending, moderation.banned, member.not_member, security.account_required, security.device_not_enrolled, federation.home_unreachable, moderation.timed_out, core.forbidden, moderation.new_member_restricted

POST /v1/channels/{id}/leave

Leave the channel; 204 also when not a member.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Idempotency
Idempotent (non-member also 204)
Specification
09 §4.5
Path parameters
NameTypeRequiredMeaning and constraints
idstringYesChannel identifier
channel UUIDv7 or full context reference ch:<UUIDv7>; colon may be percent-encoded (ABNF channel-id)

Response: 204

GET /v1/channels/{id}/members

Collection page of ChannelMember objects for anyone who can view the channel.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Pagination
collection
Specification
09 §4.7
Path parameters
NameTypeRequiredMeaning and constraints
idstringYesChannel identifier
channel UUIDv7 or full context reference ch:<UUIDv7>; colon may be percent-encoded (ABNF channel-id)
Query parameters
NameTypeRequiredMeaning and constraints
statestringNoState filter
subset of active,needs_encryption (default), left needs manage_channels
qstringNoSearch
1-64 characters
cursorstringNoCursor
limitintegerNoPage size

Response: 200 with collection page of ChannelMember

Errors: core.not_found, core.forbidden

GET /v1/channels/{id}/members/{addr}

One ChannelMember record.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §4.7
Path parameters
NameTypeRequiredMeaning and constraints
idstringYesChannel identifier
channel UUIDv7 or full context reference ch:<UUIDv7>; colon may be percent-encoded (ABNF channel-id)
addrstringYesMember's account address
canonical address, percent-encoded UTF-8 (RFC 3986); '@' needn't be encoded; alias of the server's own domains accepted and rewritten

Response: 200 with ChannelMember

Errors: member.not_found, core.not_found

GET /v1/community

Return the public Community object; CORS-enabled.

Auth
none
Caller
client
Rate limit
per IP
Specification
09 §3.5

Response: 200 with Community

PATCH /v1/community

Variant 1 of 3

Change community settings (needs manage_community); returns updated Community and emits community.updated.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Idempotency
PATCH; ifVersion optimistic concurrency. A request combining secure with any setting other than ifVersion fails core.invalid_request. secure:false on an insecure server is a no-op returning the object.
Specification
09 §3.6

Request body: inline (PATCH)

Request fields
NameTypeRequiredMeaning and constraints
nameText(64)NoCommunity name
1-64 scalar values after trimming, single line
descriptionText(1000)NoDescription
multi-line, may be empty
joinPolicyJoinPolicyNoJoin policy (§3.3)
open|invite|request|closed
requireRulesAcceptancebooleanNoRequire rules acceptance to join
rulesTextText(8000)NoCommunity rules
multi-line; change increments rulesVersion
localAccountsAreMembersbooleanNoD-068 toggle
defaultChannelstring|nullNoChannel opened after join
ch: reference of a previewVisible channel, else 404 core.not_found; null resets
ifVersionintegerNoOptimistic concurrency
must equal current version else 409 community.version_conflict

Response: 200 with Community

Errors: core.invalid_request, core.forbidden, community.version_conflict, core.not_found, security.downgrade_forbidden, security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

Variant 2 of 3

Server upgrade dry run ({secure:true, dryRun:true}); changes nothing and returns a ServerUpgradePlan. Needs 10's admin role and a local account.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §11.2

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
securebooleanYesUpgrade target
true
dryRunbooleanYesDry run
true for dry run
ifVersionintegerNoAs §2

Response: 200 with ServerUpgradePlan

Errors: core.forbidden (data.missingRole: "admin"), community.local_admin_required

Variant 3 of 3

Confirm the irreversible server upgrade; server applies T1-T7 and U1-U3 atomically before answering with the Community.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Idempotency
Idempotency-Key MUST be present (else 400 core.invalid_request). Repeat with same key, or confirmation when already secure, answers 200 with the Community.
Specification
09 §11.4

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
securebooleanYesfalse on a secure server fails security.downgrade_forbidden
true
dryRunbooleanNoDry run flag
default false
planVersionstringYesFrom the dry run the admin confirmed
required when dryRun is false; 22-char base64url (§10.6)
confirmDomainstringYesDomain typed/confirmed in W5
required when dryRun is false; must equal canonical domain
deletePreUpgradeHistorybooleanNoDelete pre-upgrade messages of every channel
default false
ifVersionintegerNoAs §2

Response: 200 with Community

Errors: core.invalid_request, core.forbidden (data.missingRole: "admin"), community.local_admin_required, security.account_required, security.device_not_enrolled, community.confirmation_mismatch, community.upgrade_in_progress, community.upgrade_plan_stale, security.downgrade_forbidden

GET /v1/community/categories

List categories as { items, nextCursor: null }.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §6.5

Response: 200 with { items: [Category], nextCursor: null }

Errors: security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

POST /v1/community/categories

Create a category (manage_channels); emits community.layout_changed.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §6.5

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
nameText(100)YesCategory name
1-100 scalar values, single line
positionintegerNoOrder among categories
default last

Response: 201 with Category

Errors: channel.limit_reached, core.forbidden, core.invalid_request, security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

DELETE /v1/community/categories/{id}

Delete a category; its channels become uncategorized, appended in old order after existing uncategorized channels.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §6.5
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesCategory ID

Response: 204

Errors: core.forbidden, security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

PATCH /v1/community/categories/{id}

Rename or reposition a category (manage_channels); emits community.layout_changed.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Idempotency
ifVersion optimistic concurrency
Specification
09 §6.5
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesCategory ID

Request body: inline (PATCH)

Request fields
NameTypeRequiredMeaning and constraints
nameText(100)NoName
1-100
positionintegerNoPosition
ifVersionintegerNoAs §2

Response: 200 with Category

Errors: core.forbidden, core.invalid_request, core.not_found, security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

DELETE /v1/community/icon

Set icon to null (needs manage_community) and emit community.updated.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §3.4

Errors: core.forbidden, security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

GET /v1/community/icon

Return the community icon image bytes with its media type; Cache-Control: public, max-age=86400; CORS.

Auth
none
Caller
browser
Specification
09 §3.4

Response: 200 with binary image (image/png|image/jpeg|image/webp)

PUT /v1/community/icon

Upload a new community icon (raw image body with Content-Type); needs manage_community; returns the updated Community.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §3.4

Request body: raw image bytes (Content-Type image/png|image/jpeg|image/webp), at most maxCommunityIconBytes

Response: 200 with Community

Errors: community.icon_invalid, core.forbidden, security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

POST /v1/community/join

Join the community (local or remote account) through the join-gate procedure C1-C10; also records rules acceptance for existing members.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Rate limit
failed invite-code attempts: 30 per 10 min per IP and per session
Idempotency
Idempotent: an already active/needs_encryption account gets 200 with its existing record; invite not consumed.
Specification
09 §4.3, §9.2

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
invitestringNoInvite code
any accepted input form (§8.2)
acceptRulesintegerNorulesVersion the person accepted
required when requireRulesAcceptance is true; must equal current rulesVersion

Response: 200, 202 with JoinCommunityResponse

Response fields
NameTypeRequiredMeaning and constraints
memberCommunityMemberYesThe record
communityCommunityYesFull Community object
openChannelstring|nullYesInvite's channel if viewable, else defaultChannel
ch: reference
inviteIgnoredstring|nullYesCode of an invalid invite that was ignored (C8)
error code

Errors: core.unauthenticated, security.upgrade_required, moderation.banned, federation errors (06), security.account_required, community.closed, community.invite_required, invite.not_found, invite.expired, invite.used_up, invite.revoked, community.rules_acceptance_required, core.rate_limited

PATCH /v1/community/layout

Replace category and channel order in one step; needs manage_channels over every channel.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §6.5

Request body: LayoutChange

Request fields
NameTypeRequiredMeaning and constraints
categoriesarray<uuidv7>YesCategory order
every category exactly once
channelsarray<{ctx, categoryId}>YesChannel placement
every channel exactly once; order within each category becomes position 0,1,2…

Response: 200

Errors: core.invalid_request, core.forbidden, security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

POST /v1/community/leave

Leave the community or withdraw a pending request; channel memberships go left (community_left) and calls end.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §4.6

Request body: empty

Response: 204

GET /v1/community/members

Collection page of CommunityMember objects ordered by addr byte-wise; caller must be a community member.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Pagination
collection
Specification
09 §4.7
Query parameters
NameTypeRequiredMeaning and constraints
statestringNoState filter
comma-separated subset of active,needs_encryption,pending,banned,left; default active,needs_encryption; pending needs manage_invites, banned needs ban_members, left needs view_audit_log
qstringNoSearch
1-64 characters; minimalPrepare prefix match on local part and display-name words
cursorstringNoPagination cursor (00 §7.10)
limitintegerNoPage size (00 §7.10)

Response: 200 with collection page of CommunityMember

Errors: member.not_member, core.forbidden, security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

GET /v1/community/members/{addr}

One CommunityMember record (caller must be a community member or the account itself).

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §4.7
Path parameters
NameTypeRequiredMeaning and constraints
addrstringYesMember's account address
canonical address, percent-encoded UTF-8 (RFC 3986); '@' needn't be encoded; alias of the server's own domains accepted and rewritten

Response: 200 with CommunityMember

Errors: member.not_found, address.non_canonical, security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

POST /v1/community/members/{addr}/approve

Approve a pending join request (manage_invites; for a bot also manage_bots); record becomes active.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §4.3, §4.4
Path parameters
NameTypeRequiredMeaning and constraints
addrstringYesMember's account address
canonical address, percent-encoded UTF-8 (RFC 3986); '@' needn't be encoded; alias of the server's own domains accepted and rewritten

Response: 200 with CommunityMember

Errors: member.not_pending, core.forbidden, security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

POST /v1/community/members/{addr}/reject

Reject a pending join request; deletes the record and sends member.rejected (reason rejected) to the requester.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §4.3
Path parameters
NameTypeRequiredMeaning and constraints
addrstringYesMember's account address
canonical address, percent-encoded UTF-8 (RFC 3986); '@' needn't be encoded; alias of the server's own domains accepted and rewritten

Response: 204

Errors: member.not_pending, core.forbidden, security.upgrade_required (every /v1/community… endpoint for an upgrade_required account except POST /v1/community/leave)

POST /v1/community/membership-check

Server-to-server check whether addresses are community members, on behalf of one of the caller's own member accounts (used by 12 auto-accept).

Auth
Bearer S2S request token (sv-s2s+jwt)
Caller
server
Rate limit
per peer server; at least 60 requests/min MUST be served, then 429
Specification
09 §5.2

Request body: MembershipCheckRequest

Request fields
NameTypeRequiredMeaning and constraints
onBehalfOfstringYesAsking account
canonical address; its domain must equal the token's iss; must be a community member
onBehalfOfIncstringYesAsking account's incarnation
must equal the member record's inc
addrsarray<string>YesAddresses to check
1-20 canonical addresses

Response: 200 with MembershipCheckResponse

Response fields
NameTypeRequiredMeaning and constraints
resultsarray<MembershipCheckResult>YesOne result per address
in request order

Errors: member.not_member, core.rate_limited

GET /v1/invites

Collection page of invites: all for manage_invites holders, otherwise the caller's own (needs community-level create_invites).

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Pagination
collection
Specification
09 §8.3
Query parameters
NameTypeRequiredMeaning and constraints
statestringNoInvite state filter (values not specified)
cursorstringNoCursor
limitintegerNoPage size

Response: 200 with collection page of Invite

Errors: core.forbidden

POST /v1/invites

Create an invite (create_invites in the target channel, defaultChannel, or community level); emits invite.created.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §8.3

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
channelstring|nullNoChannel to open after join
default null; must be viewable by creator else 404 core.not_found
maxAgeMsinteger|nullNoLifetime
default 604800000 (7 d); 300000-31536000000, or null (never; needs manage_invites)
maxUsesinteger|nullNoUse limit
default null; 1-10000
allowSignUpbooleanNoCan be used for sign-up
default true; false needs manage_invites

Response: 201 with Invite

Errors: invite.not_allowed, invite.limit_reached, core.not_found, core.forbidden

DELETE /v1/invites/{code}

Revoke an invite (creator or manage_invites); returns the Invite with state revoked.

Auth
Session (home session, remote session (06) or bot token)
Caller
client
Specification
09 §8.3
Path parameters
NameTypeRequiredMeaning and constraints
codestringYesInvite code
any accepted input form; normalized per §8.2

Response: 200 with Invite

Errors: core.forbidden, invite.not_found

GET /v1/invites/{code}

Unauthenticated public preview of an invite: community public data, one channel's name and security, creator.

Auth
none
Caller
client
Rate limit
failed code attempts: 30 per 10 min per IP and per session
Specification
09 §8.4
Path parameters
NameTypeRequiredMeaning and constraints
codestringYesInvite code
any accepted input form; normalized per §8.2

Response: 200 with InvitePreview

Errors: invite.not_found, invite.expired, invite.used_up, invite.revoked, core.rate_limited

GET /v1/me/communities

The account's community list at its home server, ordered by position.

Auth
Session (home session only; bots MAY use)
Caller
client
Specification
09 §5.1

Response: 200 with { items: [CommunityListEntry], nextCursor: null }

PATCH /v1/me/communities

Reorder the community list; order lists every domain once.

Auth
Session (home session only; bots MAY use)
Caller
client
Specification
09 §5.1

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
orderarray<string>YesNew order
every domain exactly once

Response: 200 with { items: [CommunityListEntry], nextCursor: null }

DELETE /v1/me/communities/{domain}

Remove a community list entry.

Auth
Session (home session only; bots MAY use)
Caller
client
Specification
09 §5.1
Path parameters
NameTypeRequiredMeaning and constraints
domainstringYesCommunity list entry key
canonical domain; non-canonical may fail with address.non_canonical

Response: 204

Errors: core.invalid_request (on the local:true entry), address.non_canonical

PUT /v1/me/communities/{domain}

Add or update a community list entry; client MUST call after a join returning 200 or 202.

Auth
Session (home session only; bots MAY use)
Caller
client
Idempotency
PUT (idempotent)
Specification
09 §5.1
Path parameters
NameTypeRequiredMeaning and constraints
domainstringYesCommunity list entry key
canonical domain; non-canonical may fail with address.non_canonical

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
namestringYesCached name
at most 64 scalar values
iconUrlstring|nullYesCached icon URL
securebooleanYesCached secure flag
statestringYesCached membership state
active|pending|needs_encryption
positionintegerNoSidebar position
default last

Response: 200 with CommunityListEntry

Errors: core.invalid_request (on the local:true entry), address.non_canonical, community.list_full

10 Roles, permissions, moderation and reports

GET /v1/audit-log

Read the audit log, newest first by seq.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Pagination
collection
Specification
10 §11.4
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoCursor from nextCursor (00 §7.10)
opaque
limitintegerNoPage size
1–100, default 50
actionstringNoFilter
actorstringNoFilter
targetAddressstringNoFilter
targetTypestringNoFilter
ctxstringNoFilter
reportIdstringNoFilter
sincetimestampNoFilter
untiltimestampNoFilter

Response: 200 with {items: [AuditLogEntry], nextCursor, retentionDays}

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<AuditLogEntry>YesEntries
nextCursorstring|nullYesCursor
retentionDaysintegerYesRetention

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.forbidden

GET /v1/bans

List bans, newest first (server-scope only for admins).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Pagination
collection
Specification
10 §9.6
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoCursor from nextCursor (00 §7.10)
opaque
limitintegerNoPage size
targetTypeenum BanTargetTypeNoFilter
scopeenum BanScopeNoFilter
addressstringNoFilter
domainstringNoFilter

Response: 200 with {items: [Ban], nextCursor}

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.forbidden

POST /v1/bans

Ban an address or domain (scope community or server).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Idempotency
Idempotency-Key REQUIRED; retry returns 200 with the existing Ban; an active ban of same target+scope with a different body is updated in place (same id, ban_updated audit) and answered 200
Specification
10 §9.6

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
addressstringNoAddress target
exactly one of address/domain; any form canonicalize() accepts
domainstringNoDomain target
exactly one of address/domain; not the server's own domains
scopeenum BanScopeNoScope
default community; server only for address and admins
durationMsintegerNoDuration
≥ 3,600,000; absent = permanent
deleteMessagesWithinMsintegerNoDelete recent messages in every channel
absent or 0 = none; else 60,000–604,800,000
reasonstringNoStored in the audit log; shown to the target only if showReason is true
0–512 Unicode scalar values
showReasonbooleanNoWhether the target sees reason
default false
reportIduuidv7NoLinks the audit entry to a report; added to report.actions if the report is open or in_review

Response: 201, 200 with Ban

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, moderation.timed_out, core.forbidden, moderation.target_protected, moderation.self_target, moderation.invalid_target, moderation.invalid_duration, core.invalid_request, core.rate_limited

DELETE /v1/bans/{banId}

Lift a ban early (membership becomes left, reason unbanned).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Specification
10 §9.5, §9.6
Path parameters
NameTypeRequiredMeaning and constraints
banIduuidv7YesBan ID

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, moderation.timed_out, core.forbidden, moderation.ban_not_found, core.rate_limited

GET /v1/bans/{banId}

Read one ban.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §9.6
Path parameters
NameTypeRequiredMeaning and constraints
banIduuidv7YesBan ID

Response: 200 with Ban

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.forbidden, moderation.ban_not_found

PATCH /v1/bans/{banId}

Change a ban's reason, showReason or expiresAt.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Specification
10 §9.6
Path parameters
NameTypeRequiredMeaning and constraints
banIduuidv7YesBan ID

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
reasonstringNoReason
0–512
showReasonbooleanNoShow reason to target
expiresAttimestamp|nullNoNew end
≥ 1 h after createdAt; null = permanent

Response: with Ban (not stated)

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, moderation.timed_out, core.forbidden, moderation.ban_not_found, core.rate_limited

POST /v1/moderation/kicks

Kick a member (membership becomes left, reason kicked), optionally deleting recent messages.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Idempotency
Idempotency-Key REQUIRED; a kick of a target already left with reason kicked within 60 s returns 200 with that kick's auditId (§8.2 rule 6)
Specification
10 §8.4

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
memberstringYesTarget
canonical address
deleteMessagesWithinMsintegerNoAlso delete recent messages
absent or 0 = none; else 60,000–604,800,000
reasonstringNoStored in the audit log; shown to the target only if showReason is true
0–512 Unicode scalar values
showReasonbooleanNoWhether the target sees reason
default false
reportIduuidv7NoLinks the audit entry to a report; added to report.actions if the report is open or in_review

Response: 200 with {auditId}

Response fields
NameTypeRequiredMeaning and constraints
auditIduuidv7YesPrimary audit entry

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, moderation.timed_out, core.forbidden, moderation.target_protected, moderation.self_target, moderation.not_member, moderation.invalid_duration, core.rate_limited

GET /v1/moderation/members/{address}

One member's moderation status, filtered by the caller's permissions.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §8.9
Path parameters
NameTypeRequiredMeaning and constraints
addressstringYesMember address
Canonical address, non-ASCII percent-encoded as UTF-8 (RFC 3986); server rewrites its own alias domains, other non-canonical forms fail address.non_canonical; me means the caller

Response: 200 with ModerationStatus (unnamed in spec)

Response fields
NameTypeRequiredMeaning and constraints
addressstringYesCanonical address
timeoutTimeout|nullNoActive timeout
needs timeout_members
serverMuteServerMute|nullNoActive server mute
needs mute_members
banBan|nullNoActive ban
needs ban_members
openReportsintegerNoOpen reports
needs manage_reports; only reports the caller can see, never about the caller
joinedAttimestampYesJoin time

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.forbidden

POST /v1/moderation/message-deletions

Moderator-delete messages by ID, or a member's recent messages (optionally across all channels).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Idempotency
Idempotency-Key REQUIRED (kept ≥ 24 h); without a key an identical body for a still-in-force action returns the existing result with 200 (§8.2 rule 6)
Specification
10 §8.3

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
ctxstringNoContext
Required unless author is given with allChannels: true; DM/group DM needs admin
midsarray<uuidv7>NoMessage IDs in ctx
1–100; one of mids or author
authorstringNoAuthor whose recent messages are deleted
canonical address; one of mids or author
withinMsintegerNoWindow before now
With author; 60,000–604,800,000
allChannelsbooleanNoEvery channel the actor has manage_messages in
With author; default false
reasonstringNoStored in the audit log; shown to the target only if showReason is true
0–512 Unicode scalar values
showReasonbooleanNoWhether the target sees reason
default false
reportIduuidv7NoLinks the audit entry to a report; added to report.actions if the report is open or in_review

Response: 200 with inline

Response fields
NameTypeRequiredMeaning and constraints
deletedarray<uuidv7>YesDeleted mids
notFoundarray<uuidv7>YesUnknown mids
protectedarray<uuidv7>YesSkipped because author top ≥ actor top
morebooleanYesRepeat the request if true
author mode processes at most 10,000 per request
auditIduuidv7YesPrimary audit entry

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.not_found, moderation.timed_out, core.forbidden, moderation.target_protected, moderation.self_target, moderation.invalid_duration, core.invalid_request, core.rate_limited

GET /v1/moderation/policy

Read the AntiSpamPolicy, slowMode filtered to channels the caller can view.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §12.2

Response: 200 with AntiSpamPolicy

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned

PATCH /v1/moderation/policy

JSON Merge Patch the AntiSpamPolicy.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §12.2

Request body: JSON Merge Patch of AntiSpamPolicy (application/merge-patch+json or application/json)

Request fields
NameTypeRequiredMeaning and constraints
ifVersionintegerNoConditional; mismatch gives 409 moderation.version_conflict

Response: 200 with AntiSpamPolicy

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, moderation.timed_out, core.forbidden, moderation.version_conflict, core.invalid_request, core.rate_limited

GET /v1/moderation/server-mutes

List current server mutes; any member may list them (reason filtered).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Pagination
collection
Specification
10 §8.6
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoCursor from nextCursor (00 §7.10)
opaque
limitintegerNoPage size

Response: 200 with {items: [ServerMute], nextCursor}

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned

POST /v1/moderation/server-mutes

Apply or replace a community-wide server mute (audio only).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Idempotency
Idempotency-Key REQUIRED (§8.2 rule 6)
Specification
10 §8.6

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
memberstringYesTarget
canonical address
durationMsintegerNoDuration
60,000–2,419,200,000; absent = until lifted
reasonstringNoStored in the audit log; shown to the target only if showReason is true
0–512 Unicode scalar values
showReasonbooleanNoWhether the target sees reason
default false
reportIduuidv7NoLinks the audit entry to a report; added to report.actions if the report is open or in_review

Response: with ServerMute (status not stated)

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, moderation.timed_out, core.forbidden, moderation.target_protected, moderation.self_target, moderation.not_member, moderation.invalid_duration, core.rate_limited

DELETE /v1/moderation/server-mutes/{address}

Lift a server mute.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Specification
10 §8.6
Path parameters
NameTypeRequiredMeaning and constraints
addressstringYesMember address
Canonical address, non-ASCII percent-encoded as UTF-8 (RFC 3986); server rewrites its own alias domains, other non-canonical forms fail address.non_canonical; me means the caller

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, moderation.timed_out, core.forbidden, moderation.target_protected, core.rate_limited

GET /v1/moderation/server-mutes/{address}

Read one server mute.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §8.6
Path parameters
NameTypeRequiredMeaning and constraints
addressstringYesMember address
Canonical address, non-ASCII percent-encoded as UTF-8 (RFC 3986); server rewrites its own alias domains, other non-canonical forms fail address.non_canonical; me means the caller

Response: 200 with ServerMute

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned

GET /v1/moderation/timeouts

List active timeouts.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Pagination
collection
Specification
10 §8.5
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoCursor from nextCursor (00 §7.10)
opaque
limitintegerNoPage size

Response: 200 with {items: [Timeout], nextCursor}

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.forbidden

POST /v1/moderation/timeouts

Apply or replace a member's timeout.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Idempotency
Idempotency-Key REQUIRED; same body for an in-force timeout returns it with 200 (until not compared); a different body replaces it (§8.2 rule 6, §8.5)
Specification
10 §8.5

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
memberstringYesTarget
canonical address
durationMsintegerYesDuration
60,000–2,419,200,000 (1 min–28 days)
reasonstringNoStored in the audit log; shown to the target only if showReason is true
0–512 Unicode scalar values
showReasonbooleanNoWhether the target sees reason
default false
reportIduuidv7NoLinks the audit entry to a report; added to report.actions if the report is open or in_review

Response: with Timeout (status not stated; 200 with existing object on retry)

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, moderation.timed_out, core.forbidden, moderation.target_protected, moderation.self_target, moderation.not_member, moderation.invalid_duration, core.rate_limited

DELETE /v1/moderation/timeouts/{address}

Lift a timeout early.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Specification
10 §8.5
Path parameters
NameTypeRequiredMeaning and constraints
addressstringYesMember address
Canonical address, non-ASCII percent-encoded as UTF-8 (RFC 3986); server rewrites its own alias domains, other non-canonical forms fail address.non_canonical; me means the caller

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, moderation.timed_out, core.forbidden, moderation.target_protected, core.rate_limited

GET /v1/moderation/timeouts/{address}

Read one timeout (the target may read their own).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §8.5
Path parameters
NameTypeRequiredMeaning and constraints
addressstringYesMember address
Canonical address, non-ASCII percent-encoded as UTF-8 (RFC 3986); server rewrites its own alias domains, other non-canonical forms fail address.non_canonical; me means the caller

Response: 200 with Timeout

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.forbidden

GET /v1/reports

Variant 1 of 2

Report queue: reports the caller can see, oldest open first.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Pagination
collection
Specification
10 §10.8
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoCursor from nextCursor (00 §7.10)
opaque
limitintegerNoPage size
statusenum ReportStatusNoFilter
ctxstringNoFilter
targetstringNoFilter
categoryenum ReportCategoryNoFilter
originenum ReportOriginNoFilter
assigneestringNoFilter

Response: 200 with {items: [Report], nextCursor}

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.forbidden

Variant 2 of 2

The caller's own reports (reporter view), newest first; spec writes it as GET /v1/reports?mine=true.

Auth
any session (home or remote session, Bearer access token)
Caller
client
Pagination
collection
Specification
10 §10.8
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoCursor from nextCursor (00 §7.10)
opaque
minebooleanYesSelect own reports
must be true
limitintegerNoPage size

Response: 200 with {items: [ReporterView], nextCursor}

Errors: core.unauthenticated, core.token_expired, security.upgrade_required

POST /v1/reports

File a report at the hosting server (or at the reporter's home server for §10.10 cases).

Auth
home or remote session (Bearer access token); §10.4 step 1 authorizes (home session at the reporter's home server for §10.10 reports)
Caller
client
Rate limit
Report filing: 20 per hour and 100 per day per reporter (§12.1)
Idempotency
None stated by 10; duplicate detection answers 409 report.duplicate with data.reportId (§10.4 step 3)
Specification
10 §10.3, §10.4

Request body: ReportRequest (inline)

Request fields
NameTypeRequiredMeaning and constraints
ctxstring|nullYesContext, or null for a member report outside any context
hoststringNoCanonical domain of the hosting server
For §10.10 reports; hosting server ignores it
requestIdstringNoMessage request ID (12)
For a message-request report
kindenum ReportKindYesmessages or member
categoryenum ReportCategoryYesCategory
unknown values rejected with core.invalid_request
targetstringNoCanonical address
For member reports and §10.10 reports; else taken from items
didstringNoUnknown device ID
Only kind member + category impersonation
notestringNoReporter's note
0–1,000 Unicode scalar values
routingenum ReportRoutingNoadmins = server admins only
default moderators
includeContextbooleanNoSurrounding messages included
default true
allowForwardbooleanNoAllow forwarding to target's home server
default true
itemsarray<ReportItemRequest>NoItems: {mid, role, kMsg?, sealed?, credential? (§10.10 only), attachments?: [{attachmentId, fileKey?}]}
Required for messages; 1 to maxReportItems reported, ≤10 context before and ≤10 after

Response: 201 with Report (reporter view)

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, core.forbidden, core.invalid_request, report.invalid_items, report.too_many_items, report.duplicate, report.unverifiable, core.rate_limited

DELETE /v1/reports/{id}

Withdraw one's own open report with no linked actions.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §10.6, §10.8
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesReport ID

Errors: core.unauthenticated, core.token_expired, report.not_found, report.status_conflict

GET /v1/reports/{id}

Moderator view (evidence withheld unless secure account on enrolled device for secure contexts), or reporter view for the reporter.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §10.8
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesReport ID

Response: 200 with Report | ReporterView

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, report.not_found

PATCH /v1/reports/{id}

Change status, resolution, resolutionNote, assignee, and (admins) preserveEvidence.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §10.6, §10.8
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesReport ID

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
statusenum ReportStatusNoNew status
transitions per §10.6
resolutionenum ReportResolutionNoResolution
with resolved
resolutionNotestring|nullNoInternal note
0–2,000 characters
assigneestring|nullNoModerator
preserveEvidencebooleanNoLegal hold
admins only
ifVersionintegerNoMismatch: 409 report.version_conflict

Response: with Report (not stated)

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, report.not_found, report.status_conflict, report.version_conflict, core.forbidden, moderation.timed_out

GET /v1/reports/{id}/attachments/{attachmentId}

Download an evidence attachment blob (encrypted in secure contexts; decrypt with the item's fileKey).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §10.8
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesReport ID
attachmentIdstringYesAttachment ID

Response: 200 with binary blob

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, report.not_found, security.account_required, security.device_not_enrolled

GET /v1/reports/{id}/evidence/{mid}

S2S: one reported item's full evidence for a forwarded report. Allowed only for an S2S token whose iss is in the report's forwardedTo, for 30 days after forwarding.

Auth
S2S token (06) whose iss is a domain in the report's forwardedTo, for 30 days after forwarding (06 §8.1)
Caller
server
Specification
10 §10.8, §10.9
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesReport ID
miduuidv7YesMessage ID of a reported item

Response: 200 with ReportItem

GET /v1/reports/{id}/evidence/{mid}/attachments/{attachmentId}

S2S: evidence attachment blob of a reported item, as stored. Allowed only for an S2S token whose iss is in the report's forwardedTo, for 30 days after forwarding.

Auth
S2S token (06) whose iss is a domain in the report's forwardedTo, for 30 days after forwarding (06 §8.1)
Caller
server
Specification
10 §10.8, §10.9
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesReport ID
miduuidv7YesMessage ID of a reported item
attachmentIdstringYesAttachment ID

Response: 200 with binary blob

POST /v1/reports/{id}/forward

Admin forwards a report to the target's home server (empty body).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §10.8, §10.9
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesReport ID

Response: 202 with {forwardedTo: [domain]}

Response fields
NameTypeRequiredMeaning and constraints
forwardedToarray<string>YesDomains forwarded to

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, report.not_found, report.not_forwardable, core.forbidden

GET /v1/roles

List the community's roles, ordered by position ascending.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Pagination
collection
Specification
10 §7.2
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoCursor from nextCursor (00 §7.10)
opaque
limitintegerNoPage size; one page normally holds every role
1–250, default 250

Response: 200 with {items: [Role], nextCursor}

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<Role>YesRoles
nextCursorstring|nullYesnull at end

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned

POST /v1/roles

Create an ordinary role below the actor's top position.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Specification
10 §7.3

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
namestringYesRole name
1–40 Unicode scalar values after NFC; see Role.name
permissionsarray<Permission>NoPermission names; each must be held by the actor (§4.3 rule 2)
colorstring|nullNoColour
#rrggbb lowercase
showSeparatelybooleanNoGroup holders under own heading
default false
positionintegerNoPosition
default 1; MUST be below top(actor)

Response: 201 with Role

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, moderation.timed_out, core.forbidden, role.hierarchy, permission.not_held, permission.unknown, role.name_invalid, role.name_taken, role.limit_reached, core.rate_limited

DELETE /v1/roles/{roleId}

Delete an ordinary role; holders lose it, its overwrites are deleted, positions renumbered.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Specification
10 §7.3
Path parameters
NameTypeRequiredMeaning and constraints
roleIduuidv7YesRole ID
UUIDv7; literal segments reorder/members/overwrites can't collide

Response: 204

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, role.not_found, moderation.timed_out, core.forbidden, role.hierarchy, role.system_role, core.rate_limited

GET /v1/roles/{roleId}

Get one role.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §7.1
Path parameters
NameTypeRequiredMeaning and constraints
roleIduuidv7YesRole ID
UUIDv7; literal segments reorder/members/overwrites can't collide

Response: 200 with Role

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, role.not_found

PATCH /v1/roles/{roleId}

Edit a role's name, colour, showSeparately or permissions (replace or add/remove form), optionally conditional on version.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Specification
10 §7.3
Path parameters
NameTypeRequiredMeaning and constraints
roleIduuidv7YesRole ID
UUIDv7; literal segments reorder/members/overwrites can't collide

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
namestringNoNew name
Role.name rules
colorstring|nullNoNew colour
#rrggbb lowercase
showSeparatelybooleanNoNew value
permissionsarray<Permission>NoReplace the whole list
MUST NOT be combined with addPermissions/removePermissions; every name added or removed must satisfy §4.3 rule 2
addPermissionsarray<Permission>NoAdd these (preferred form; preserves unknown names)
No name in both add and remove
removePermissionsarray<Permission>NoRemove these
No name in both add and remove
ifVersionintegerNoConditional edit; mismatch gives 409 role.version_conflict

Response: 200 with Role

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, role.not_found, moderation.timed_out, core.forbidden, role.hierarchy, permission.not_held, permission.unknown, role.system_role, role.version_conflict, role.name_invalid, role.name_taken, core.invalid_request, core.rate_limited

GET /v1/roles/{roleId}/members

List a role's holders (cursor-paged).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Pagination
collection
Specification
10 §7.1
Path parameters
NameTypeRequiredMeaning and constraints
roleIduuidv7YesRole ID
UUIDv7; literal segments reorder/members/overwrites can't collide
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoCursor from nextCursor (00 §7.10)
opaque
limitintegerNoPage size (range not stated in 10)

Response: 200

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, role.not_found

DELETE /v1/roles/{roleId}/members/{address}

Remove a role from a member, or step down from one's own role.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Idempotency
Idempotent; role.member_removed only if the role was held (§7.4)
Specification
10 §7.4
Path parameters
NameTypeRequiredMeaning and constraints
roleIduuidv7YesRole ID
UUIDv7; literal segments reorder/members/overwrites can't collide
addressstringYesMember address
Canonical address, non-ASCII percent-encoded as UTF-8 (RFC 3986); server rewrites its own alias domains, other non-canonical forms fail address.non_canonical; me means the caller

Response: 204

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, role.not_found, moderation.timed_out, core.forbidden, role.hierarchy, role.last_admin, role.system_role, core.rate_limited

PUT /v1/roles/{roleId}/members/{address}

Grant a role to a member (empty body); idempotent.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Idempotency
Idempotent: granting a held role returns the same 200 response with no event (§7.4)
Specification
10 §7.4
Path parameters
NameTypeRequiredMeaning and constraints
roleIduuidv7YesRole ID
UUIDv7; literal segments reorder/members/overwrites can't collide
addressstringYesMember address
Canonical address, non-ASCII percent-encoded as UTF-8 (RFC 3986); server rewrites its own alias domains, other non-canonical forms fail address.non_canonical; me means the caller

Response: 200 with {address, roleIds}

Response fields
NameTypeRequiredMeaning and constraints
addressstringYesCanonical address
roleIdsarray<uuidv7>YesRoles held
position descending

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, role.not_found, moderation.timed_out, core.forbidden, role.hierarchy, permission.not_held, moderation.not_member, role.limit_reached, role.system_role, address.non_canonical, core.rate_limited

GET /v1/roles/members/{address}

A member's roles, top position and effective permissions (optionally in one channel).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §7.2
Path parameters
NameTypeRequiredMeaning and constraints
addressstringYesMember address
Canonical address, non-ASCII percent-encoded as UTF-8 (RFC 3986); server rewrites its own alias domains, other non-canonical forms fail address.non_canonical; me means the caller
Query parameters
NameTypeRequiredMeaning and constraints
ctxstringNoAlso return channelPermissions for this channel
ch:…

Response: 200 with MemberRoles (unnamed in spec)

Response fields
NameTypeRequiredMeaning and constraints
addressstringYesCanonical address
roleIdsarray<uuidv7>YesOrdinary and admin roles held
position descending; everyone not listed
topintegerYesTop position
permissionsarray<Permission>YesEffective community permissions
channelPermissionsarray<Permission>NoEffective permissions in ctx
only when ctx given
timeoutUntiltimestamp|nullNoTimeout end
only to the member themself or holders of timeout_members

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.not_found, address.non_canonical

GET /v1/roles/overwrites/{ctx}

List a channel's permission overwrites (not paged).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Specification
10 §7.5
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesChannel
Channel context reference ch:…; colon may be percent-encoded

Response: 200 with {items: [PermissionOverwrite]}

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.not_found

DELETE /v1/roles/overwrites/{ctx}/member/{address}

Remove a member overwrite (mute_members suffices if only speak_and_share differs).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Specification
10 §7.1, §5.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesChannel
Channel context reference ch:…; colon may be percent-encoded
addressstringYesMember address
Canonical address, non-ASCII percent-encoded as UTF-8 (RFC 3986); server rewrites its own alias domains, other non-canonical forms fail address.non_canonical; me means the caller

Response: 204

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.not_found, moderation.timed_out, core.forbidden, role.hierarchy, core.rate_limited

PUT /v1/roles/overwrites/{ctx}/member/{address}

Set (replace) a member's overwrite in a channel; mute_members suffices for a speak_and_share-only change.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Idempotency
PUT replaces the overwrite
Specification
10 §7.5, §5.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesChannel
Channel context reference ch:…; colon may be percent-encoded
addressstringYesMember address
Canonical address, non-ASCII percent-encoded as UTF-8 (RFC 3986); server rewrites its own alias domains, other non-canonical forms fail address.non_canonical; me means the caller

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
allowarray<Permission>YesGranted
channel-scoped only; disjoint from deny
denyarray<Permission>YesRemoved
channel-scoped only; disjoint from allow

Response: 200, 204 with PermissionOverwrite

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.not_found, moderation.timed_out, core.forbidden, permission.not_overwritable, permission.unknown, permission.not_held, role.hierarchy, permission.overwrite_limit, core.invalid_request, address.non_canonical, core.rate_limited

DELETE /v1/roles/overwrites/{ctx}/role/{roleId}

Remove a role overwrite.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Specification
10 §7.1
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesChannel
Channel context reference ch:…; colon may be percent-encoded
roleIduuidv7YesRole ID
UUIDv7; literal segments reorder/members/overwrites can't collide

Response: 204

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.not_found, moderation.timed_out, core.forbidden, role.hierarchy, core.rate_limited

PUT /v1/roles/overwrites/{ctx}/role/{roleId}

Set (replace) a role's overwrite in a channel; empty lists delete it.

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Idempotency
PUT replaces the overwrite
Specification
10 §7.5
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesChannel
Channel context reference ch:…; colon may be percent-encoded
roleIduuidv7YesRole ID
UUIDv7; literal segments reorder/members/overwrites can't collide

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
allowarray<Permission>YesGranted
channel-scoped only; disjoint from deny
denyarray<Permission>YesRemoved
channel-scoped only; disjoint from allow

Response: 200, 204 with PermissionOverwrite

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, core.not_found, moderation.timed_out, core.forbidden, permission.not_overwritable, permission.unknown, permission.not_held, role.hierarchy, permission.overwrite_limit, core.invalid_request, core.rate_limited

POST /v1/roles/reorder

Reorder all ordinary roles (lowest to highest).

Auth
home or remote session (Bearer access token, 03/06) of an active or needs_encryption member (§7)
Caller
client
Rate limit
Role, overwrite and moderation requests: 60 per minute per actor (§12.1)
Specification
10 §7.3

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
orderarray<uuidv7>YesNew order
Every ordinary role exactly once, lowest to highest

Response: 200 with {items: [Role]}

Errors: core.unauthenticated, core.token_expired, security.upgrade_required, moderation.banned, moderation.timed_out, core.forbidden, core.conflict, role.hierarchy, core.rate_limited

11 Messages, attachments, read state and presence

POST /v1/contexts/{ctx}/attachments

Create a pending upload and get upload instructions; requires attach_files and posting access.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Rate limit
RECOMMENDED 30 upload creations per min per account per server; at most 50 pending/uploaded per account per server; RECOMMENDED 2 GiB per account per server per 24 h
Specification
11 §14.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller

Request body: AttachmentCreateRequest

Request fields
NameTypeRequiredMeaning and constraints
purposeAttachmentPurposeNofile or thumbnail.
default file; MUST be file in a secure context (thumbnail refused 400 core.invalid_request)
blobBytesintegerYesSize of the blob to upload.
limits of §14.6
mimestringYesMedia type.
secure: MUST be application/octet-stream
sha256base64urlYesSHA-256 of the blob bytes.

Response: 201 with AttachmentCreateResponse

Response fields
NameTypeRequiredMeaning and constraints
attachmentAttachmentYesThe new object.
state pending
uploadUploadInstructionsYesWhere and how to send the bytes.

Errors: core.invalid_request, core.not_found, core.forbidden, attachment.too_large, crypto.malformed, attachment.quota_exceeded, core.rate_limited, member.not_member, member.pending, moderation.banned, moderation.timed_out, moderation.new_member_restricted, security.account_required, security.device_not_enrolled, channel.join_required, dm.closed, dm.encryption_pending, dm.upgrade_in_progress, core.unauthenticated, core.token_expired, security.upgrade_required, dm.not_participant

DELETE /v1/contexts/{ctx}/attachments/{id}

Uploader cancels a pending or uploaded attachment; bound attachments can't be deleted this way.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Specification
11 §14.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
iduuidv7YesAttachment ID.
server-generated Attachment ID

Response: 204

Errors: attachment.already_bound, attachment.not_found

GET /v1/contexts/{ctx}/attachments/{id}

Return the Attachment object (bound: anyone who can see the message; pending/uploaded: uploader only).

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Specification
11 §14.4
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
iduuidv7YesAttachment ID.
server-generated Attachment ID

Response: 200 with Attachment

Response fields
NameTypeRequiredMeaning and constraints
iduuidv7YesAttachment ID.
server-generated
ctxstringYesContext uploaded to.
can be bound only to an entry in this context
purposeAttachmentPurposeYesPurpose.
file or thumbnail; always file in secure contexts; unknown treated as file
stateAttachmentStateYespending, uploaded, bound or deleted.
unknown treated as deleted
blobBytesintegerYesExact blob size.
mimestringYesDeclared media type.
secure: always application/octet-stream
sha256base64urlYesSHA-256 of the blob bytes.
uploaderstring (canonical address)YesUploading account.
createdAttimestampYesWhen the upload was created.
expiresAttimestamp|nullYesExpiry if not bound.
createdAt + 24 h while pending/uploaded; otherwise null
miduuidv7|nullYesRoot message it is bound to.
set when bound

Errors: attachment.not_found

POST /v1/contexts/{ctx}/attachments/{id}/complete

Verify stored blob length and SHA-256; state becomes uploaded and the Attachment is returned; repeat on uploaded returns it unchanged.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Idempotency
Completing an uploaded attachment again returns it unchanged.
Specification
11 §14.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
iduuidv7YesAttachment ID.
server-generated Attachment ID

Response: with Attachment

Response fields
NameTypeRequiredMeaning and constraints
iduuidv7YesAttachment ID.
server-generated
ctxstringYesContext uploaded to.
can be bound only to an entry in this context
purposeAttachmentPurposeYesPurpose.
file or thumbnail; always file in secure contexts; unknown treated as file
stateAttachmentStateYespending, uploaded, bound or deleted.
unknown treated as deleted
blobBytesintegerYesExact blob size.
mimestringYesDeclared media type.
secure: always application/octet-stream
sha256base64urlYesSHA-256 of the blob bytes.
uploaderstring (canonical address)YesUploading account.
createdAttimestampYesWhen the upload was created.
expiresAttimestamp|nullYesExpiry if not bound.
createdAt + 24 h while pending/uploaded; otherwise null
miduuidv7|nullYesRoot message it is bound to.
set when bound

Errors: attachment.size_mismatch, attachment.hash_mismatch, crypto.malformed, attachment.blocked, attachment.not_found

GET /v1/contexts/{ctx}/attachments/{id}/content

Download the blob: 200 with the bytes (single-range Range supported, ETag = quoted sha256 SHOULD) or 302/307 to a short-lived capability URL needing no Authorization.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Specification
11 §14.4
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
iduuidv7YesAttachment ID.
server-generated Attachment ID

Response: 200, 302, 307 with binary blob

Errors: attachment.not_found

PUT /v1/contexts/{ctx}/attachments/{id}/content

Upload the blob bytes (Content-Type application/octet-stream, Content-Length blobBytes, plus upload.headers). Not resumable. The server's own endpoint accepts only the uploader's session and answers 204; the refusal code is not stated.

Auth
Bearer <session token> (uploader's session only); a pre-signed upload.url outside {base}/ takes no Authorization
Caller
client
Specification
11 §14.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
iduuidv7YesAttachment ID.
server-generated Attachment ID

Request body: binary blob

Response: 204

GET /v1/contexts/{ctx}/messages

Page the timeline by seq (before/after/around/newest) or read the changes feed (changedAfter/through).

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Pagination
timeline
Specification
11 §7.1, §7.4
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
Query parameters
NameTypeRequiredMeaning and constraints
beforeintegerNoNewest limit items with seq < before.
>= 1; mutually exclusive with after/around/changedAfter
afterintegerNoOldest limit items with seq > after.
>= 0
aroundintegerNoUp to floor(limit/2) items before, the item at around, rest after.
>= 1
changedAfterintegerNoChanges feed: items with updatedSeq > changedAfter (§7.4).
>= 0
throughintegerNoRestrict changes feed to items with seq <= through.
>= 0; only with changedAfter
limitintegerNoPage size.
1-100, default 50

Response: 200 with MessagePage

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<Message|SystemItem>YesVisible timeline items, including tombstones, excluding expired/purged.
ascending seq (ascending updatedSeq for changedAfter); every item has type
hasMorebooleanYesbefore/newest: older exist; after/changedAfter: newer exist; around: hasMoreBefore or hasMoreAfter.
hasMoreBeforebooleanNoOlder items exist.
only for around
hasMoreAfterbooleanNoNewer items exist.
only for around
headSeqintegerYesContext's latest seq (any durable event) when read.
rangesarray<[integer, integer|null]>Yesseq ranges the caller may read.
ascending, merged; null end = open; [] if none
grantsarray<[integer, integer]>Yesseq ranges of caller's VisibilityGrants (14); only sealed items served inside.
ascending, merged; [] if none; always [] in insecure contexts
withheldBeforeSeqinteger|nullYesvisibleFromSeq when earlier content items exist that aren't served; client shows K6 there.
secure only; null otherwise
purgedThroughSeqintegerYesEvery root message with seq <= this has been purged.
0 if none

Errors: core.invalid_request, core.not_found, message.changes_expired

POST /v1/contexts/{ctx}/messages

Post any timeline entry (message, edit, reaction, delete) in either mode; sender taken from the session.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Rate limit
RECOMMENDED per account per context: message/edit 10 per 10 s; reaction/delete 20 per 10 s (429 core.rate_limited)
Idempotency
mid is the idempotency key, scoped to the context; fingerprint = sender account (address + incarnation), kind, target (not body bytes). Same fingerprint: 201 with stored EntryAck regardless of current access/mode/permissions; different: 409 core.idempotency_conflict reason mismatch; in progress: 409 reason in_progress, retryable, retryAfterMs >= 500. Remembered >= 30 days even after delete/purge. Idempotency-Key header not used.
Specification
11 §4
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller

Request body: PostEntry

Request fields
NameTypeRequiredMeaning and constraints
miduuidv7YesIdempotency key; bound into K_msg in secure contexts.
client-generated; grammar §2.4; never checked against server clock
kindEntryKindNoEntry kind.
default message; one of message, edit, reaction, delete
targetuuidv7NoTarget mid, in cleartext.
required for edit, reaction, delete; absent for message; in a secure carrier MUST equal sealed.ref
contentMessageContent|EditContent|ReactionContent|DeleteContentNoContent object for kind.
insecure carrier: required; secure: MUST be absent
sealedSealedMessageNoSealedMessage (14) whose padded plaintext is the content object.
secure carrier: required; insecure: MUST be absent
mentionsarray<string>NoMention hint (D-063): content mentions plus reply author when ping true (unless sender).
secure message/edit only, otherwise absent; at most 50; [] when user turned mention_hints off
mentionAllbooleanNoMention hint: equals content mentionAll.
secure message/edit only, otherwise absent; always truthful
attachmentIdsarray<uuidv7>NoIDs of every attachment and thumbnail the encrypted content references.
secure message: required when content has attachments; secure edit: required when target has bound attachments ([] removes all), must be subset of target's bound IDs; otherwise absent

Response: 201 with EntryAck

Response fields
NameTypeRequiredMeaning and constraints
miduuidv7YesThe entry's mid.
kindEntryKindYesThe entry's kind.
seqintegerYesseq assigned.
createdAttimestampYesServer timestamp.
non-decreasing in seq within a context

Errors: core.unauthenticated, core.token_expired, core.invalid_request, sealed.kind_unsupported, core.idempotency_conflict, core.not_found, member.not_member, member.pending, moderation.banned, dm.not_participant, security.account_required, security.device_not_enrolled, security.upgrade_required, channel.join_required, dm.closed, dm.encryption_pending, dm.upgrade_in_progress, sealed.not_secure, channel.plaintext_rejected, sealed.required, moderation.timed_out, core.forbidden, moderation.new_member_restricted, moderation.slow_mode, message.too_large, message.invalid_content, sealed.header_mismatch, sealed.ref_invalid, mls.commit_required, message.target_not_found, message.target_deleted, message.not_author, message.not_editable, reaction.too_many, reaction.invalid_key, reaction.already_exists, message.too_many_mentions, address.non_canonical, attachment.not_found, attachment.not_uploaded, attachment.already_bound, attachment.expired, core.rate_limited, sealed.wrong_epoch, sealed.not_in_group, mls.group_not_found, mls.generation_retired, mls.fork_detected, mls.not_member

GET /v1/contexts/{ctx}/messages/{mid}

Fetch one root message (or its tombstone); used for reply parents and jump-to-message.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Specification
11 §7.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
miduuidv7Yesmid of a root message in the context.
lowercase hyphenated UUIDv7 (§2.4)

Response: 200 with Message

Response fields
NameTypeRequiredMeaning and constraints
typestringNoItem type discriminator.
"message"; present in timeline pages only
miduuidv7YesRoot message mid.
ctxstringNoContext reference.
required in HTTP; omitted in events
seqintegerNoseq at which the root was accepted.
required in HTTP; omitted in events
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).

Errors: message.target_not_found, core.not_found

GET /v1/contexts/{ctx}/messages/{mid}/reactions

Collection of ReactionEntry objects for a root message, oldest first; key filter returns only plain entries.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Pagination
collection
Specification
11 §7.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
miduuidv7Yesmid of a root message in the context.
lowercase hyphenated UUIDv7 (§2.4)
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoNext page cursor.
opaque nextCursor
limitintegerNoPage size.
1-100, default 50
keystringNoFilter by reaction key.
URL-encoded; normalized key filter; plain entries only

Response: 200 with collection of ReactionEntry

Response fields
NameTypeRequiredMeaning and constraints
miduuidv7YesReaction entry mid; removing the reaction = deleting this mid.
targetuuidv7YesRoot message mid.
seqintegerNoIts seq.
required in HTTP; omitted in events
carrierCarrierTypeYesplain or sealed.
senderSenderYesWho reacted.
createdAttimestampYesServer timestamp.
keystringNoReaction key.
plain only
sealedSealedMessageNoEncrypted reaction.
sealed only; kind reaction, ref = root mid; plaintext ReactionContent

Errors: core.not_found, core.invalid_request

GET /v1/contexts/{ctx}/read

Caller's ReadState for one context.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Specification
11 §9.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller

Response: 200 with ReadState

Response 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

Errors: core.not_found

PUT /v1/contexts/{ctx}/read

Advance (or with markUnread, lower) the caller's read position; emits read.updated when changed.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Rate limit
RECOMMENDED 2 per s per account per context
Specification
11 §9.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller

Request body: ReadStateUpdate

Request fields
NameTypeRequiredMeaning and constraints
readSeqintegerYesNew read position.
>= 0; values above headSeq lowered to headSeq
markUnreadbooleanNofalse: stored = max(old, readSeq); true: stored = readSeq even if lower.
default false

Response: 200 with ReadState

Response 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

Errors: core.invalid_request, core.not_found, core.rate_limited

POST /v1/contexts/{ctx}/typing

Signal typing started/stopped; typing:true needs what posting a message needs; excess true requests answered 204 without emitting.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Rate limit
1 typing:true per account per context per 3 s (excess silently ignored with 204)
Specification
11 §10
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller

Request body: TypingRequest

Request fields
NameTypeRequiredMeaning and constraints
typingbooleanYestrue: typing; false: stopped without sending.

Response: 204

Errors: core.unauthenticated, core.token_expired, core.not_found, member.not_member, member.pending, moderation.banned, dm.not_participant, security.account_required, security.device_not_enrolled, security.upgrade_required, channel.join_required, dm.closed, dm.encryption_pending, dm.upgrade_in_progress, moderation.timed_out, core.forbidden, moderation.new_member_restricted, moderation.slow_mode

GET /v1/contexts/{ctx}/webhooks

List the channel's webhooks (manage_channels); works in secure channels too.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Pagination
collection
Feature
webhooks
Specification
11 §15.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoNext page cursor.
opaque
limitintegerNoPage size (not specified by 11).

Response: 200 with collection of Webhook

Response fields
NameTypeRequiredMeaning and constraints
iduuidv7YesWebhook ID.
server-generated
ctxstringYesThe channel.
namestringYesShown as sender name.
1-80 Unicode scalar values; no '@', '<', '>', control characters or line breaks
stateWebhookStateYesactive or disabled.
unknown treated as disabled
disabledReasonstring|nullYesWhy disabled.
admin, secure_context, or null when active
allowMentionAllbooleanYesWhether messages may use <@everyone>.
default false
createdBystring (canonical address)YesCreator.
createdAttimestampYesCreation time.
lastUsedAttimestamp|nullYesLast accepted execution.
tokenstringNoBearer secret for execution.
only in create and rotate responses; 'whk_' + base64url of 32 random bytes; server stores only a hash

Errors: core.not_found, core.unsupported_feature, core.forbidden

POST /v1/contexts/{ctx}/webhooks

Create an incoming webhook (manage_channels); returns the token once.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Feature
webhooks
Specification
11 §15.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller

Request body: WebhookCreateRequest

Request fields
NameTypeRequiredMeaning and constraints
namestringYesName.
as Webhook.name
allowMentionAllbooleanNoAllow <@everyone>.
default false

Response: 201 with Webhook

Response fields
NameTypeRequiredMeaning and constraints
iduuidv7YesWebhook ID.
server-generated
ctxstringYesThe channel.
namestringYesShown as sender name.
1-80 Unicode scalar values; no '@', '<', '>', control characters or line breaks
stateWebhookStateYesactive or disabled.
unknown treated as disabled
disabledReasonstring|nullYesWhy disabled.
admin, secure_context, or null when active
allowMentionAllbooleanYesWhether messages may use <@everyone>.
default false
createdBystring (canonical address)YesCreator.
createdAttimestampYesCreation time.
lastUsedAttimestamp|nullYesLast accepted execution.
tokenstringNoBearer secret for execution.
only in create and rotate responses; 'whk_' + base64url of 32 random bytes; server stores only a hash

Errors: core.not_found, core.unsupported_feature, core.forbidden, message.webhook_limit, security.context_secure_unsupported, core.invalid_request

DELETE /v1/contexts/{ctx}/webhooks/{id}

Delete a webhook (manage_channels); messages already posted stay.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Feature
webhooks
Specification
11 §15.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
iduuidv7YesWebhook ID.
server-generated Webhook ID

Response: 204

Errors: core.not_found, core.unsupported_feature, core.forbidden

GET /v1/contexts/{ctx}/webhooks/{id}

Read one webhook (manage_channels).

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Feature
webhooks
Specification
11 §15.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
iduuidv7YesWebhook ID.
server-generated Webhook ID

Response: 200 with Webhook

Response fields
NameTypeRequiredMeaning and constraints
iduuidv7YesWebhook ID.
server-generated
ctxstringYesThe channel.
namestringYesShown as sender name.
1-80 Unicode scalar values; no '@', '<', '>', control characters or line breaks
stateWebhookStateYesactive or disabled.
unknown treated as disabled
disabledReasonstring|nullYesWhy disabled.
admin, secure_context, or null when active
allowMentionAllbooleanYesWhether messages may use <@everyone>.
default false
createdBystring (canonical address)YesCreator.
createdAttimestampYesCreation time.
lastUsedAttimestamp|nullYesLast accepted execution.
tokenstringNoBearer secret for execution.
only in create and rotate responses; 'whk_' + base64url of 32 random bytes; server stores only a hash

Errors: core.not_found, core.unsupported_feature, core.forbidden

PATCH /v1/contexts/{ctx}/webhooks/{id}

Rename, enable or disable (manage_channels); can't enable one disabled for secure_context; rename allowed in secure channels.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Feature
webhooks
Specification
11 §15.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
iduuidv7YesWebhook ID.
server-generated Webhook ID

Request body: WebhookPatchRequest

Request fields
NameTypeRequiredMeaning and constraints
namestringNoNew name.
stateWebhookStateNoEnable or disable.
state disabled sets disabledReason admin; can't enable when disabledReason is secure_context
allowMentionAllbooleanNoAllow <@everyone>.

Response: 200 with Webhook

Response fields
NameTypeRequiredMeaning and constraints
iduuidv7YesWebhook ID.
server-generated
ctxstringYesThe channel.
namestringYesShown as sender name.
1-80 Unicode scalar values; no '@', '<', '>', control characters or line breaks
stateWebhookStateYesactive or disabled.
unknown treated as disabled
disabledReasonstring|nullYesWhy disabled.
admin, secure_context, or null when active
allowMentionAllbooleanYesWhether messages may use <@everyone>.
default false
createdBystring (canonical address)YesCreator.
createdAttimestampYesCreation time.
lastUsedAttimestamp|nullYesLast accepted execution.
tokenstringNoBearer secret for execution.
only in create and rotate responses; 'whk_' + base64url of 32 random bytes; server stores only a hash

Errors: core.not_found, core.unsupported_feature, core.forbidden, security.context_secure_unsupported, core.invalid_request

POST /v1/contexts/{ctx}/webhooks/{id}/messages

An outside service (not an account) posts a root message into an insecure channel; answered with an EntryAck.

Auth
Bearer whk_… (webhook token; never in the URL)
Caller
bot
Rate limit
30 executions per webhook per minute
Idempotency
Idempotent on mid when given; if absent server generates one and the request isn't idempotent.
Feature
webhooks
Specification
11 §15.4
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
iduuidv7YesWebhook ID.
server-generated Webhook ID

Request body: WebhookExecuteRequest

Request fields
NameTypeRequiredMeaning and constraints
miduuidv7NoIdempotency key.
if absent the server generates one and the request isn't idempotent
contentMessageContentYesMessage content.
only text, mentions, mentionAll; replyTo and attachments MUST be absent or empty

Response: 201 with EntryAck

Response fields
NameTypeRequiredMeaning and constraints
miduuidv7YesThe entry's mid.
kindEntryKindYesThe entry's kind.
seqintegerYesseq assigned.
createdAttimestampYesServer timestamp.
non-decreasing in seq within a context

Errors: core.not_found, core.unsupported_feature, security.context_secure_unsupported, core.unauthenticated, message.invalid_content, message.too_large, message.too_many_mentions, address.non_canonical, core.rate_limited

POST /v1/contexts/{ctx}/webhooks/{id}/token

Rotate the token; the old one stops working at once (manage_channels).

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Feature
webhooks
Specification
11 §15.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference (channel, DM or group DM).
e.g. ch:<uuidv7>; must exist and be visible to the caller
iduuidv7YesWebhook ID.
server-generated Webhook ID

Response: 200 with Webhook

Response fields
NameTypeRequiredMeaning and constraints
iduuidv7YesWebhook ID.
server-generated
ctxstringYesThe channel.
namestringYesShown as sender name.
1-80 Unicode scalar values; no '@', '<', '>', control characters or line breaks
stateWebhookStateYesactive or disabled.
unknown treated as disabled
disabledReasonstring|nullYesWhy disabled.
admin, secure_context, or null when active
allowMentionAllbooleanYesWhether messages may use <@everyone>.
default false
createdBystring (canonical address)YesCreator.
createdAttimestampYesCreation time.
lastUsedAttimestamp|nullYesLast accepted execution.
tokenstringNoBearer secret for execution.
only in create and rotate responses; 'whk_' + base64url of 32 random bytes; server stores only a hash

Errors: core.not_found, core.unsupported_feature, core.forbidden, security.context_secure_unsupported

GET /v1/me/presence

Read own chosen status, custom status, session idle flag and effective status on this server.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Specification
11 §11.2

Response: 200 with OwnPresence

Response fields
NameTypeRequiredMeaning and constraints
statusChosenStatusYesChosen status.
default online for a new account
statusTextstring|nullYesCustom status.
at most MAX_STATUS_CHARS (128) Unicode scalar values, no line breaks
statusEmojistring|nullYesStatus emoji.
one emoji, as reaction keys
clearAttimestamp|nullYesWhen server clears statusText and statusEmoji.
idlebooleanYesCalling session's idle flag.
effectiveEffectiveStatusYesEffective status others see on this server.
updatedAttimestampYesWhen account-level members last changed.

Errors: core.unauthenticated

PUT /v1/me/presence

Set chosen status/custom status (all four together, last-write-wins) and/or the calling session's idle flag.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Rate limit
10 per session per minute
Specification
11 §11.2

Request body: OwnPresenceUpdate

Request fields
NameTypeRequiredMeaning and constraints
statusChosenStatusNoChosen status.
absent: unchanged; if any of status/statusText/statusEmoji/clearAt present, all four MUST be present
statusTextstring|nullNoCustom status.
absent: unchanged; null clears
statusEmojistring|nullNoStatus emoji.
absent: unchanged; null clears
clearAttimestamp|nullNoAuto-clear time.
absent: unchanged; null = no auto clear; otherwise future time at most 30 days ahead
idlebooleanNoSession idle flag.
absent: unchanged; sets only the calling session's flag

Response: 200 with OwnPresence

Response fields
NameTypeRequiredMeaning and constraints
statusChosenStatusYesChosen status.
default online for a new account
statusTextstring|nullYesCustom status.
at most MAX_STATUS_CHARS (128) Unicode scalar values, no line breaks
statusEmojistring|nullYesStatus emoji.
one emoji, as reaction keys
clearAttimestamp|nullYesWhen server clears statusText and statusEmoji.
idlebooleanYesCalling session's idle flag.
effectiveEffectiveStatusYesEffective status others see on this server.
updatedAttimestampYesWhen account-level members last changed.

Errors: core.invalid_request, core.rate_limited

GET /v1/me/read-states

All of the caller's ReadStates on this server for contexts it can currently see; ordered by ctx, stable.

Auth
Bearer <session token> (or Bot <token>)
Caller
client
Pagination
collection
Specification
11 §9.2
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoNext page cursor.
opaque nextCursor
limitintegerNoPage size.
1-1000, default 200

Response: 200 with collection of ReadState

Response 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

Errors: core.invalid_request

12 Direct messages and group DMs

POST /v1/dms

Create (or return/reopen) a 1:1 or group DM at the hosting server selected by the hosting rule.

Auth
Bearer home or remote session token, or Authorization: Bot
Caller
client
Rate limit
20 new invitations to never-replied people per creating account per 24 h, plus 10's young-account cap newAccount.maxNewDmsPerDay (default 5) (§10.6); excess 429 core.rate_limited
Idempotency
1:1 DMs idempotent on ctx (existing non-closed DM returned with 200). Group DMs: client SHOULD send Idempotency-Key; retry with same key returns the group created by the first request.
Specification
12 §7.2

Request body: inline (POST /v1/dms request body)

Request fields
NameTypeRequiredMeaning and constraints
kindenum DmKindYesDM kind.
direct or group
peerstringNoOther participant.
required for direct; canonical address
participantsarray<string>NoOther initial participants.
required for group; at least 2, at most maxGroupDmParticipants − 1, distinct, not the caller; canonical
expectSecurityenum DmSecurityYesSecurity the client computed (§7.1 step 2).
namestringNoGroup name.
group only; constraints as §6.1
communityHintsarray<string>NoCommunities on caller's list where it saw recipients; only order auto-accept checks.
up to 10 canonical domains
replacesobjectNoClosed predecessor when creating a successor (§13.3).
{ host, ctx }
bootstrapGroupBootstrap (13 §7.4)NoGeneration 1 group bootstrap.
required for direct with expectSecurity secure; MUST be absent for group and for insecure DMs (400 core.invalid_request)
commitCommitSubmission (13 §7.5)NoFirst commit epoch 0→1 adding claimed devices, with its Welcome.
only with bootstrap; required whenever any KeyPackage was claimed

Response: 201, 200 with Dm

Errors: address.non_canonical, dm.invalid_participants, dm.too_many_participants, core.invalid_request, federation.blocked, dm.closed, dm.recipient_not_found, dm.wrong_host, dm.security_mismatch, security.device_not_enrolled, dm.encryption_pending, mls.*, core.rate_limited

GET /v1/dms/{ctx}

Return the Dm object, filtered per §6.5.

Auth
session of a participant (home or remote session)
Caller
client
Specification
12 §7.5
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesContext reference.
dm: (b64u-128) or gdm: (uuid7); colon MAY be percent-encoded

Response: 200 with Dm

Errors: core.not_found

PATCH /v1/dms/{ctx}

Set or clear a group DM's name.

Auth
session of an active participant
Caller
client
Specification
12 §7.5
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesContext reference.
dm: (b64u-128) or gdm: (uuid7); colon MAY be percent-encoded

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
namestring|nullYesGroup name.
constraints as §6.1; null clears

Response: 200 with Dm

Errors: dm.not_group, dm.not_participant, dm.closed, dm.upgrade_in_progress, dm.encryption_pending

POST /v1/dms/{ctx}/participants

Add 1-10 people to a group DM; insecure groups add immediately, secure groups reserve for 60 s pending the MLS commit. A late secure-add commit (submitted through 13) is refused with 409 dm.reservation_expired.

Auth
session of an active participant (enrolled device for secure groups)
Caller
client
Rate limit
§10.6: 20 new invitations to never-replied people per adding account per 24 h, plus young-account cap
Specification
12 §12.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesContext reference.
dm: (b64u-128) or gdm: (uuid7); colon MAY be percent-encoded

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
participantsarray<string>YesPeople to add.
1 to 10 canonical addresses
communityHintsarray<string>NoCopied into dm.request batch 1 of each new invitation.
up to 10 community domains

Response: 200, 202 with Dm

Errors: dm.not_group, dm.closed, dm.upgrade_in_progress, dm.encryption_pending, dm.not_participant, dm.not_accepted, dm.recipient_not_found, dm.invalid_participants, moderation.banned, federation.blocked, core.rate_limited, dm.too_many_participants, security.would_downgrade, security.device_not_enrolled

DELETE /v1/dms/{ctx}/participants/{addr}

Leave a group DM (addr = caller) or remove another participant (owner only while the group has an owner; any active participant afterwards).

Auth
session of a current participant
Caller
client
Specification
12 §12.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesContext reference.
dm: (b64u-128) or gdm: (uuid7); colon MAY be percent-encoded
addrstringYesAddress.
canonical address, percent-encoded

Response: 204

Errors: dm.not_group, dm.not_owner, dm.not_participant, dm.not_accepted

GET /v1/me/dm-requests

List message requests, newest first; list items omit events and welcome and carry preview.

Auth
Home session
Caller
client
Pagination
collection
Specification
12 §10.3
Query parameters
NameTypeRequiredMeaning and constraints
stateenum DmRequestStateNoFilter.
default pending
cursorstringNoCursor.
limitintegerNoPage size.

Response: 200 with collection of DmRequest (list form)

GET /v1/me/dm-requests/{id}

Get the full DmRequest.

Auth
Home session
Caller
client
Specification
12 §10.3
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesDmRequest id.

Response: 200 with DmRequest

POST /v1/me/dm-requests/{id}/accept

Accept a message request; the entry becomes active and the home sends dm.response accept.

Auth
Home session
Caller
client
Specification
12 §10.3
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesDmRequest id.

Response: 200 with DmIndexEntry

Errors: dm.request_not_pending

POST /v1/me/dm-requests/{id}/block

Decline the request and block inviter.addr (block half of Report and block).

Auth
Home session
Caller
client
Specification
12 §10.3
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesDmRequest id.

Response: 204

Errors: dm.request_not_pending

POST /v1/me/dm-requests/{id}/decline

Decline a message request; entry declined with declinedAt now; home sends dm.response decline.

Auth
Home session
Caller
client
Specification
12 §10.3
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesDmRequest id.

Response: 204

Errors: dm.request_not_pending

GET /v1/me/dms

List the account's DM index entries, ordered by lastActivityAt descending then id.

Auth
Bearer home session token, or Authorization: Bot (bot token)
Caller
client
Pagination
collection
Specification
12 §9.3
Query parameters
NameTypeRequiredMeaning and constraints
statestringNoEntry states.
comma-separated; default active,requested
kindenum DmKindNoFilter by kind.
includeHiddenbooleanNoInclude hidden entries.
default false
cursorstringNoPagination cursor (00 §7.10).
limitintegerNoPage size.
1–100, default 50

Response: 200 with collection of DmIndexEntry

POST /v1/me/dms

Register an outgoing DM in the home index (or activate an existing entry, accepting any pending request). Checks only syntax (ctx per §5.1, host a valid domain); never contacts the hosting server.

Auth
Bearer home session token, or Authorization: Bot (bot token)
Caller
client
Idempotency
Idempotent; existing (host, ctx) entry is set to active and returned with 200.
Specification
12 §9.3

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
hoststringYesHosting server.
valid domain
ctxstringYesContext reference.
matches §5.1
kindenum DmKindYesdirect or group.

Response: 201, 200 with DmIndexEntry

Errors: core.invalid_request

DELETE /v1/me/dms/{id}

Delete an entry in state declined, left or closed, or an outgoing entry whose lastSeq is 0.

Auth
Bearer home session token, or Authorization: Bot (bot token)
Caller
client
Specification
12 §9.3
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesDmIndexEntry id.

Response: 204

Errors: dm.entry_active

GET /v1/me/dms/{id}

Get one DM index entry, including pendingEvents.

Auth
Bearer home session token, or Authorization: Bot (bot token)
Caller
client
Specification
12 §9.3
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesDmIndexEntry id.

Response: 200 with DmIndexEntry

PATCH /v1/me/dms/{id}

Hide or unhide a DM index entry.

Auth
Bearer home session token, or Authorization: Bot (bot token)
Caller
client
Specification
12 §9.3
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesDmIndexEntry id.

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
hiddenbooleanYesHide from DM list.

GET /v1/me/dms/blocks

List DM blocks.

Auth
Bearer home session token, or Authorization: Bot (bot token)
Caller
client
Pagination
collection
Specification
12 §9.5
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoCursor.
limitintegerNoPage size.

Response: 200 with collection of DmBlock

DELETE /v1/me/dms/blocks/{addr}

Unblock an address.

Auth
Bearer home session token, or Authorization: Bot (bot token)
Caller
client
Specification
12 §9.5
Path parameters
NameTypeRequiredMeaning and constraints
addrstringYesAddress.
canonical address, percent-encoded

Response: 204

PUT /v1/me/dms/blocks/{addr}

Block an address for DMs.

Auth
Bearer home session token, or Authorization: Bot (bot token)
Caller
client
Idempotency
Idempotent
Specification
12 §9.5
Path parameters
NameTypeRequiredMeaning and constraints
addrstringYesAddress.
canonical address, percent-encoded

Response: 200 with DmBlock

GET /v1/me/dms/settings

Return the account's DmSettings.

Auth
Bearer home session token, or Authorization: Bot (bot token)
Caller
client
Specification
12 §9.4

Response: 200 with DmSettings

PUT /v1/me/dms/settings

Replace the account's DmSettings.

Auth
Bearer home session token, or Authorization: Bot (bot token)
Caller
client
Idempotency
PUT (idempotent per 03)
Specification
12 §9.4

Request body: DmSettings

Request fields
NameTypeRequiredMeaning and constraints
autoAcceptenum AutoAcceptSettingYesWho can message without a request.
default contacts_and_communities; unknown treated as default
requestNotificationsbooleanYesWhether a new message request creates a notification record (19).
default true

13 MLS profile

GET /v1/contexts/{ctx}/mls

Return the cheap MlsGroupStatus so a client can decide whether to bootstrap, join, catch up or resync; no leaf required.

Auth
home session (hosting server is the caller's home), remote session (06), or at a secure bot's own home server the bot token of one of its devices (05 §15.4)
Caller
client
Secure contexts only
Yes
Specification
13 §7.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context
a ch:, dm: or gdm: context reference; the colon MAY be percent-encoded

Response: 200, 403, 409 with MlsGroupStatus

Response fields
NameTypeRequiredMeaning and constraints
ctxstringYesThe context reference
groupIdstringYesgroup_id of the current generation (even in state none)
generationintegerYesCurrent generation
1..2147483647
stateServerGroupStateYesServer group state (§4.3)
none|active|frozen|retired; unknown: treat as retired and re-fetch after 60 s
epochinteger|nullYesCurrent epoch
null in none and retired
ekidbase64url|nullYesReference ekid of the current epoch (provisional until settled)
null when unknown
ekidSettledbooleanYesWhether the reference is settled
leafCountintegerYesNon-blank leaves, including leaves with pending removal
maxSecureLeavesintegerYesEffective limit for this group
pendingProposalsarray<object>YesPending server proposals for the current epoch
summaries {ref, type, reason, target}
lastCommitAttimestamp|nullYesTime of last accepted commit or bootstrap
selfobject|nullYesCalling device's leaf info
{leaf: int, lastAckedEpoch: int|null, removalPending: bool}; null if no leaf
removedForRemovalReason|nullYes§13.1 reason of the calling device's most recent removal in this generation
set when self is null or removalPending is true and server knows it
bootstrapAllowedbooleanYesWhether this device may bootstrap (§10.1)
false unless state none

Errors: mls.context_not_secure, security.account_required, security.device_not_enrolled

POST /v1/contexts/{ctx}/mls/bootstrap

Create the context's MLS group for the current generation from a GroupBootstrap (epoch-0 GroupInfo); for DMs optionally with the first CommitSubmission in the same transaction.

Auth
home session (hosting server is the caller's home), remote session (06), or at a secure bot's own home server the bot token of one of its devices (05 §15.4)
Caller
client
Rate limit
In-flight limit: a submission arriving while more than 3 are in flight gets 425 mls.commit_busy (§11.4); body up to maxMlsUploadBytes
Idempotency
Byte-identical groupInfo (and same commitHash for commit) returns the original 201 for at least 24 h (§6.4 V2a); state none->active test-and-set is atomic, exactly one concurrent bootstrap wins
Secure contexts only
Yes
Specification
13 §7.4
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context
a ch:, dm: or gdm: context reference; the colon MAY be percent-encoded

Request body: GroupBootstrap (+ optional commit: CommitSubmission for DMs/group DMs)

Request fields
NameTypeRequiredMeaning and constraints
generationintegerYesGeneration being bootstrapped
MUST equal the context's current generation, which MUST be in state none
groupInfobase64urlYesEpoch-0 GroupInfo
epoch-0 GroupInfo; ratchet_tree with exactly one leaf (index 0, the caller) and external_pub
ekidbase64urlYesekid(0) computed by the creator (14)
8 bytes, 11 chars
commitCommitSubmissionNoFirst commit adding claimed devices, with Welcome
DMs/group DMs only; epoch 0 -> 1; REQUIRED if the creator claimed any KeyPackage; not part of GroupBootstrap

Response: 201, 400, 403, 409, 410, 425, 503 with BootstrapResponse (unnamed in spec)

Response fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup ID
generationintegerYesGeneration
epochintegerYesEpoch
0
ekidbase64urlYesekid(0)
seqintegerYesContext seq (example matches the mls.group_created seq; not stated normatively)
commitCommitResultNoCommitResult of the first commit
only when a first commit was sent

Errors: mls.group_exists, mls.generation_retired, mls.group_id_mismatch, mls.credential_rejected, mls.policy_violation, mls.bootstrap_not_allowed, mls.verification_failed, mls.epoch_conflict, mls.proposals_changed, mls.commit_busy, mls.group_full, core.too_large, mls.context_not_secure, security.account_required, security.device_not_enrolled, federation.home_unreachable

POST /v1/contexts/{ctx}/mls/commits

Submit a member or external commit with its new-epoch GroupInfo and ekid; sequenced by compare-and-set on the epoch.

Auth
home session (hosting server is the caller's home), remote session (06), or at a secure bot's own home server the bot token of one of its devices (05 §15.4)
Caller
client
Rate limit
In-flight limit >3 -> 425 mls.commit_busy (retryAfterMs 250-5,000); external commits paced by join queue (§11.5); body up to maxMlsUploadBytes
Idempotency
Server indexes accepted commitHash (SHA-256 of commit bytes) for at least 24 h; a resubmission returns the original CommitResult with 200 even if the epoch moved on (V2a, before any state-dependent check)
Secure contexts only
Yes
Specification
13 §7.5
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context
a ch:, dm: or gdm: context reference; the colon MAY be percent-encoded

Request body: CommitSubmission

Request fields
NameTypeRequiredMeaning and constraints
epochintegerYesEpoch the commit was built in
MUST equal the FramedContent epoch
commitbase64urlYesThe commit
MLSMessage, mls_public_message
groupInfobase64urlYesNew GroupInfo
GroupInfo for epoch+1, signed by committer, with ratchet_tree and external_pub
ekidbase64urlYesekid(epoch + 1) as the committer computed it; becomes provisional reference
8 bytes, 11 chars
welcomebase64urlNoWelcome for every added leaf (always with ratchet_tree)
required for DM commits with Add; MUST be absent otherwise

Response: 200, 400, 403, 404, 409, 410, 425, 503 with CommitResult

Response fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup ID
epochintegerYesThe new epoch (epoch + 1)
ekidbase64urlYesReference ekid recorded for the new epoch
seqintegerYesContext seq of the mls.handshake event
commitHashbase64urlYesCommit hash
SHA-256 of the commit MLSMessage bytes

Errors: mls.epoch_conflict, mls.proposals_changed, mls.commit_busy, mls.credential_rejected, mls.verification_failed, mls.policy_violation, mls.not_member, mls.group_not_found, mls.generation_retired, mls.group_id_mismatch, mls.group_full, core.too_large, core.unavailable, mls.context_not_secure, security.account_required, security.device_not_enrolled, federation.home_unreachable, federation.blocked

POST /v1/contexts/{ctx}/mls/epoch-ack

Post an EpochAck (the message other docs call mls.epoch_ack) carrying the device's (ekid, extPub) pair for fork detection, lastSeenAt, commit duty and Welcome cleanup.

Auth
home session (hosting server is the caller's home), remote session (06), or at a secure bot's own home server the bot token of one of its devices (05 §15.4)
Caller
client
Idempotency
Device does not repeat an ack answered 202; ack for an epoch lower than last acked returns 200 ignored
Secure contexts only
Yes
Specification
13 §7.8
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context
a ch:, dm: or gdm: context reference; the colon MAY be percent-encoded

Request body: EpochAck

Request fields
NameTypeRequiredMeaning and constraints
epochintegerYesNewest epoch the device has fully processed
ekidbase64urlYesekid(epoch) as the device computed it (14)
8 bytes, 11 chars
extPubbase64urlYesHash of the external_pub public key the device derived for that epoch (RFC 9420 §8.3)
SHA-256

Response: 200, 202, 403, 409 with EpochAckResponse (unnamed in spec): {epoch, status}

Response fields
NameTypeRequiredMeaning and constraints
epochintegerYesEpoch
statusEpochAckStatusYesResult
match (200) | pending (202) | ignored (200); unknown: treat as match

Errors: mls.fork_detected, mls.not_member, core.conflict, mls.context_not_secure, security.account_required, security.device_not_enrolled

GET /v1/contexts/{ctx}/mls/groupinfo

Return the current GroupInfo (full ratchet tree and external_pub) plus pending ServerProposals; used to build an external commit; no leaf required.

Auth
home session (hosting server is the caller's home), remote session (06), or at a secure bot's own home server the bot token of one of its devices (05 §15.4)
Caller
client
Rate limit
Join queue pacing for intent=join (§11.5): 425 mls.commit_busy with data.position and retryAfterMs
Idempotency
Conditional GET: server MUST send ETag derived from generation, epoch, hash of pending proposal refs and include value, and honour If-None-Match with 304
Secure contexts only
Yes
Specification
13 §7.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context
a ch:, dm: or gdm: context reference; the colon MAY be percent-encoded
Query parameters
NameTypeRequiredMeaning and constraints
includestringNoAdd cached IdentityState of every roster address
identityStates; channels only, ignored for DMs
intentstringNoMarks a fetch made to build an external commit; paced by the join queue (§11.5)
join

Response: 200, 304, 403, 404, 409, 410, 425, 503 with GroupInfoResponse

Response fields
NameTypeRequiredMeaning and constraints
groupIdstringYesAs in §7.2
generationintegerYesGeneration
epochintegerYesThe GroupInfo's epoch
ekidbase64url|nullYesReference ekid for this epoch
groupInfobase64urlYesGroupInfo uploaded by the epoch's committer or bootstrapper
MLSMessage mls_group_info with ratchet_tree and external_pub
pendingProposalsarray<ServerProposal>YesFull ServerProposal objects for this epoch
identityStatesobjectNoCached IdentityStates of every roster address
map canonical address -> IdentityState JWS; only with include=identityStates (channels only)

Errors: mls.group_not_found, mls.generation_retired, mls.commit_busy, core.unavailable, mls.context_not_secure, security.account_required, security.device_not_enrolled

GET /v1/contexts/{ctx}/mls/handshakes

Return accepted commits of the current generation with commit epoch >= fromEpoch, in epoch order, as HandshakeRecords; no leaf required.

Auth
home session (hosting server is the caller's home), remote session (06), or at a secure bot's own home server the bot token of one of its devices (05 §15.4)
Caller
client
Secure contexts only
Yes
Specification
13 §7.6
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context
a ch:, dm: or gdm: context reference; the colon MAY be percent-encoded
Query parameters
NameTypeRequiredMeaning and constraints
fromEpochintegerYesFirst commit epoch to return
>= 0
limitintegerNoPage size
1-100, default 50

Response: 200, 403, 409, 410 with {items: [HandshakeRecord], hasMore: boolean}

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<HandshakeRecord>YesRecords in epoch order
hasMorebooleanYesMore records exist

Errors: mls.log_truncated, mls.context_not_secure, security.account_required, security.device_not_enrolled

GET /v1/contexts/{ctx}/mls/proposals

Return the pending server proposals of the current epoch; no leaf required.

Auth
home session (hosting server is the caller's home), remote session (06), or at a secure bot's own home server the bot token of one of its devices (05 §15.4)
Caller
client
Secure contexts only
Yes
Specification
13 §7.7
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context
a ch:, dm: or gdm: context reference; the colon MAY be percent-encoded

Response: 200, 403, 409 with {epoch, items: [ServerProposal]}

Response fields
NameTypeRequiredMeaning and constraints
epochintegerYesCurrent epoch
itemsarray<ServerProposal>YesPending proposals

Errors: mls.context_not_secure, security.account_required, security.device_not_enrolled

POST /v1/contexts/{ctx}/mls/reports

Post an MlsReport client diagnostic (verification failure, unprocessable commit, suspected fork, invalid GroupInfo).

Auth
home session (hosting server is the caller's home), remote session (06), or at a secure bot's own home server the bot token of one of its devices (05 §15.4)
Caller
client
Rate limit
10 reports per device per group per hour; excess 429 core.rate_limited
Secure contexts only
Yes
Specification
13 §7.10
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context
a ch:, dm: or gdm: context reference; the colon MAY be percent-encoded

Request body: MlsReport

Request fields
NameTypeRequiredMeaning and constraints
kindMlsReportKindYesReport kind
verification_failed|commit_unprocessable|fork_suspected|group_info_invalid; unknown stored as other
generationintegerYesGeneration
epochintegerYesThe epoch concerned
commitHashbase64urlNoThe commit concerned
midstringNoMessage ID of the SealedMessage whose ekid differs (§15.3)
required for fork_suspected
subjectobjectNoLeaf or member concerned
{addr, did, leaf}
reasonstringNoShort machine reason, e.g. a 07 §10.6 identity check result, unlisted_identity, ekid_mismatch, epoch_rollback, external_sender
at most 64 characters
detailstringNoFree-text detail
at most 1,024 characters; MUST NOT contain message content or key material

Response: 202, 403, 409, 429

Errors: core.rate_limited, mls.not_member, mls.context_not_secure, security.account_required, security.device_not_enrolled

GET /v1/contexts/{ctx}/mls/welcome

Fetch the pending Welcome that added the calling device under its current identity generation; no leaf required.

Auth
home session (hosting server is the caller's home), remote session (06), or at a secure bot's own home server the bot token of one of its devices (05 §15.4)
Caller
client
Idempotency
Welcome stays until the device posts an EpochAck for an epoch >= its epoch, or 30 days
Secure contexts only
Yes
Specification
13 §7.9
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context
a ch:, dm: or gdm: context reference; the colon MAY be percent-encoded

Response: 200, 403, 404, 409 with PendingWelcome (unnamed in spec)

Response fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup ID
generationintegerYesGeneration
epochintegerYesEpoch the device joins at
welcomebase64urlYesThe Welcome
MLSMessage mls_welcome, always with ratchet_tree
addedByobjectYesCommitter that added the device
{addr, did}

Errors: mls.welcome_not_found, mls.context_not_secure, security.account_required, security.device_not_enrolled

POST /v1/federation/keypackages/claim

S2S claim of KeyPackages from the targets' home server on behalf of a claimant user.

Auth
sv-s2s+jwt (06)
Caller
server
Rate limit
10 claims per (claimant, target) per hour; 1,000 targets per federation peer per hour (status rate_limited); at most 20 regular KeyPackages per target device per hour across all claimants, then the last-resort KeyPackage
Idempotency
Repeated (claimant, claimId, target device) gets the same KeyPackages again instead of consuming new ones
Secure contexts only
Yes
Specification
13 §9.5

Request body: FederationKeyPackageClaim (unnamed in spec)

Request fields
NameTypeRequiredMeaning and constraints
claimantstringYesUser on whose behalf the caller claims
canonical address; domain MUST equal the token's iss (else 403 federation.not_authorized)
purposeKeyPackageClaimPurposeYesClaim purpose
as §9.4
ctxstringNoDM context
as §9.4
claimIduuidv7NoIdempotency key
forwarded unchanged
targetsarray<object>YesTargets
1 to 64 {addr, devices?}, each homed on the receiver; other-domain target gets not_found

Response: 200, 403 with KeyPackageClaimResult (without status unreachable)

Response fields
NameTypeRequiredMeaning and constraints
resultsarray<object>YesPer-target results
one per target, in request order
results[].addrstringYesThe target
results[].statusKeyPackageClaimStatusYesPer-target status
ok|not_found|not_secure|no_devices|unavailable|rate_limited|unreachable; unknown: treat as unavailable
results[].identityStatestringNoTarget's current IdentityState
JWS; present for ok and no_devices
results[].keyPackagesarray<object>NoClaimed KeyPackages
for ok: {did, keyPackage, lastResort: bool} per device that had one

Errors: federation.not_authorized

POST /v1/keypackages/claim

Claim KeyPackages for DM targets through the caller's own home server, which claims locally or via S2S per remote domain.

Auth
home session of an enrolled device, or bot token of an enrolled device of a secure bot (05 §15.4)
Caller
client
Rate limit
At claimant's home server: at most 300 targets per account per hour and 10 claims per (claimant, target address) per hour (excess targets get status rate_limited; repeated claimId counts once); 429 core.rate_limited for the caller's own request rate (03)
Idempotency
Repeated (account, claimId) answered with the previous result for 10 min; claimId forwarded in S2S so the target hands out the same KeyPackages; no claimId = not idempotent
Secure contexts only
Yes
Specification
13 §9.4

Request body: KeyPackageClaim

Request fields
NameTypeRequiredMeaning and constraints
purposeKeyPackageClaimPurposeYesWhy KeyPackages are claimed
dm_create|dm_add_person|dm_readd|dm_secure; unknown refused with core.invalid_request
ctxstringNoDM context
dm: or gdm: reference, when it already exists
claimIduuidv7NoClaim idempotency key
client-chosen; MUST be reused on retry; idempotent for 10 min
targetsarray<object>YesTargets
1 to 64 entries {addr: canonical address, devices?: [did,...]}; devices absent = every active device

Response: 200, 400, 403, 429 with KeyPackageClaimResult

Response fields
NameTypeRequiredMeaning and constraints
resultsarray<object>YesPer-target results
one per target, in request order
results[].addrstringYesThe target
results[].statusKeyPackageClaimStatusYesPer-target status
ok|not_found|not_secure|no_devices|unavailable|rate_limited|unreachable; unknown: treat as unavailable
results[].identityStatestringNoTarget's current IdentityState
JWS; present for ok and no_devices
results[].keyPackagesarray<object>NoClaimed KeyPackages
for ok: {did, keyPackage, lastResort: bool} per device that had one

Errors: security.account_required, security.device_not_enrolled, core.invalid_request, address.non_canonical, core.rate_limited

DELETE /v1/me/keypackages

Delete every KeyPackage of the calling device, including the last-resort one (used when the client discards its MLS key store).

Auth
home session of an enrolled device, or bot token of an enrolled device of a secure bot (05 §15.4)
Caller
client
Secure contexts only
Yes
Specification
13 §9.2

Response: 200, 403 with KeyPackageStatus

Response fields
NameTypeRequiredMeaning and constraints
didstringYesCalling device ID
availableintegerYesRegular KeyPackages available
lastResortbooleanYesWhether a last-resort KeyPackage is stored
lastResortUsedbooleanYesWhether the last-resort KeyPackage has been handed out
lowWatermarkintegerYesLow watermark
10
targetintegerYesRefill target
50

Errors: security.account_required, security.device_not_enrolled

GET /v1/me/keypackages

Return the calling device's KeyPackageStatus.

Auth
home session of an enrolled device, or bot token of an enrolled device of a secure bot (05 §15.4)
Caller
client
Secure contexts only
Yes
Specification
13 §9.2

Response: 200, 403 with KeyPackageStatus

Response fields
NameTypeRequiredMeaning and constraints
didstringYesCalling device ID
availableintegerYesRegular KeyPackages available
lastResortbooleanYesWhether a last-resort KeyPackage is stored
lastResortUsedbooleanYesWhether the last-resort KeyPackage has been handed out
lowWatermarkintegerYesLow watermark
10
targetintegerYesRefill target
50

Errors: security.account_required, security.device_not_enrolled

POST /v1/me/keypackages

Upload regular KeyPackages and/or replace the last-resort KeyPackage for the calling device at its home server; atomic validation.

Auth
home session of an enrolled device, or bot token of an enrolled device of a secure bot (05 §15.4)
Caller
client
Idempotency
A KeyPackage whose KeyPackageRef is already stored is ignored
Secure contexts only
Yes
Specification
13 §9.2

Request body: KeyPackageUpload

Request fields
NameTypeRequiredMeaning and constraints
keyPackagesarray<base64url>YesRegular KeyPackages
0 to 100 KeyPackages (mls_key_package)
lastResortbase64urlNoOne KeyPackage to store as last-resort, replacing any previous one

Response: 200, 400, 403, 409 with KeyPackageStatus

Response fields
NameTypeRequiredMeaning and constraints
didstringYesCalling device ID
availableintegerYesRegular KeyPackages available
lastResortbooleanYesWhether a last-resort KeyPackage is stored
lastResortUsedbooleanYesWhether the last-resort KeyPackage has been handed out
lowWatermarkintegerYesLow watermark
10
targetintegerYesRefill target
50

Errors: mls.keypackage_invalid, mls.keypackage_limit, security.account_required, security.device_not_enrolled

14 Sealed messages, history visibility and sharing

GET /v1/contexts/{ctx}/history

Returns a HistoryState object describing the caller account's visibility (visibleFromSeq, earlierWithheld, VisibilityGrants) in a secure context.

Auth
home session or remote session (06); bots use their session the same way
Caller
client
Rate limit
per 03; server MUST allow at least 10 requests/s burst and 1 request/s sustained per session per endpoint (§8.1)
Secure contexts only
Yes
Specification
14 §8.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context.
context reference (00 §7.6); the colon MAY be percent-encoded (00 §7.3)

Response: 200 with HistoryState

Response fields
NameTypeRequiredMeaning and constraints
ctxstringYesThe context reference.
context reference
visibleFromSeqintegerYesThe account's visibleFromSeq (§10.2): the seq at which its current membership began.
earlierWithheldbooleanYesWhether the context holds content items below visibleFromSeq that §10.2 withholds from this account, grants aside. Membership and other system events alone don't count. Used to place K6.
true exactly when the MessagePage's withheldBeforeSeq (11 §7.1) is non-null; false after a 1:1 DM reopening (12 §6.4)
grantsarray<VisibilityGrantSummary>YesThe account's VisibilityGrants in this context: {shareId, sharer, fromSeq, toSeq, createdAt}.
oldest first; empty when none

Errors: history.disabled, history.not_member, security.account_required, security.device_not_enrolled, mls.not_member

POST /v1/contexts/{ctx}/history/credentials/lookup

Fetches the hosting server's credential records (IdentityCertificate and DeviceCertificate) for devices that sent sealed content or created a HistoryShare in the context.

Auth
home session or remote session (06); any member allowed by §8.1, bots included
Caller
client
Rate limit
per 03; at least 10/s burst, 1/s sustained per session (§8.1)
Secure contexts only
Yes
Specification
14 §8.5
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context.
context reference

Request body: CredentialLookupRequest

Request fields
NameTypeRequiredMeaning and constraints
devicesarray<{addr, did}>YesThe (address, device) pairs to look up.
1 to 100 entries; addr canonical address, did device ID

Response: 200 with CredentialLookupResponse

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<CredentialRecord>YesMatching credential records.
several records may come back for one (addr, did)
missingarray<{addr, did}>YesRequested pairs with no record.

Errors: history.disabled, history.not_member, security.account_required, security.device_not_enrolled, mls.not_member

GET /v1/contexts/{ctx}/history/shares

Lists the HistoryShares addressed to the caller's account that were created during its current membership, oldest first.

Auth
home session or remote session (06); only the recipient account's sessions are served a share
Caller
client
Rate limit
per 03; at least 10/s burst, 1/s sustained per session (§8.1)
Pagination
collection
Secure contexts only
Yes
Specification
14 §8.4
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context.
context reference
Query parameters
NameTypeRequiredMeaning and constraints
shareIduuidv7NoReturn only this share.
cursorstringNoCollection cursor.
00 §7.10
limitintegerNoPage size.
1 to 10, default 5

Response: 200 with cursor-paged collection of HistoryShare (with sharer, createdAt, seq)

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<HistoryShare>YesThe shares addressed to the caller.
collection shape per 00 §7.10; each item includes server-added sharer, createdAt and seq

Errors: history.disabled, history.not_member, core.not_found, core.invalid_request, security.account_required, security.device_not_enrolled, mls.not_member

POST /v1/contexts/{ctx}/history/shares

Creates a HistoryShare that delivers per-message keys of chosen earlier sealed items end to end to one other current member and makes the server record a VisibilityGrant for the range.

Auth
home session or remote session (06) on an enrolled device with a leaf in the current group; bot accounts refused
Caller
client
Rate limit
At most 30 shares per account per context per hour (core.rate_limited); plus the §8.1 minimum of 10/s burst, 1/s sustained per session
Idempotency
By shareId (§7.7 step 6): same shareId from the same account with a byte-identical body returns the stored response; otherwise core.idempotency_conflict with reason mismatch. An Idempotency-Key header isn't needed. Retries resend the kept body unchanged.
Secure contexts only
Yes
Specification
14 §8.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe secure context.
context reference; MUST equal the body's ctx

Request body: HistoryShare

Request fields
NameTypeRequiredMeaning and constraints
vintegerYesFormat version.
1
ctxstringYesContext reference.
00 §7.6 form; MUST equal the path's context
shareIduuidv7YesShare ID generated by the sharing client.
lowercase hyphenated UUIDv7 (ABNF mid, §4.2); unique within the context
recipientstringYesCanonical address of the recipient account.
canonical address (01, D-032)
didbase64urlYesDevice ID of the sharing device.
22 characters (16 bytes); MUST equal the session's device
fromSeqintegerYesFirst seq of the range.
1 to 2^53 − 1
toSeqintegerYesLast seq of the range, inclusive.
fromSeq to 2^53 − 1; below the seq the share's event will get
countintegerYesNumber of items in the bundle.
1 to 5,000
noncebase64urlYesAES-GCM nonce of the bundle.
B64U of 12 random bytes: 16 characters
ctbase64urlYesThe encrypted bundle followed by its 16-byte tag.
decoded length exactly 5 + 48 × count + 16 bytes
keysarray<HistoryShareKeyWrap>YesOne {did, enc, ct} key wrap of K_share per wrapped device of the recipient account.
1 to 100 entries with distinct dids
sigbase64urlYesLabelled signature history-share by the sharing device's DSK.
B64U of 64 bytes: 86 characters

Response: 201 with HistoryShareCreated

Response fields
NameTypeRequiredMeaning and constraints
shareIduuidv7YesThe share ID.
seqintegerYesThe seq of the history.shared event.
createdAttimestampYesWhen the server accepted the share.

Errors: history.disabled, history.not_member, history.share_forbidden, history.share_invalid, history.share_too_large, history.share_range_invalid, sealed.not_in_group, mls.not_member, mls.group_not_found, security.account_required, security.device_not_enrolled, core.unauthenticated, core.idempotency_conflict, core.too_large, core.rate_limited, moderation.timed_out

15 Calls: control, leases, routing and continuity

POST {relayUrl}/connect

Open the participation's WebRTC data-channel session at the relay with a one-shot SDP offer (WHIP-like).

Auth
Authorization: Bearer <RelayTicket> (sv-relay+jwt)
Caller
client
Idempotency
Ticket jti is single use; never reuse a ticket (rejoin for a fresh one).
Specification
15 §6.2

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
offerstringYesSDP offer.
SDP with one m=application section, three negotiated data channels; sent without waiting for ICE gathering

Response: 201 with inline {answer, relaySessionId}

Response fields
NameTypeRequiredMeaning and constraints
answerstringYesSDP answer.
contains all of the relay's ICE candidates
relaySessionIdstringYesDiagnostic session ID.
opaque, at most 64 characters

Errors: relay.ticket_invalid, relay.ticket_expired, relay.ticket_replayed, relay.call_unknown, relay.wrong_relay, relay.bad_offer, relay.overloaded

GET /v1/contexts/{ctx}/call

Return the context's current call or null; readable by any member who passes §2.2 rows 2, 3 and 5, including needs_encryption members of a secure channel.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Specification
15 §3.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded

Response: 200 with {"call": Call | null}

Response fields
NameTypeRequiredMeaning and constraints
callCall or nullYesThe current call, or null.

Errors: core.unauthenticated, security.upgrade_required, core.not_found, channel.deleted, call.unsupported_context, member.not_member, member.pending, moderation.banned, dm.not_participant, channel.join_required

POST /v1/contexts/{ctx}/call/decline

Decline a ring from any device of a target account; the ring ends on all the account's devices.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Idempotency
A decline after the ring already ended is accepted and ignored.
Specification
15 §13.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.

Response: 204

Errors: call.ring_not_allowed

POST /v1/contexts/{ctx}/call/epoch-ready

call.epoch_ready: tell call control this device has installed SFrame send and receive keys for an MLS epoch.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Rate limit
10 per second per session
Secure contexts only
Yes
Specification
15 §3.7
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
epochintegerYesMLS epoch whose SFrame keys are installed.
> group's current epoch gives 409 call.epoch_unknown; ≤ call.mediaEpoch accepted and ignored

Response: 204

Errors: call.not_participant, call.not_permitted, call.epoch_unknown, core.rate_limited

POST /v1/contexts/{ctx}/call/join

Join, rejoin (with rejoinToken), switch or Move voice here (takeOver); creates the call if none is active and create is true.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Rate limit
30 per minute per session (429 core.rate_limited)
Idempotency
Clients SHOULD send Idempotency-Key; a fresh key for every new join, every scheduled auto-rejoin attempt and every resend with a changed body; reuse only to resend the same request after a lost response. A replayed stored response MUST carry a newly issued RelayTicket; every other member is replayed as stored.
Specification
15 §3.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded

Request body: JoinRequest

Request fields
NameTypeRequiredMeaning and constraints
featuresarray<string>YesMedia profiles this device supports in this call.
subset of the session features; voice-dc/1 MUST be present; may include video-dc/1, sfu-rtp/1; unknown values ignored
createbooleanNoStart a call if none is active; when false and no call is active the server answers 404 call.not_active.
default true
takeOverbooleanNoResolve a one-call conflict (§2.3) by ending the user's existing participation on this server (§11).
default false
rejoinTokenstringNoToken of a participation of this device, to restore its seat (§10.2).
rejoin-token = 1*128( ALPHA / DIGIT / "-" / "_" ); ≥128 bits entropy
plannedbooleanNoThis rejoin is a planned migration (§10.8).
default false; only with rejoinToken
selfMutedbooleanNoInitial self-mute state.
default false
selfDeafenedbooleanNoInitial self-deafen state.
default false
ringbooleanNoWhether starting a call rings the other participants (§13).
default true; DM contexts only; ignored when the call already exists and in channels; every automatic join MUST send false
videobooleanNoThe caller starts with webcam on; copied into the ring.
default false

Response: 200 with JoinResponse

Response fields
NameTypeRequiredMeaning and constraints
callCallYesThe call after admission.
pidintegerYesThis participation's index.
rejoinTokenstringYesFresh rejoin token (§10.2).
seatRestoredbooleanYestrue when a rejoin kept the earlier seat and pid.
leaseVoiceLeaseYesThis participant's rights (§4.1).
tickLeaseSnapshotYesThe snapshot that admitted this pid; the client's first lease tick.
receipt time for coverage = when the client first sent a join with this Idempotency-Key
relayRelayInfoYesRelay URL, RelayTicket and its expiry.
{url, ticket, ticketExpiresAt}

Errors: core.unauthenticated, security.upgrade_required, core.not_found, channel.deleted, call.unsupported_context, member.not_member, member.pending, moderation.banned, dm.not_participant, security.account_required, security.device_not_enrolled, channel.join_required, call.mls_join_required, call.already_in_call, call.full, call.relay_unavailable, call.not_active, call.rejoin_expired, call.moved, call.ended, call.rejoin_invalid, core.rate_limited, dm.upgrade_in_progress, dm.closed, dm.encryption_pending

POST /v1/contexts/{ctx}/call/leave

Remove the device's seat in the named call with reason left; idempotent.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Idempotency
Idempotent: 204 even if the device holds no seat or callId is unknown.
Specification
15 §3.4
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call to leave.

Response: 204

GET /v1/contexts/{ctx}/call/mutes

List current Mute for everyone entries; any member who may read the call (§3.2) may list them.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Pagination
collection
Specification
15 §3.6
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoPage cursor.
00 §7.10
limitintegerNoPage size.
00 §7.10

Response: 200 with {"items": [Mute], "nextCursor": …}

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<Mute>YesCurrent mutes.
nextCursorstring or nullYesCursor for the next page.

DELETE /v1/contexts/{ctx}/call/mutes/{addr}

Remove a Mute for everyone.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Idempotency
Idempotent. Clients send an Idempotency-Key as 10 §8.2 rule 6 requires.
Specification
15 §3.6
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded
addrstringYesThe muted account.
canonical address; aliases of this server's own domains are rewritten, other non-canonical addresses give 400 address.non_canonical; percent-encode chars outside RFC 3986 pchar as UTF-8; @ needs no encoding

Response: 204

Errors: core.forbidden, moderation.self_target, moderation.target_protected, call.not_permitted, address.non_canonical

GET /v1/contexts/{ctx}/call/mutes/{addr}

Read one Mute for everyone.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Specification
15 §3.6
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded
addrstringYesThe muted account.
canonical address; aliases of this server's own domains are rewritten, other non-canonical addresses give 400 address.non_canonical; percent-encode chars outside RFC 3986 pchar as UTF-8; @ needs no encoding

Response: 200, 404 with Mute

Errors: core.not_found, address.non_canonical

PUT /v1/contexts/{ctx}/call/mutes/{addr}

Mute for everyone: mute an account's audio in this voice channel's calls until removed; replaces reason/showReason/reportId of an existing mute.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Idempotency
Idempotent (PUT replaces). Clients send an Idempotency-Key as 10 §8.2 rule 6 requires.
Specification
15 §3.6
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded
addrstringYesThe muted account.
canonical address; aliases of this server's own domains are rewritten, other non-canonical addresses give 400 address.non_canonical; percent-encode chars outside RFC 3986 pchar as UTF-8; @ needs no encoding

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
reasonstringNoModerator's reason.
0–512 Unicode scalar values (10 §8.2 rule 2)
showReasonbooleanNoWhether the muted account is shown reason.
default false
reportIdstringNoLinked report.
as 10 §8.2 rule 3

Response: 200 with Mute

Errors: core.forbidden, moderation.self_target, moderation.target_protected, call.not_permitted, address.non_canonical

PATCH /v1/contexts/{ctx}/call/participants/{pid}

Update the device's own selfMuted, selfDeafened or sources; returns the updated Participant and emits call.participant_updated.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Rate limit
participant updates 10 per second per session
Specification
15 §3.5
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded
pidintegerYesParticipant index.
0–65535; MUST be the device's own pid

Request body: inline (any subset)

Request fields
NameTypeRequiredMeaning and constraints
selfMutedbooleanNoOwn microphone muted.
selfDeafenedbooleanNoOwn playback off (a client that deafens also mutes; not enforced).
sourcesobjectNoWhat the device is starting or stopping to send.
any of screen, screenAudio, webcam (booleans); screen/webcam true needs video in the lease, screenAudio needs audio

Response: 200 with Participant

Errors: call.not_participant, call.not_permitted, core.rate_limited

POST /v1/contexts/{ctx}/call/ring

Start a new 45 s ring (or restart one) for DM participants not in the call.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Rate limit
at most once every 10 s per call and at most 5 times per call (core.rate_limited)
Specification
15 §13.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
targetsarray<string>NoCanonical addresses to ring.
default: every account §13.1 item 1 allows to be rung that isn't in the call; excluded targets silently skipped

Response: 202

Errors: call.ring_not_allowed, core.rate_limited

POST /v1/contexts/{ctx}/call/sfu/session

Create the device's SFU session (one per call) by sending an SDP offer and publish list.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Feature
sfu-rtp/1 (in join features)
Specification
15 §8.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
offerstringYesSDP offer.
SDP, at most 16 KiB
publisharray<SfuPublish>YesPublished sources.
must match the offer's transceivers

Response: 201 with inline {sfuSessionId, answer, tracks}

Response fields
NameTypeRequiredMeaning and constraints
sfuSessionIduuidv7YesAssigned by call control.
answerstringYesSDP answer.
SDP
tracksarray<Track>YesTransceivers of the session.

Errors: call.not_participant, sfu.not_active, core.unsupported_feature, sfu.bad_sdp, sfu.unavailable, call.not_permitted

DELETE /v1/contexts/{ctx}/call/sfu/session/{sfuSessionId}

Close the device's SFU session.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Feature
sfu-rtp/1 (in join features)
Specification
15 §8.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded
sfuSessionIduuidv7YesThe SFU session.
assigned by call control

Response: 204

Errors: call.not_participant, sfu.not_active, core.unsupported_feature, sfu.session_unknown

POST /v1/contexts/{ctx}/call/sfu/session/{sfuSessionId}/answer

Answer a server offer (sfu.offer).

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Feature
sfu-rtp/1 (in join features)
Specification
15 §8.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded
sfuSessionIduuidv7YesThe SFU session.
assigned by call control

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
negotiationIduuidv7YesFrom sfu.offer.
answerstringYesSDP answer.
SDP, at most 16 KiB

Response: 204

Errors: call.not_participant, sfu.not_active, core.unsupported_feature, sfu.bad_sdp, sfu.session_unknown

POST /v1/contexts/{ctx}/call/sfu/session/{sfuSessionId}/offer

Client-initiated renegotiation (e.g. start or stop the webcam).

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Feature
sfu-rtp/1 (in join features)
Specification
15 §8.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded
sfuSessionIduuidv7YesThe SFU session.
assigned by call control

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
offerstringYesSDP offer.
SDP, at most 16 KiB
publisharray<SfuPublish>YesPublished sources.

Response: 200 with inline {answer, tracks}

Response fields
NameTypeRequiredMeaning and constraints
answerstringYesSDP answer.
tracksarray<Track>YesTransceivers.

Errors: call.not_participant, sfu.not_active, core.unsupported_feature, sfu.bad_sdp, sfu.unavailable, sfu.negotiation_conflict, sfu.session_unknown, call.not_permitted

PUT /v1/contexts/{ctx}/call/sfu/session/{sfuSessionId}/subscriptions

Replace the set of SFU tracks and layers this subscriber wants; server follows with sfu.offer if transceivers must change.

Auth
Authorization: Bearer (home or remote session) or Authorization: Bot (bot token)
Caller
client
Feature
sfu-rtp/1 (in join features)
Specification
15 §8.2
Path parameters
NameTypeRequiredMeaning and constraints
ctxstringYesThe call-capable context (voice channel, 1:1 DM or group DM).
context reference ch:…, dm:… or gdm:…; one path segment; the colon MAY be percent-encoded
sfuSessionIduuidv7YesThe SFU session.
assigned by call control

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
wantarray<SfuWant>YesWanted tracks.
each request replaces the previous set

Response: 202

Errors: call.not_participant, sfu.not_active, core.unsupported_feature, sfu.session_unknown

POST /v1/diagnostics

Upload a diagnostic report (call_failure, call_summary, or kinds owned by other documents) subject to the user's diagnostics setting.

Auth
home sessions, remote sessions and bot tokens
Caller
client
Rate limit
30 reports per hour per session; body ≤ 64 KiB (413 core.too_large)
Idempotency
Idempotent on reportId.
Specification
15 §14.3

Request body: DiagnosticReport

Request fields
NameTypeRequiredMeaning and constraints
reportIduuidv7YesIdempotency key for the report.
chosen by the client
kindstringYesReport kind (§14.4).
1–64 chars of lowercase letters, digits, _ and .; unknown kinds accepted
clientstringYesProduct and version.
as in session.hello (03)
platformDiagnosticPlatformYesPlatform.
desktop | web | ios | android | bot
createdAttimestampYesWhen the report was made.
ctxstringNoThe context.
call kinds
callIduuidv7NoThe call.
call kinds
dataobjectYesKind-specific data.
CallFailureData or CallSummaryData for call kinds

Response: 202 with inline {reportId}

Response fields
NameTypeRequiredMeaning and constraints
reportIduuidv7YesEcho of the report ID.

Errors: core.too_large, core.rate_limited

19 Notifications and push

POST {gatewayUrl}/v1/push

Home server hands a batch of opaque pushes to a gateway, which forwards each to APNs or FCM and returns per-push results.

Auth
Bearer sv-push+jwt (home server key, purpose sign)
Caller
server
Base
{gatewayUrl}
Rate limit
gateway MUST allow >= 60 pushes/min per push key, bursts of 20; home server <= 4 concurrent requests per gateway
Idempotency
new sv-push+jwt with new jti per attempt; jti single use at gateway
Specification
19 §11.3

Request body: GatewayPushRequest

Request fields
NameTypeRequiredMeaning and constraints
pushesarray<PushRequest>YesPushes.
1-100; body <= 256 KiB

Response: 200, 400, 401, 403, 413, 429, 503 with GatewayPushResponse

Response fields
NameTypeRequiredMeaning and constraints
resultsarray<PushResult>YesPer-push outcomes.
one per push in request order

Errors: core.invalid_request, push.unauthenticated, push.home_blocked, core.too_large, core.rate_limited, core.unavailable, push.key_invalid, push.home_mismatch, push.type_unsupported, push.token_gone, push.upstream_unavailable

POST {gatewayUrl}/v1/register

App sends its platform token to its own gateway and receives an opaque push key bound to one home server.

Auth
none (gateway MAY additionally require app attestation; failure 403 core.forbidden)
Caller
client
Base
{gatewayUrl}
Rate limit
gateway SHOULD allow at least 10 registrations per minute per IP address
Idempotency
each call returns a fresh push key (fresh nonce) even for the same token
Specification
19 §11.2

Request body: GatewayRegisterRequest

Request fields
NameTypeRequiredMeaning and constraints
platformenum GatewayPlatformYesPlatform channel.
apns | apns_voip | fcm
appIdstringYesBundle ID or package name.
1-255 characters
environmentenumNoAPNs environment.
required for apns and apns_voip; production | development
tokenstringYesPlatform token.
APNs token lowercase hex or FCM token; at most 4,096 chars
homestringYesAccount's home server.
canonical domain

Response: 200 with GatewayRegisterResponse

Response fields
NameTypeRequiredMeaning and constraints
pushKeystringYesOpaque push key.
1-1,024 chars of ALPHA / DIGIT / - . _ ~

Errors: core.invalid_request, push.app_unknown, push.platform_unsupported, core.rate_limited, core.forbidden

DELETE /v1/contexts/{ctx}/notification-settings

Restores per-context defaults.

Auth
Bearer (home session of the account); Bot tokens 403 core.forbidden; remote session 403 push.home_only
Caller
client
Base
{home}
Idempotency
repeatable
Specification
19 §7.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference.
03 §8.3 grammar
Query parameters
NameTypeRequiredMeaning and constraints
hoststring (domain)NoThe hosting server.
defaults to home server's canonical domain

Response: 204

Errors: core.forbidden, push.home_only

GET /v1/contexts/{ctx}/notification-settings

Returns the per-context settings for (host, ctx), served by the home server for contexts on any hosting server; missing entry returns defaults with 200.

Auth
Bearer (home session of the account); Bot tokens 403 core.forbidden; remote session 403 push.home_only
Caller
client
Base
{home}
Specification
19 §7.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference.
03 §8.3 grammar; colon MAY be percent-encoded; existence not checked
Query parameters
NameTypeRequiredMeaning and constraints
hoststring (domain)NoThe hosting server.
defaults to the home server's own canonical domain; canonicalized as §7.2

Response: 200 with ContextNotificationSettings

Errors: core.invalid_request, core.forbidden, push.home_only

PUT /v1/contexts/{ctx}/notification-settings

Sets per-context notification settings at the home server; emits notification.settings_changed.

Auth
Bearer (home session of the account); Bot tokens 403 core.forbidden; remote session 403 push.home_only
Caller
client
Base
{home}
Idempotency
PUT of full state
Specification
19 §7.3
Path parameters
NameTypeRequiredMeaning and constraints
ctxstring (context reference)YesContext reference.
03 §8.3 grammar
Query parameters
NameTypeRequiredMeaning and constraints
hoststring (domain)NoThe hosting server.
defaults to home server's canonical domain

Request body: ContextNotificationSettings (writable members)

Request fields
NameTypeRequiredMeaning and constraints
levelenum LevelYesContext level.
default | all | mentions | nothing; all only for dm: and gdm: (ch: -> 400 notification.level_unsupported)
muteUntiltimestamp | nullYesMute expiry.
at most 366 days ahead
everyoneboolean | nullYesOverrides everyone.
null inherits
callsboolean | nullYesOverrides calls.
DMs only; MUST be null for channels (non-null for ch: -> 400 core.invalid_request)

Response: 200 with ContextNotificationSettings

Errors: notification.level_unsupported, core.invalid_request, core.conflict, core.forbidden, push.home_only

GET /v1/me/notifications

Lists notification records visible to the calling device (targets null or containing it), newest createdAt first, with the device's badge.

Auth
Bearer (home session of the account); remote session 403 push.home_only; Bot tokens 403 core.forbidden
Caller
client
Base
{home}
Pagination
collection
Specification
19 §8.3
Query parameters
NameTypeRequiredMeaning and constraints
statestringNoState filter.
comma-separated RecordState values; default unread
hoststringNoFilter by hosting server.
ctxstringNoFilter by context.
requires host
kindstringNoKind filter.
comma-separated NotificationKind values
cursorstringNoPage cursor.
limitintegerNoPage size.
1-100, default 50

Response: 200 with NotificationListResponse

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<NotificationRecord>YesRecords.
nextCursorstring | nullYesNext page.
badgeintegerYesBadge for the calling device.
capped at 9,999

Errors: push.home_only, core.forbidden

GET /v1/me/notifications/{id}

Fetches one notification record plus the device's badge and the user's current previews setting; the first call a notification extension makes after a push.

Auth
Bearer home session, or Bearer fetch token (§9.3)
Caller
client
Base
{home}
Specification
19 §8.3
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesNotificationRecord id.
the push payload h

Response: 200 with NotificationFetchResponse

Response fields
NameTypeRequiredMeaning and constraints
recordNotificationRecordYesThe record.
badgeintegerYesBadge for the calling device (§15.1).
capped at 9,999
displayobjectYesUser's current global previews setting.
{ previews: full | sender_only | none }; unknown -> sender_only

Errors: core.not_found, core.unauthenticated, core.forbidden, push.home_only

GET /v1/me/notifications/events

Served by every server in its hosting role: returns exactly the events named by an event ticket, in current form, plus the recipient's readSeq; ciphertext only in secure contexts.

Auth
Bearer event ticket only (every other credential 401 notify.ticket_invalid)
Caller
client
Base
{host} (hostApi of the record)
Rate limit
per ticket: 30 requests per minute
Idempotency
read-only; ticket reusable until expiry
Specification
19 §8.6

Response: 200 with NotifiedEventsResponse

Response fields
NameTypeRequiredMeaning and constraints
ctxstringYesContext reference.
itemsarray<event envelope>YesThe notified events.
seq order; current form (edits applied, deletions as tombstones); invisible events omitted
readSeqintegerYesRecipient's current readSeq in the context (11 §9.1).

Errors: notify.ticket_invalid, notify.access_ended, core.rate_limited

POST /v1/me/notifications/read

Moves unread records to read or dismissed using exactly one selector (ids, host/ctx[/throughSeq], or all); emits notification.state_changed and background pushes to other devices.

Auth
Bearer home session, or Bearer fetch token (ids selector only)
Caller
client
Base
{home}
Rate limit
clients SHOULD send at most one host/ctx read-through per context per 2 s plus one on leaving (§15.2)
Idempotency
IDs that don't exist or aren't unread are skipped silently; naturally idempotent
Specification
19 §8.3

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
idsarray<uuidv7>NoRecord IDs.
1-100; one selector required
hoststringNoHosting server of the context selector.
with ctx; one selector required
ctxstringNoContext of the selector.
with host
throughSeqintegerNoRead-through position.
optional within host group; selects unread records with items whose latest item seq <= throughSeq; never selects records without items
allbooleanNoEvery unread record visible to the device.
true; one selector required
stateenumNoTarget state.
read (default) | dismissed

Response: 200 with inline

Response fields
NameTypeRequiredMeaning and constraints
updatedintegerYesRecords changed.
badgeintegerYesNew badge.

Errors: core.invalid_request, core.forbidden, core.unauthenticated, push.home_only

GET /v1/me/notifications/settings

Returns the account's global NotificationSettings.

Auth
Bearer (home session of the account); Bot tokens 403 core.forbidden; remote session 403 push.home_only
Caller
client
Base
{home}
Specification
19 §7.1

Response: 200 with NotificationSettings

Errors: core.forbidden, push.home_only

PUT /v1/me/notifications/settings

Replaces the global NotificationSettings (every writable member required), with optional optimistic concurrency via ifVersion; emits notification.settings_changed.

Auth
Bearer (home session of the account); Bot tokens 403 core.forbidden; remote session 403 push.home_only
Caller
client
Base
{home}
Idempotency
PUT of full state; ifVersion guards concurrent edits
Specification
19 §7.1

Request body: inline (NotificationSettings writable members + ifVersion)

Request fields
NameTypeRequiredMeaning and constraints
enabledbooleanYesMaster switch.
previewsenum PreviewsYesWhat notifications show.
full | sender_only | none
channelsenum LevelYesDefault level for channels.
mentions | nothing
dmsenum LevelYesDefault level for 1:1 DMs.
all | mentions | nothing
groupDmsenum LevelYesDefault level for group DMs.
all | mentions | nothing
everyonebooleanYesWhether everyone mentions notify.
callsbooleanYesWhether DM calls ring.
ifVersionintegerNoOptimistic concurrency guard.
if present and != stored version -> 409 core.conflict, nothing changed

Response: 200 with NotificationSettings

Errors: core.conflict, notification.level_unsupported, core.forbidden, push.home_only

GET /v1/me/notifications/settings/communities

Lists the account's CommunityNotificationSettings entries.

Auth
Bearer (home session of the account); Bot tokens 403 core.forbidden; remote session 403 push.home_only
Caller
client
Base
{home}
Pagination
collection
Specification
19 §7.2
Query parameters
NameTypeRequiredMeaning and constraints
cursorstringNoPage cursor.
cursor pagination per 00 §7.10 (parameters not named in 19)

Response: 200 with collection of CommunityNotificationSettings

Errors: core.forbidden, push.home_only

DELETE /v1/me/notifications/settings/communities/{host}

Restores the community defaults.

Auth
Bearer (home session of the account); Bot tokens 403 core.forbidden; remote session 403 push.home_only
Caller
client
Base
{home}
Idempotency
DELETE restores defaults; repeatable
Specification
19 §7.2
Path parameters
NameTypeRequiredMeaning and constraints
hoststring (domain)YesCommunity server's canonical domain.
canonical domain

Response: 204

Errors: core.invalid_request, core.forbidden, push.home_only

GET /v1/me/notifications/settings/communities/{host}

Returns the CommunityNotificationSettings for one hosting server; a missing entry returns the defaults (level default, others null) with 200.

Auth
Bearer (home session of the account); Bot tokens 403 core.forbidden; remote session 403 push.home_only
Caller
client
Base
{home}
Specification
19 §7.2
Path parameters
NameTypeRequiredMeaning and constraints
hoststring (domain)YesCommunity server's canonical domain.
client MUST send canonical domain; invalid domain -> 400 core.invalid_request

Response: 200 with CommunityNotificationSettings

Errors: core.invalid_request, core.forbidden, push.home_only

PUT /v1/me/notifications/settings/communities/{host}

Sets the per-community notification settings; server canonicalizes host via discovery but MUST NOT refuse an unreachable host; emits notification.settings_changed.

Auth
Bearer (home session of the account); Bot tokens 403 core.forbidden; remote session 403 push.home_only
Caller
client
Base
{home}
Idempotency
PUT of full state
Specification
19 §7.2
Path parameters
NameTypeRequiredMeaning and constraints
hoststring (domain)YesCommunity server's canonical domain.
canonical domain; stored provisionally as lowercase A-label if unresolvable

Request body: CommunityNotificationSettings (writable members)

Request fields
NameTypeRequiredMeaning and constraints
levelenum LevelYesCommunity level.
default | mentions | nothing
muteUntiltimestamp | nullYesWhile in the future the community's channels don't notify.
at most 366 days ahead; null for none
everyoneboolean | nullYesOverrides global everyone.
null inherits

Response: 200 with CommunityNotificationSettings

Errors: core.invalid_request, core.conflict, notification.level_unsupported, core.forbidden, push.home_only

GET /v1/me/notifications/settings/contexts

Lists the account's ContextNotificationSettings entries (used e.g. to show muted icons on every device).

Auth
Bearer (home session of the account); Bot tokens 403 core.forbidden; remote session 403 push.home_only
Caller
client
Base
{home}
Pagination
collection
Specification
19 §7.3
Query parameters
NameTypeRequiredMeaning and constraints
hoststring (domain)NoFilter by hosting server.
cursorstringNoPage cursor.
cursor pagination per 00 §7.10 (parameters not named in 19)

Response: 200 with collection of ContextNotificationSettings

Errors: core.forbidden, push.home_only

GET /v1/me/push-registrations

Lists the calling device's registrations (never includes fetchToken).

Auth
Bearer (home session of the device); remote session 403 push.home_only
Caller
client
Base
{home}
Specification
19 §9.2

Response: 200 with { items: [PushRegistration], nextCursor: null }

Response fields
NameTypeRequiredMeaning and constraints
itemsarray<PushRegistration>YesRegistrations.
nextCursornullYesNo pagination.
always null

Errors: push.home_only

POST /v1/me/push-registrations

Creates a push registration for the calling device (gateway or webpush) and issues a fetch token; matching existing registration is updated (200) instead.

Auth
Bearer (home session of the owning device); remote session 403 push.home_only
Caller
client
Base
{home}
Idempotency
same transport + same pushKey (or webPush.endpoint) on this device updates types, rotates fetch token, answers 200; client MUST GET its registrations before POST when it lost their IDs
Feature
Web Push only if ServerMetadata endpoints.push.webPushKey present (else 501 core.unsupported_feature data.feature webpush)
Specification
19 §9.2

Request body: inline (PushRegistration writable members)

Request fields
NameTypeRequiredMeaning and constraints
transportenum TransportYesPush channel kind.
gateway | webpush
typesarray<PushType>YesPush types accepted.
non-empty subset of alert, call, background; webpush MUST NOT include background
gatewayUrlstring (base-url)NoGateway base URL.
gateway only; https, domain host, public unicast addresses only; no trailing slash; normalized
pushKeystringNoPush key from {gatewayUrl}/v1/register.
gateway only; 1-1,024 chars of ALPHA / DIGIT / - . _ ~
webPushWebPushSubscriptionNo{endpoint, p256dh, auth}.
webpush only
vapidKeystringNoThe applicationServerKey used to subscribe.
webpush only; must equal current or retained webPushKey

Response: 201, 200 with PushRegistration (with fetchToken)

Errors: push.device_not_eligible, push.registration_invalid, push.gateway_not_allowed, core.unsupported_feature, push.too_many_registrations, push.home_only

DELETE /v1/me/push-registrations/{id}

Deletes the registration and its fetch token.

Auth
Bearer (home session of the device); remote session 403 push.home_only
Caller
client
Base
{home}
Idempotency
Deleting a non-existent registration answers 204
Specification
19 §9.2
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesRegistration id.

Response: 204

Errors: push.home_only

GET /v1/me/push-registrations/{id}

Returns one registration of the calling device.

Auth
Bearer (home session of the device); remote session 403 push.home_only
Caller
client
Base
{home}
Specification
19 §9.2
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesRegistration id (r).

Response: 200 with PushRegistration

Errors: core.not_found, push.home_only

PUT /v1/me/push-registrations/{id}

Replaces types and transport data (pushKey, or webPush and vapidKey); optional fetch-token rotation; id stays the same.

Auth
Bearer (home session of the device); remote session 403 push.home_only
Caller
client
Base
{home}
Idempotency
PUT; transport and gatewayUrl can't change (400 push.registration_invalid)
Specification
19 §9.2
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesRegistration id.

Request body: inline

Request fields
NameTypeRequiredMeaning and constraints
typesarray<PushType>YesPush types.
as POST
pushKeystringNoNew push key.
gateway
webPushWebPushSubscriptionNoNew subscription.
webpush
vapidKeystringNoapplicationServerKey used.
webpush
rotateFetchTokenbooleanNoIssue new fetch token; old stops at once.
default false; periodic 30-day re-registration MUST set true

Response: 200 with PushRegistration (fetchToken only when rotated)

Errors: push.registration_invalid, push.gateway_not_allowed, push.device_not_eligible, core.not_found, push.home_only, core.unsupported_feature

POST /v1/me/push-registrations/{id}/test

Creates a test record targeted at the calling device and pushes it to this registration only, ignoring every setting.

Auth
Bearer (home session of the device); remote session 403 push.home_only
Caller
client
Base
{home}
Rate limit
at most 5 per registration per hour
Specification
19 §9.2
Path parameters
NameTypeRequiredMeaning and constraints
iduuidv7YesRegistration id.

Response: 202 with inline

Response fields
NameTypeRequiredMeaning and constraints
recordIduuidv7YesThe test record's id.

Errors: core.rate_limited, core.not_found, push.home_only

POST <endpoint>

Home server, as RFC 8030 application server, sends the encrypted 93-octet payload (196-octet aes128gcm body) to a browser or UnifiedPush endpoint.

Auth
vapid (RFC 8292): Authorization: vapid t=<VAPID JWT>, k=<webPushKey>
Caller
server
Base
browser push service endpoint from PushSubscription
Feature
endpoints.push.webPushKey (02)
Specification
19 §12.2

Request body: WebPushMessage (binary, aes128gcm)

Response: 201, 403, 404, 410, 400, 413, 429

20 Client behaviour and user experience

GET /sloppyv-release.json

Web release manifest a web client publisher SHOULD publish on the web client's own origin for every release (PD-20-6); not a server API endpoint. The method is implied (a published static file); the spec only says 'publish ... at /sloppyv-release.json on the client's origin'.

Auth
none
Caller
browser
Specification
20 §16.7

Response: with WebReleaseManifest

21 Deployment and operations

GET {controlUrl} (operator-configured absolute wss: URL, or ws: URL on a loopback host, or a Unix domain socket; MUST NOT be under {base}/v1/)

WebSocket upgrade (RFC 6455) opened by a relay node to the issuer's call control, with subprotocol sloppyv-relay-control.v1; carries relayctl.* JSON messages. Not a protocol endpoint of the server, not advertised in ServerMetadata, and SHOULD NOT be reachable from the public Internet except by relays.

Auth
Authorization: Bearer <credential> (relay credential, >= 128 bits, per (relay node, issuer)) or a TLS client certificate mapped to exactly one relayId
Caller
server
Specification
21 §6.2.1, §6.2.2

Response: 400, 401 with problem object (00 §7.9) on failure; otherwise a WebSocket carrying RelayControlMessage frames

Errors: core.unsupported_version, core.unauthenticated