TEAMYFY API v1
API приложения
Два разных уровня контракта
Клиентский OpenAPI содержит опубликованный контракт авторизации, профиля, медиа, звонков и защищённых сообщений. Ниже — все его операции с типизированными запросами и ответами.
Полный каталог application routes отдельно показывает маршруты, которыми пользуются собственные клиенты Teamyfy. Каталог не обещает стабильность внутреннего клиентского протокола и не подменяет его типизированную спецификацию. Для ботов используйте полный integration API, а не пользовательские JWT и внутренние presentation/recorder маршруты.
Операторские admin, private recorder worker, metrics и приватный music runtime не входят в публичный API. Их нельзя использовать как способ расширить права бота.
PUT/api/v1/chat/push/subscription
subscribeBrowserPush
{
"operationId": "subscribeBrowserPush",
"tags": [
"Profile"
],
"description": "Bind the browser endpoint to the authenticated account. A repeated binding attempt for the same account and subscription keys retains its delivery generation.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BrowserPushSubscriptionRequest"
}
}
}
},
"responses": {
"200": {
"description": "Registered browser endpoint and its opaque delivery generation",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BrowserPushSubscriptionResponse"
}
}
}
}
}
}DELETE/api/v1/chat/push/subscription
unsubscribeBrowserPush
{
"operationId": "unsubscribeBrowserPush",
"tags": [
"Profile"
],
"description": "Remove the caller's subscription for the supplied binding ID. Legacy requests without a binding ID can remove only subscriptions that have not been claimed by a registration attempt.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DeleteBrowserPushSubscriptionRequest"
}
}
}
},
"responses": {
"204": {
"description": "Unsubscription request processed"
}
}
}GET/api/v1/notifications/preferences
getNotificationPreferences
{
"operationId": "getNotificationPreferences",
"tags": [
"Profile"
],
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"responses": {
"200": {
"description": "Account-private committed notification snapshot",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotificationPreferencesResponse"
}
}
}
}
}
}PATCH/api/v1/notifications/preferences
updateNotificationPreference
{
"operationId": "updateNotificationPreference",
"tags": [
"Profile"
],
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateNotificationPreferenceRequest"
}
}
}
},
"responses": {
"200": {
"description": "Account-private committed notification snapshot",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotificationPreferencesResponse"
}
}
}
}
}
}PATCH/api/v1/notifications/settings
updateNotificationSettings
{
"operationId": "updateNotificationSettings",
"tags": [
"Profile"
],
"parameters": [
{
"name": "fields",
"in": "query",
"required": false,
"style": "form",
"explode": false,
"description": "Comma-separated names of the edited settings. These fields are applied atomically to the current settings. Omit the parameter to replace all settings. Empty, duplicate or unknown fields are rejected.",
"schema": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"quietHoursEnabled",
"quietStartMinutes",
"quietEndMinutes",
"quietTimezone",
"mentionsEnabled",
"repliesEnabled",
"threadsEnabled"
]
}
}
}
],
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateNotificationSettingsRequest"
}
}
}
},
"responses": {
"200": {
"description": "Account-private committed notification snapshot",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotificationPreferencesResponse"
}
}
}
}
}
}POST/api/v1/communities/{communityId}/sections
createCommunitySection
{
"operationId": "createCommunitySection",
"tags": [
"Communities"
],
"description": "Requires permission to manage the community structure. When access is supplied, viewing rules and section attributes are saved atomically. Without access, creation inherits visibility and an edit preserves existing rules. A successful commit invalidates each active member's own navigation projection.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "communityId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateCommunitySectionRequest"
}
}
}
},
"responses": {
"200": {
"description": "Saved resource with final access rules",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommunitySectionResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}PATCH/api/v1/communities/{communityId}/sections/{sectionId}
updateCommunitySection
{
"operationId": "updateCommunitySection",
"tags": [
"Communities"
],
"description": "Requires permission to manage the community structure. When access is supplied, viewing rules and section attributes are saved atomically. Without access, creation inherits visibility and an edit preserves existing rules. A successful commit invalidates each active member's own navigation projection.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "communityId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "sectionId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateCommunitySectionRequest"
}
}
}
},
"responses": {
"200": {
"description": "Saved resource with final access rules",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommunitySectionResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/profile/mentions/resolve
Resolve historical mention identifiers to stable account owners and current public identifiers
{
"operationId": "resolveMentions",
"tags": [
"Profile"
],
"description": "Batch resolve current and retained historical public identifiers to stable user IDs and current identifiers. Unknown identifiers are omitted. ownIdentifiers contains only the authenticated account identifiers; responses must not be cached or shared between accounts.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResolveMentionsRequest"
}
}
}
},
"responses": {
"200": {
"description": "Resolved users and the authenticated account own identifiers",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResolveMentionsResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"summary": "Resolve historical mention identifiers to stable account owners and current public identifiers"
}POST/api/v1/feedback
Submit account-owned feedback without publishing it
{
"tags": [
"Feedback"
],
"operationId": "createFeedback",
"summary": "Submit account-owned feedback without publishing it",
"description": "Authenticated, 5 requests per minute per account. Description is trimmed and limited to 500 Unicode code points. Optional imageUploadId is an unused READY upload owned by this account from the existing chat upload flow, at most 5 MiB, whose actual raster is validated. It is consumed atomically with feedback. No chat/message attachment ID or URL is accepted. Same clientRequestId and normalized content returns the original result; changed content conflicts. No automatic logs are accepted or stored and no public feedback list exists.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateFeedbackRequest"
}
}
}
},
"responses": {
"200": {
"description": "Created or identical idempotent replay",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeedbackResponse"
}
}
}
},
"400": {
"description": "Invalid description, metadata, UUID or actual raster"
},
"401": {
"description": "Authentication required"
},
"404": {
"description": "Owned image upload was not found"
},
"409": {
"description": "Request ID content differs or image was consumed, cancelled, reserved or expired"
},
"413": {
"description": "JSON exceeds 8192 bytes or image exceeds 5 MiB"
},
"429": {
"description": "Feedback account rate limit exceeded"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"description": "Bounded media/database work unavailable; retry the same request ID"
}
}
}POST/api/v1/profile/names/resolve
resolveUserNameOverrides
{
"operationId": "resolveUserNameOverrides",
"tags": [
"Profile"
],
"description": "Batch resolve viewer-owned private aliases and optional joined-community nicknames. An item is returned for every distinct requested ID, even unknown IDs. Private alias takes precedence over community nickname, then canonical display name. Personalized results must never be shared between viewers.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResolveUserNamesRequest"
}
}
}
},
"responses": {
"200": {
"description": "Viewer-scoped result.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserNameOverridesListResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}PATCH/api/v1/profile/users/{userId}/alias
updatePrivateUserAlias
{
"operationId": "updatePrivateUserAlias",
"tags": [
"Profile"
],
"description": "Set or clear an alias owned exclusively by the authenticated viewer. Never changes the target profile. Other devices of this viewer receive a content-free invalidation; the target and other users do not.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateUserAliasRequest"
}
}
}
},
"responses": {
"200": {
"description": "Viewer-scoped result.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserAliasResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"parameters": [
{
"name": "userId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
]
}PATCH/api/v1/communities/{communityId}/members/me/nickname
updateOwnCommunityNickname
{
"operationId": "updateOwnCommunityNickname",
"tags": [
"Profile"
],
"description": "Set or clear only the authenticated joined, non-banned member nickname. Existing administrator ACLs are unchanged. Nicknames are available only within this community to joined members and disappear on membership removal.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateCommunityNicknameRequest"
}
}
}
},
"responses": {
"200": {
"description": "Viewer-scoped result.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommunityNicknameResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"parameters": [
{
"name": "communityId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
]
}POST/api/v1/friends/activity
Refresh activity for an exact loaded friend window
{
"operationId": "getFriendActivity",
"tags": [
"Friends"
],
"summary": "Refresh activity for an exact loaded friend window",
"description": "Accepts 1..100 positive user IDs; duplicate IDs are deduplicated after enforcing the raw request bound. Returns only current, non-blocked friends, including explicit idle items. Omitted IDs are not eligible friends. The response grants no room access and uses the same activity visibility as the existing friends list.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FriendActivityRequest"
}
}
}
},
"responses": {
"200": {
"description": "Current activity for eligible requested friends",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FriendActivityBatchResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/auth/register
Register a user and issue an access session
{
"operationId": "register",
"tags": [
"Auth"
],
"summary": "Register a user and issue an access session",
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RegisterRequest"
}
}
}
},
"responses": {
"200": {
"description": "Registered. Cookie mode returns an empty accessToken and tokenType Cookie while setting the HttpOnly cookie.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
},
"Set-Cookie": {
"$ref": "#/components/headers/WebSessionSetCookie"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AuthResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/auth/login
Authenticate and issue an access session
{
"operationId": "login",
"tags": [
"Auth"
],
"summary": "Authenticate and issue an access session",
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginRequest"
}
}
}
},
"responses": {
"200": {
"description": "Authenticated. Cookie mode returns an empty accessToken and tokenType Cookie while setting the HttpOnly cookie.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
},
"Set-Cookie": {
"$ref": "#/components/headers/WebSessionSetCookie"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AuthResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/auth/logout
Revoke the current device session
{
"operationId": "logout",
"tags": [
"Auth"
],
"summary": "Revoke the current device session",
"description": "Requires current access authentication, revokes its persistent session and all refresh generations, and expires both Web cookies. Already-revoked access returns 401 and cannot refresh.",
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"responses": {
"204": {
"description": "Current persistent session revoked and Web cookies expired.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
},
"Set-Cookie": {
"$ref": "#/components/headers/WebSessionClearCookie"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
]
}POST/api/v1/auth/refresh
Rotate a device-bound refresh proof
{
"operationId": "refreshAccessToken",
"tags": [
"Auth"
],
"summary": "Rotate a device-bound refresh proof",
"description": "Accepts an opaque native refreshToken JSON proof or an HttpOnly refresh cookie with X-XChat-Session: cookie. No valid access JWT is required. X-XChat-Device-Id must match the original login. Returns a 15-minute access token and rotates the refresh generation within an absolute 30-day session. Reuse of the immediate predecessor within 120 seconds returns its exact successor without further rotation; verified older or late reuse revokes that session family.",
"security": [],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"responses": {
"200": {
"description": "Session rotated.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
},
"Set-Cookie": {
"$ref": "#/components/headers/WebSessionSetCookie"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccessTokenRefreshResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccessTokenRefreshRequest"
}
}
}
}
}POST/api/v1/auth/realtime-ticket
Issue a short-lived one-time WebSocket admission ticket
{
"operationId": "issueRealtimeTicket",
"tags": [
"Auth"
],
"summary": "Issue a short-lived one-time WebSocket admission ticket",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
}
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Current history generation from the negotiated workspace/capability. Mismatch returns 409 before content allocation."
}
],
"responses": {
"200": {
"description": "One-time ticket issued.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RealtimeTicketResponse"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/profile/me
Get the authenticated user's profile
{
"operationId": "getOwnProfile",
"tags": [
"Profile"
],
"summary": "Get the authenticated user's profile",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"responses": {
"200": {
"description": "Own profile.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserProfileResponse"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}PATCH/api/v1/profile/me
Update the authenticated user's profile
{
"operationId": "updateOwnProfile",
"tags": [
"Profile"
],
"summary": "Update the authenticated user's profile",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateProfileRequest"
}
}
}
},
"responses": {
"200": {
"description": "Updated own profile.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserProfileResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/profile/me/avatar
Replace the authenticated user's avatar
{
"operationId": "updateOwnAvatar",
"tags": [
"Profile"
],
"summary": "Replace the authenticated user's avatar",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"requestBody": {
"required": true,
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/AvatarUploadRequest"
}
}
}
},
"responses": {
"200": {
"description": "Updated own profile.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserProfileResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"$ref": "#/components/responses/PayloadTooLarge"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/profile/users/by-identifier/{userIdentifier}
Get a public profile by stable identifier
{
"operationId": "getPublicProfileByIdentifier",
"tags": [
"Profile"
],
"summary": "Get a public profile by stable identifier",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "userIdentifier",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1
}
}
],
"responses": {
"200": {
"description": "Public profile.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicUserProfileResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/media/link-preview
Resolve bounded public link metadata
{
"operationId": "resolveLinkPreview",
"tags": [
"Media"
],
"summary": "Resolve bounded public link metadata",
"description": "Returns generic link metadata and, for recognized public YouTube, VK Video, or RUTUBE links, provider-owned scalar identifiers. Provider iframe HTML and embed URLs are never returned.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "url",
"in": "query",
"required": true,
"description": "Public HTTP or HTTPS link. A missing scheme is normalized to HTTPS by the server.",
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 2000
}
}
],
"responses": {
"200": {
"description": "Bounded link preview. externalVideo is omitted for generic links.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LinkPreviewResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"413": {
"$ref": "#/components/responses/PayloadTooLarge"
},
"422": {
"$ref": "#/components/responses/UnprocessableEntity"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"502": {
"$ref": "#/components/responses/BadGateway"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"504": {
"$ref": "#/components/responses/GatewayTimeout"
}
}
}POST/api/v1/voice/communities/{communityId}/summaries
Read up to 100 visible channel summaries
{
"operationId": "getVoiceChannelSummaries",
"tags": [
"Voice"
],
"summary": "Read up to 100 visible channel summaries",
"description": "Read up to 100 visible channel summaries. Authorization is evaluated before projection. Unauthorized, unknown, foreign-community and non-voice channels are omitted; a visible idle channel is returned with an absent or null session. Only host profiles and the current actor control state are projected.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "communityId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful projection. Null and default values may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceChannelSummariesResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceChannelSummariesRequest"
}
}
}
}
}POST/api/v1/voice/communities/{communityId}/locations
Locate up to 100 requested members in visible voice channels
{
"operationId": "getVoiceMemberLocations",
"tags": [
"Voice"
],
"summary": "Locate up to 100 requested members in visible voice channels",
"description": "Locate up to 100 requested members in visible voice channels. Users without a visible active location, including banned or absent members, are omitted. This endpoint does not return rosters.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "communityId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
}
],
"responses": {
"200": {
"description": "Successful projection. Null and default values may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceMemberLocationsResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceMemberLocationsRequest"
}
}
}
}
}GET/api/v1/voice/channels/{channelId}/participants
Read a bounded voice roster ordered by joinedAt then userId
{
"operationId": "getVoiceParticipantsPage",
"tags": [
"Voice"
],
"summary": "Read a bounded voice roster ordered by joinedAt then userId",
"description": "Read a bounded voice roster ordered by joinedAt then userId. Header revision and rows share one database snapshot. Cursor binds channel, session and roster revision; a replaced session or changed revision returns 409. Restart without a cursor and discard older pages.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "limit",
"in": "query",
"required": false,
"description": "Maximum returned entries; malformed and out-of-range values are rejected with 400.",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 100
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Opaque continuation returned by the preceding page. Invalid tokens return 400; stale roster revisions return 409 and require restarting from the first page.",
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
}
],
"responses": {
"200": {
"description": "Successful projection. Null and default values may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceParticipantsPageResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/voice/channels/{channelId}/heartbeat
Renew current device participation
{
"operationId": "heartbeatVoiceChannel",
"tags": [
"Voice"
],
"summary": "Renew current device participation",
"description": "Renew the exact session, participation UUID and current device from the required ownership protocol 1 command. compact=true selects the compact actor state; omission preserves the full response shape. Heartbeats do not advance revisions.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "compact",
"in": "query",
"required": false,
"description": "Only the literal true selects VoiceHeartbeatAckResponse; omission and all other values preserve VoiceSessionResponse.",
"schema": {
"type": "boolean",
"default": false
}
}
],
"responses": {
"200": {
"description": "Successful projection. Null and default values may be omitted.",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/VoiceSessionResponse"
},
{
"$ref": "#/components/schemas/VoiceHeartbeatAckResponse"
}
]
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionCommandRequest"
}
}
}
}
}GET/api/v1/streams/active/summaries
Read live stream summaries across visible communities
{
"operationId": "getActiveStreamSummaries",
"tags": [
"Stream"
],
"summary": "Read live stream summaries across visible communities",
"description": "Read live stream summaries across visible communities. Membership and effective channel or section ACLs are applied before LIMIT. Profiles are loaded only for returned hosts. Directory cursor binds the actor and descending startedAt/id ordering; new entries are obtained by refreshing the first page.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "limit",
"in": "query",
"required": false,
"description": "Maximum returned entries; malformed and out-of-range values are rejected with 400.",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 100
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Opaque continuation returned by the preceding directory page, bound to the actor and descending startedAt/id ordering. Invalid tokens return 400. Refresh the first page to obtain new entries.",
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
}
],
"responses": {
"200": {
"description": "Successful projection. Null and default values may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StreamSummaryPageResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/streams/channels/{channelId}/summary
Read one visible live stream summary
{
"operationId": "getChannelStreamSummary",
"tags": [
"Stream"
],
"summary": "Read one visible live stream summary",
"description": "Read one visible live stream summary. No active session returns 404; denied channel access returns 403. Legacy stream mutation responses remain unchanged; refresh this summary after a mutation under a client request fence.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
}
],
"responses": {
"200": {
"description": "Successful projection. Null and default values may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StreamSessionSummaryResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/streams/{sessionId}/participants/page
Read stream participants ordered by HOST then SPEAKER then VIEWER, joinedAt and userId
{
"operationId": "getStreamParticipantsPage",
"tags": [
"Stream"
],
"summary": "Read stream participants ordered by HOST then SPEAKER then VIEWER, joinedAt and userId",
"description": "Read stream participants ordered by HOST then SPEAKER then VIEWER, joinedAt and userId. Header revision, count and rows share one database snapshot. Cursor binds actor, session and roster revision; a changed revision returns 409. An ended accessible stream returns ENDED with an empty roster. Only the returned page profiles are hydrated.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "sessionId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "limit",
"in": "query",
"required": false,
"description": "Maximum returned entries; malformed and out-of-range values are rejected with 400.",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Opaque continuation returned by the preceding page. Invalid tokens return 400; stale roster revisions return 409 and require restarting from the first page.",
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
}
],
"responses": {
"200": {
"description": "Successful projection. Null and default values may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StreamParticipantPageResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/chat/attachments/{attachmentId}/download
Download an authorized attachment or single byte range
{
"operationId": "downloadChatAttachment",
"tags": [
"Media"
],
"summary": "Download an authorized attachment or single byte range",
"description": "Every request authorizes the current DM/channel message before metadata or data access. No public URL or URL credential. Satisfiable single bytes range returns 206; If-Range mismatch, weak/date validator, unknown unit or unsupported multiple ranges returns full 200. Malformed/unsatisfiable single bytes range returns 416. Empty resources ignore Range and return empty 200. A storage identity change between metadata and body open returns 409. Authenticated responses must not enter shared caches.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "attachmentId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "Range",
"in": "header",
"description": "Single inclusive bytes=start-end, bytes=start- or bytes=-suffix-length. End clamps to EOF; large numeric bounds saturate safely. Supported single-range header is bounded to 4096 characters.",
"schema": {
"type": "string"
}
},
{
"name": "If-Range",
"in": "header",
"description": "Exact strong ETag from HEAD/GET. Mismatch yields full 200; range clients should inspect status/identity before reading the body.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Full immutable representation, including existing full-download clients.",
"headers": {
"Content-Length": {
"description": "Full representation size on HEAD/200; transferred byte count on 206.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
"Content-Type": {
"description": "Original attachment MIME type.",
"schema": {
"type": "string"
}
},
"ETag": {
"description": "Strong opaque identity, stable for unchanged bytes and representation metadata.",
"schema": {
"type": "string",
"pattern": "^\"[0-9a-f]{64}\"$"
}
},
"Accept-Ranges": {
"schema": {
"type": "string",
"enum": [
"bytes"
]
}
},
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store, no-transform"
]
}
},
"Content-Encoding": {
"schema": {
"type": "string",
"enum": [
"identity"
]
}
},
"Content-Disposition": {
"description": "Existing attachment download disposition and sanitized filename.",
"schema": {
"type": "string"
}
}
},
"content": {
"*/*": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
},
"206": {
"description": "Exact single range; Content-Length is range size, not full resource size.",
"headers": {
"Content-Length": {
"description": "Full representation size on HEAD/200; transferred byte count on 206.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
"Content-Type": {
"description": "Original attachment MIME type.",
"schema": {
"type": "string"
}
},
"ETag": {
"description": "Strong opaque identity, stable for unchanged bytes and representation metadata.",
"schema": {
"type": "string",
"pattern": "^\"[0-9a-f]{64}\"$"
}
},
"Accept-Ranges": {
"schema": {
"type": "string",
"enum": [
"bytes"
]
}
},
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store, no-transform"
]
}
},
"Content-Encoding": {
"schema": {
"type": "string",
"enum": [
"identity"
]
}
},
"Content-Disposition": {
"description": "Existing attachment download disposition and sanitized filename.",
"schema": {
"type": "string"
}
},
"Content-Range": {
"schema": {
"type": "string",
"pattern": "^bytes [0-9]+-[0-9]+/[0-9]+$"
}
}
},
"content": {
"*/*": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"416": {
"description": "Invalid or unsatisfiable supported single byte range, after authorization. Empty body.",
"headers": {
"Content-Range": {
"schema": {
"type": "string",
"pattern": "^bytes \\*/[0-9]+$"
}
},
"Content-Length": {
"schema": {
"type": "integer",
"enum": [
0
]
}
},
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store, no-transform"
]
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}HEAD/api/v1/chat/attachments/{attachmentId}/download
Read authorized immutable attachment metadata
{
"operationId": "describeChatAttachmentDownload",
"tags": [
"Media"
],
"summary": "Read authorized immutable attachment metadata",
"description": "Same current-message authorization as GET. Reports total size/type/strong ETag without opening a body stream. Ignores Range and If-Range. HEAD responses have no body, including errors.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "attachmentId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"200": {
"description": "Full representation metadata with no body.",
"headers": {
"Content-Length": {
"description": "Full representation size on HEAD/200; transferred byte count on 206.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
"Content-Type": {
"description": "Original attachment MIME type.",
"schema": {
"type": "string"
}
},
"ETag": {
"description": "Strong opaque identity, stable for unchanged bytes and representation metadata.",
"schema": {
"type": "string",
"pattern": "^\"[0-9a-f]{64}\"$"
}
},
"Accept-Ranges": {
"schema": {
"type": "string",
"enum": [
"bytes"
]
}
},
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store, no-transform"
]
}
},
"Content-Encoding": {
"schema": {
"type": "string",
"enum": [
"identity"
]
}
},
"Content-Disposition": {
"description": "Existing attachment download disposition and sanitized filename.",
"schema": {
"type": "string"
}
}
}
},
"400": {
"description": "BadRequest; no response body."
},
"401": {
"description": "Unauthorized; no response body."
},
"403": {
"description": "Forbidden; no response body."
},
"404": {
"description": "NotFound; no response body."
},
"429": {
"description": "TooManyRequests; no response body."
},
"500": {
"description": "InternalServerError; no response body."
},
"503": {
"description": "ServiceUnavailable; no response body."
}
}
}POST/api/v1/voice/direct/{conversationId}/start
Apply identity-fenced voice start
{
"operationId": "directVoiceStart",
"tags": [
"Voice"
],
"summary": "Apply identity-fenced voice start",
"description": "Commands must bind the observed session. Channel mutations also bind the immutable actor participation; stage moderation additionally binds the target participation. Missing protocol or required identity is 426; stale identity is 409. Start/join admit a new participation only when the observed session and participation absence still match under the database transition lock.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Current voice session.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"410": {
"description": "The expected call expired.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionCommandRequest"
}
}
}
}
}POST/api/v1/voice/direct/{conversationId}/join
Apply identity-fenced voice join
{
"operationId": "directVoiceJoin",
"tags": [
"Voice"
],
"summary": "Apply identity-fenced voice join",
"description": "Commands must bind the observed session. Channel mutations also bind the immutable actor participation; stage moderation additionally binds the target participation. Missing protocol or required identity is 426; stale identity is 409. Start/join admit a new participation only when the observed session and participation absence still match under the database transition lock.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Current voice session.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"410": {
"description": "The expected call expired.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionCommandRequest"
}
}
}
}
}POST/api/v1/voice/direct/{conversationId}/leave
Apply identity-fenced voice leave
{
"operationId": "directVoiceLeave",
"tags": [
"Voice"
],
"summary": "Apply identity-fenced voice leave",
"description": "Commands must bind the observed session. Channel mutations also bind the immutable actor participation; stage moderation additionally binds the target participation. Missing protocol or required identity is 426; stale identity is 409. Start/join admit a new participation only when the observed session and participation absence still match under the database transition lock.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"204": {
"description": "Exact voice ownership ended."
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"410": {
"description": "The expected call expired.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionCommandRequest"
}
}
}
}
}PATCH/api/v1/voice/direct/{conversationId}/state
Apply identity-fenced voice state
{
"operationId": "directVoiceState",
"tags": [
"Voice"
],
"summary": "Apply identity-fenced voice state",
"description": "Commands must bind the observed session. Channel mutations also bind the immutable actor participation; stage moderation additionally binds the target participation. Missing protocol or required identity is 426; stale identity is 409. Start/join admit a new participation only when the observed session and participation absence still match under the database transition lock.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Current voice session.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"410": {
"description": "The expected call expired.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateDirectVoiceParticipantStateRequest"
}
}
}
}
}POST/api/v1/voice/channels/{channelId}/start
Apply identity-fenced voice start
{
"operationId": "channelVoiceStart",
"tags": [
"Voice"
],
"summary": "Apply identity-fenced voice start",
"description": "Commands must bind the observed session. Channel mutations also bind the immutable actor participation; stage moderation additionally binds the target participation. Missing protocol or required identity is 426; stale identity is 409. Start/join admit a new participation only when the observed session and participation absence still match under the database transition lock.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Current voice session.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StartChannelVoiceSessionRequest"
}
}
}
}
}POST/api/v1/voice/channels/{channelId}/join
Apply identity-fenced voice join
{
"operationId": "channelVoiceJoin",
"tags": [
"Voice"
],
"summary": "Apply identity-fenced voice join",
"description": "Commands must bind the observed session. Channel mutations also bind the immutable actor participation; stage moderation additionally binds the target participation. Missing protocol or required identity is 426; stale identity is 409. Start/join admit a new participation only when the observed session and participation absence still match under the database transition lock.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Current voice session.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionCommandRequest"
}
}
}
}
}POST/api/v1/voice/channels/{channelId}/leave
Apply identity-fenced voice leave
{
"operationId": "channelVoiceLeave",
"tags": [
"Voice"
],
"summary": "Apply identity-fenced voice leave",
"description": "Commands must bind the observed session. Channel mutations also bind the immutable actor participation; stage moderation additionally binds the target participation. Missing protocol or required identity is 426; stale identity is 409. Start/join admit a new participation only when the observed session and participation absence still match under the database transition lock.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"204": {
"description": "Exact voice ownership ended."
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionCommandRequest"
}
}
}
}
}PATCH/api/v1/voice/channels/{channelId}/state
Apply identity-fenced voice state
{
"operationId": "channelVoiceState",
"tags": [
"Voice"
],
"summary": "Apply identity-fenced voice state",
"description": "Commands must bind the observed session. Channel mutations also bind the immutable actor participation; stage moderation additionally binds the target participation. Missing protocol or required identity is 426; stale identity is 409. Start/join admit a new participation only when the observed session and participation absence still match under the database transition lock.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Current voice session.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateDirectVoiceParticipantStateRequest"
}
}
}
}
}PATCH/api/v1/voice/channels/{channelId}/stage/hand
Apply identity-fenced voice stage/hand
{
"operationId": "channelVoiceStageHand",
"tags": [
"Voice"
],
"summary": "Apply identity-fenced voice stage/hand",
"description": "Commands must bind the observed session. Channel mutations also bind the immutable actor participation; stage moderation additionally binds the target participation. Missing protocol or required identity is 426; stale identity is 409. Start/join admit a new participation only when the observed session and participation absence still match under the database transition lock.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Current voice session.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateVoiceHandRaisedRequest"
}
}
}
}
}PATCH/api/v1/voice/channels/{channelId}/stage/participants/{userId}
Apply identity-fenced voice stage/participants/{userId}
{
"operationId": "channelVoiceStageParticipantsUser",
"tags": [
"Voice"
],
"summary": "Apply identity-fenced voice stage/participants/{userId}",
"description": "Commands must bind the observed session. Channel mutations also bind the immutable actor participation; stage moderation additionally binds the target participation. Missing protocol or required identity is 426; stale identity is 409. Start/join admit a new participation only when the observed session and participation absence still match under the database transition lock.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "userId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
}
],
"responses": {
"200": {
"description": "Current voice session.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateVoiceStageRoleRequest"
}
}
}
}
}POST/api/v1/voice/direct/{conversationId}/heartbeat
Renew exact direct-call owner activity
{
"operationId": "heartbeatDirectVoice",
"tags": [
"Voice"
],
"summary": "Renew exact direct-call owner activity",
"description": "Requires ownership 1, liveness 1, exact session and participation UUID and owning device. The participation must have opted in at start/join. Only accepted calls with both owners opted in expire after either owner exceeds the advertised reconnect grace. A heartbeat after grace atomically commits terminal history/events and returns 410. Legacy/mixed calls are exempt. No full roster or profile query is needed in the response.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": false,
"description": "Current device identity. Omission retains the legacy device identity for rolling clients.",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Current voice session.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceDirectHeartbeatAckResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"410": {
"description": "The expected call expired.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceSessionCommandRequest"
}
}
}
}
}GET/api/v1/voice/ice-servers
Get media connectivity and voice protocol policy
{
"operationId": "getVoiceIceConfiguration",
"tags": [
"Voice"
],
"summary": "Get media connectivity and voice protocol policy",
"description": "Ownership and direct liveness capabilities and configured intervals are explicitly serialized. Missing capability on an older server means unsupported; complete backend rollout before client activation.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [],
"responses": {
"200": {
"description": "Current voice session.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceIceConfigurationResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/chat/forward
Forward an authorized root message with durable attribution
{
"tags": [
"Chat"
],
"operationId": "forwardMessage",
"summary": "Forward an authorized root message with durable attribution",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ForwardMessageRequest"
}
}
}
},
"responses": {
"200": {
"description": "Forwarded message or replay",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ForwardMessageResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
},
"parameters": [
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
]
}GET/api/v1/dm/conversations/{conversationId}/messages/content
Browse media or links in the complete authorized chat history
{
"tags": [
"Chat"
],
"operationId": "browseDirectChatContent",
"summary": "Browse media or links in the complete authorized chat history",
"description": "Read-only search with the same conversation/channel authorization as timeline reads. MEDIA includes image/video/audio attachments, recorded media, legacy direct images, inline image markup, stickers and direct media URLs. LINKS includes ordinary HTTP(S), www and bare-domain links (including captions), excluding inline image destinations and legacy image locators. q filters message text or attachment filenames literally and case-insensitively; omitted/blank q browses all matches. System events are excluded.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "kind",
"in": "query",
"required": true,
"schema": {
"type": "string",
"enum": [
"MEDIA",
"LINKS"
]
}
},
{
"name": "q",
"in": "query",
"required": false,
"schema": {
"type": "string",
"maxLength": 100,
"default": ""
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 50
},
"description": "Clamped to 1..100."
},
{
"name": "beforeId",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Matching messages and cursor",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DirectChatContentPage"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/channels/{channelId}/messages/content
Browse media or links in the complete authorized chat history
{
"tags": [
"Chat"
],
"operationId": "browseChannelChatContent",
"summary": "Browse media or links in the complete authorized chat history",
"description": "Read-only search with the same conversation/channel authorization as timeline reads. MEDIA includes image/video/audio attachments, recorded media, legacy direct images, inline image markup, stickers and direct media URLs. LINKS includes ordinary HTTP(S), www and bare-domain links (including captions), excluding inline image destinations and legacy image locators. q filters message text or attachment filenames literally and case-insensitively; omitted/blank q browses all matches. System events are excluded.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "kind",
"in": "query",
"required": true,
"schema": {
"type": "string",
"enum": [
"MEDIA",
"LINKS"
]
}
},
{
"name": "q",
"in": "query",
"required": false,
"schema": {
"type": "string",
"maxLength": 100,
"default": ""
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 50
},
"description": "Clamped to 1..100."
},
{
"name": "beforeId",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Matching messages and cursor",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChannelChatContentPage"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/auth/password-reset/request
Request a password reset code. The response does not disclose whether an account exists.
{
"operationId": "requestPasswordReset",
"tags": [
"Account Security"
],
"summary": "Request a password reset code. The response does not disclose whether an account exists.",
"security": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PasswordResetRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountChallengeResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/auth/password-reset/verify
Consume the reset code and issue a one-use five-minute reset ticket.
{
"operationId": "verifyPasswordReset",
"tags": [
"Account Security"
],
"summary": "Consume the reset code and issue a one-use five-minute reset ticket.",
"security": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountCodeRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PasswordResetTicketResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/auth/password-reset/complete
Replace the password and invalidate earlier access sessions atomically.
{
"operationId": "completePasswordReset",
"tags": [
"Account Security"
],
"summary": "Replace the password and invalidate earlier access sessions atomically.",
"security": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PasswordResetCompleteRequest"
}
}
}
},
"responses": {
"204": {
"description": "Success",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/profile/me/email/verification/request
Send a confirmation code to the current account email.
{
"operationId": "requestEmailVerification",
"tags": [
"Account Security"
],
"summary": "Send a confirmation code to the current account email.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"responses": {
"200": {
"description": "Success",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountChallengeResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/profile/me/email/verification/confirm
Confirm ownership of the current email.
{
"operationId": "confirmEmailVerification",
"tags": [
"Account Security"
],
"summary": "Confirm ownership of the current email.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountCodeRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserProfileResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/profile/me/email/change/request
Reauthenticate using the current password and send code to new email. A verified current email also receives its own approval code.
{
"operationId": "requestEmailChange",
"tags": [
"Account Security"
],
"summary": "Reauthenticate using the current password and send code to new email. A verified current email also receives its own approval code.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmailChangeRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmailChangeChallengeResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/profile/me/email/change/confirm
Atomically replace the email after new-address confirmation and, when required, approval from the verified old address.
{
"operationId": "confirmEmailChange",
"tags": [
"Account Security"
],
"summary": "Atomically replace the email after new-address confirmation and, when required, approval from the verified old address.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmailChangeConfirmRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserProfileResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/auth/sessions
List active sessions belonging to the current account
{
"operationId": "listAccountSessions",
"tags": [
"Auth"
],
"summary": "List active sessions belonging to the current account",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"responses": {
"200": {
"description": "Active sessions; current marks the requesting session.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountSessionsResponse"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
}
}
}DELETE/api/v1/auth/sessions/{sessionId}
Revoke one session owned by this account
{
"operationId": "revokeAccountSession",
"tags": [
"Auth"
],
"summary": "Revoke one session owned by this account",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "sessionId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"204": {
"description": "Sessions revoked."
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
}
}
}POST/api/v1/auth/sessions/revoke-all
Revoke every session including the requesting device
{
"operationId": "revokeAllAccountSessions",
"tags": [
"Auth"
],
"summary": "Revoke every session including the requesting device",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"responses": {
"204": {
"description": "Sessions revoked."
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
}
}
}GET/api/v1/e2ee/identity
getE2eeIdentity
{
"operationId": "getE2eeIdentity",
"tags": [
"Encryption"
],
"description": "Current account public identity and opaque encrypted recovery backup. No private key or recovery secret is disclosed to the server.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeBackupResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/e2ee/identity
registerE2eeIdentity
{
"operationId": "registerE2eeIdentity",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeIdentityResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RegisterE2eeIdentityRequest"
}
}
}
}
}POST/api/v1/e2ee/devices
registerE2eeDevice
{
"operationId": "registerE2eeDevice",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeIdentityResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RegisterE2eeDeviceRequest"
}
}
}
}
}GET/api/v1/e2ee/dm/{conversationId}/audience
getE2eeDirectAudience
{
"operationId": "getE2eeDirectAudience",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeAudienceResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/media/e2ee/rooms/state
getE2eeRoomState
{
"operationId": "getE2eeRoomState",
"tags": [
"Encryption"
],
"description": "Exact current participation/device/lease roster epoch. A null envelope means the deterministic leader must publish before any SDK connect.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeRoomStateResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeRoomStateRequest"
}
}
}
}
}POST/api/v1/media/e2ee/rooms/key
publishE2eeRoomKey
{
"operationId": "publishE2eeRoomKey",
"tags": [
"Encryption"
],
"description": "Leader-only compare-and-set for the exact current epoch. Signed JWE recipients must be precisely the active admitted devices; account recovery devices are excluded.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeRoomStateResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublishE2eeRoomKeyRequest"
}
}
}
}
}POST/api/v1/media/transport/leases
acquireMediaLease
{
"operationId": "acquireMediaLease",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MediaLeaseResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AcquireMediaLeaseRequest"
}
}
}
}
}POST/api/v1/media/transport/leases/{leaseId}/heartbeat
heartbeatMediaLease
{
"operationId": "heartbeatMediaLease",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "leaseId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MediaLeaseHeartbeatResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MediaLeaseGenerationRequest"
}
}
}
}
}POST/api/v1/media/transport/leases/{leaseId}/release
releaseMediaLease
{
"operationId": "releaseMediaLease",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "leaseId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"204": {
"description": "Completed"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MediaLeaseGenerationRequest"
}
}
}
}
}PUT/api/v1/media/transport/leases/{leaseId}/publication
updateMediaPublication
{
"operationId": "updateMediaPublication",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "leaseId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MediaPublicationResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateMediaPublicationRequest"
}
}
}
}
}GET/api/v1/chat/forward-source
getForwardSourceAttribution
{
"operationId": "getForwardSourceAttribution",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "scopeType",
"in": "query",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "query",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "messageId",
"in": "query",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ForwardedMessageAttribution"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/dm/conversations/{conversationId}/messages
sendDirectMessage
{
"operationId": "sendDirectMessage",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ForwardedDirectMessage"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SendDirectMessageRequest"
}
}
}
}
}PATCH/api/v1/dm/conversations/{conversationId}/messages/{messageId}
updateDirectMessage
{
"operationId": "updateDirectMessage",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "messageId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ForwardedDirectMessage"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateDirectMessageRequest"
}
}
}
}
}POST/api/v1/dm/conversations/{conversationId}/prepared-attachments
sendPreparedDirectAttachments
{
"operationId": "sendPreparedDirectAttachments",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ForwardedDirectMessage"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SendPreparedAttachmentsRequest"
}
}
}
}
}GET/api/v1/dm/conversations/{conversationId}/messages/{messageId}/thread
getDirectMessageThread
{
"operationId": "getDirectMessageThread",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "messageId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageThreadPageResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/dm/conversations/{conversationId}/messages/{messageId}/thread
sendDirectMessageThreadReply
{
"operationId": "sendDirectMessageThreadReply",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "messageId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageThreadReplyResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SendMessageThreadReplyRequest"
}
}
}
}
}PATCH/api/v1/dm/conversations/{conversationId}/messages/{messageId}/thread/{replyId}
updateDirectMessageThreadReply
{
"operationId": "updateDirectMessageThreadReply",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "messageId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "replyId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageThreadReplyResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateMessageThreadReplyRequest"
}
}
}
}
}DELETE/api/v1/dm/conversations/{conversationId}/messages/{messageId}/thread/{replyId}
deleteDirectMessageThreadReply
{
"operationId": "deleteDirectMessageThreadReply",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "messageId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "replyId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"204": {
"description": "Completed"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/chat/drafts
getChatDrafts
{
"operationId": "getChatDrafts",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChatDraftResponse"
}
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}PUT/api/v1/chat/drafts/{scopeType}/{scopeId}
saveChatDraft
{
"operationId": "saveChatDraft",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChatDraftResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SaveChatDraftRequest"
}
}
}
}
}DELETE/api/v1/chat/drafts/{scopeType}/{scopeId}
deleteChatDraft
{
"operationId": "deleteChatDraft",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"204": {
"description": "Completed"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/chat/scheduled
getScheduledMessages
{
"operationId": "getScheduledMessages",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ScheduledChatMessageResponse"
}
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/chat/scheduled
scheduleChatMessage
{
"operationId": "scheduleChatMessage",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScheduledChatMessageResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScheduleChatMessageRequest"
}
}
}
}
}GET/api/v1/chat/scheduled/page
getScheduledMessagesPage
{
"operationId": "getScheduledMessagesPage",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScheduledChatMessageListPageResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}PATCH/api/v1/chat/scheduled/{scheduledId}
updateScheduledChatMessage
{
"operationId": "updateScheduledChatMessage",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "scheduledId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScheduledChatMessageResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateScheduledChatMessageRequest"
}
}
}
}
}DELETE/api/v1/chat/scheduled/{scheduledId}
cancelScheduledChatMessage
{
"operationId": "cancelScheduledChatMessage",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "scheduledId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScheduledChatMessageResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/media/private/{objectKey}
Download an authorized attachment or single byte range
{
"operationId": "readPrivateMedia",
"tags": [
"Media"
],
"summary": "Download an authorized attachment or single byte range",
"description": "Authenticated legacy/private object and thumbnail delivery. Object key can contain slash-separated path segments; current message/story/upload ACL is checked before metadata or range access. Public avatars, custom emojis and structure icons are excluded. Browser GET/HEAD alone permits the scoped same-origin session cookie without session-mode header.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": []
}
],
"parameters": [
{
"name": "objectKey",
"in": "path",
"required": true,
"schema": {
"type": "string",
"maxLength": 512
},
"description": "Ktor tailcard key: encode each path segment separately and preserve literal / separators. Do not percent-encode the complete key as one segment. The server joins tailcard segments with /. Use the authorized media URL returned by Teamyfy when available.",
"x-allow-reserved-path": true
},
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "Range",
"in": "header",
"description": "Single inclusive bytes=start-end, bytes=start- or bytes=-suffix-length. End clamps to EOF; large numeric bounds saturate safely. Supported single-range header is bounded to 4096 characters.",
"schema": {
"type": "string"
}
},
{
"name": "If-Range",
"in": "header",
"description": "Exact strong ETag from HEAD/GET. Mismatch yields full 200; range clients should inspect status/identity before reading the body.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Full immutable representation, including existing full-download clients.",
"headers": {
"Content-Length": {
"description": "Full representation size on HEAD/200; transferred byte count on 206.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
"Content-Type": {
"description": "Original attachment MIME type.",
"schema": {
"type": "string"
}
},
"ETag": {
"description": "Strong opaque identity, stable for unchanged bytes and representation metadata.",
"schema": {
"type": "string",
"pattern": "^\"[0-9a-f]{64}\"$"
}
},
"Accept-Ranges": {
"schema": {
"type": "string",
"enum": [
"bytes"
]
}
},
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store, no-transform"
]
}
},
"Content-Encoding": {
"schema": {
"type": "string",
"enum": [
"identity"
]
}
},
"Content-Disposition": {
"description": "Existing attachment download disposition and sanitized filename.",
"schema": {
"type": "string"
}
}
},
"content": {
"*/*": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
},
"206": {
"description": "Exact single range; Content-Length is range size, not full resource size.",
"headers": {
"Content-Length": {
"description": "Full representation size on HEAD/200; transferred byte count on 206.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
"Content-Type": {
"description": "Original attachment MIME type.",
"schema": {
"type": "string"
}
},
"ETag": {
"description": "Strong opaque identity, stable for unchanged bytes and representation metadata.",
"schema": {
"type": "string",
"pattern": "^\"[0-9a-f]{64}\"$"
}
},
"Accept-Ranges": {
"schema": {
"type": "string",
"enum": [
"bytes"
]
}
},
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store, no-transform"
]
}
},
"Content-Encoding": {
"schema": {
"type": "string",
"enum": [
"identity"
]
}
},
"Content-Disposition": {
"description": "Existing attachment download disposition and sanitized filename.",
"schema": {
"type": "string"
}
},
"Content-Range": {
"schema": {
"type": "string",
"pattern": "^bytes [0-9]+-[0-9]+/[0-9]+$"
}
}
},
"content": {
"*/*": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"416": {
"description": "Invalid or unsatisfiable supported single byte range, after authorization. Empty body.",
"headers": {
"Content-Range": {
"schema": {
"type": "string",
"pattern": "^bytes \\*/[0-9]+$"
}
},
"Content-Length": {
"schema": {
"type": "integer",
"enum": [
0
]
}
},
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store, no-transform"
]
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}HEAD/api/v1/media/private/{objectKey}
Read authorized immutable attachment metadata
{
"operationId": "headPrivateMedia",
"tags": [
"Media"
],
"summary": "Read authorized immutable attachment metadata",
"description": "Authenticated legacy/private object and thumbnail delivery. Object key can contain slash-separated path segments; current message/story/upload ACL is checked before metadata or range access. Public avatars, custom emojis and structure icons are excluded. Browser GET/HEAD alone permits the scoped same-origin session cookie without session-mode header.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": []
}
],
"parameters": [
{
"name": "objectKey",
"in": "path",
"required": true,
"schema": {
"type": "string",
"maxLength": 512
},
"description": "Ktor tailcard key: encode each path segment separately and preserve literal / separators. Do not percent-encode the complete key as one segment. The server joins tailcard segments with /. Use the authorized media URL returned by Teamyfy when available.",
"x-allow-reserved-path": true
},
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"responses": {
"200": {
"description": "Full representation metadata with no body.",
"headers": {
"Content-Length": {
"description": "Full representation size on HEAD/200; transferred byte count on 206.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
"Content-Type": {
"description": "Original attachment MIME type.",
"schema": {
"type": "string"
}
},
"ETag": {
"description": "Strong opaque identity, stable for unchanged bytes and representation metadata.",
"schema": {
"type": "string",
"pattern": "^\"[0-9a-f]{64}\"$"
}
},
"Accept-Ranges": {
"schema": {
"type": "string",
"enum": [
"bytes"
]
}
},
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store, no-transform"
]
}
},
"Content-Encoding": {
"schema": {
"type": "string",
"enum": [
"identity"
]
}
},
"Content-Disposition": {
"description": "Existing attachment download disposition and sanitized filename.",
"schema": {
"type": "string"
}
}
}
},
"400": {
"description": "BadRequest; no response body."
},
"401": {
"description": "Unauthorized; no response body."
},
"403": {
"description": "Forbidden; no response body."
},
"404": {
"description": "NotFound; no response body."
},
"429": {
"description": "TooManyRequests; no response body."
},
"500": {
"description": "InternalServerError; no response body."
},
"503": {
"description": "ServiceUnavailable; no response body."
}
}
}POST/api/v1/voice/diagnostics
Record bounded media diagnostics
{
"operationId": "sendVoiceDiagnostic",
"tags": [
"Voice"
],
"summary": "Record bounded media diagnostics",
"description": "Uses a dedicated per-user diagnostic rate bucket, independent of voice heartbeat admission. Optional details are controlled by the manual diagnosticsDetailedEnabled policy. Never include media payloads, secrets, SDP, device labels or raw pipeline identifiers.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceDiagnosticRequest"
}
}
}
},
"responses": {
"204": {
"description": "Best-effort diagnostic accepted. Detailed observations are discarded when the server policy is disabled."
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/e2ee/recovery/passphrase
getE2eePassphraseBackup
{
"operationId": "getE2eePassphraseBackup",
"tags": [
"Encryption"
],
"description": "Account/session/device-bound server-blind recovery. Root-signed backup revision uses compare-and-set. Transfers expire after at most 10 minutes; approval and consumption are each single-use. Requires X-XChat-Device-Id to match the authenticated account session. Dedicated recovery budget: 60 requests/minute/account; creation additionally 12/10 minutes/account and at most 5 unexpired requests.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eePassphraseBackupResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Recovery JSON body exceeds 72 KiB"
}
}
}POST/api/v1/e2ee/recovery/passphrase
putE2eePassphraseBackup
{
"operationId": "putE2eePassphraseBackup",
"tags": [
"Encryption"
],
"description": "Account/session/device-bound server-blind recovery. Root-signed backup revision uses compare-and-set. Transfers expire after at most 10 minutes; approval and consumption are each single-use. Requires X-XChat-Device-Id to match the authenticated account session. Dedicated recovery budget: 60 requests/minute/account; creation additionally 12/10 minutes/account and at most 5 unexpired requests.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eePassphraseBackupResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Recovery JSON body exceeds 72 KiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PutE2eePassphraseBackupRequest"
}
}
}
}
}POST/api/v1/e2ee/recovery/transfers
createE2eeDeviceTransfer
{
"operationId": "createE2eeDeviceTransfer",
"tags": [
"Encryption"
],
"description": "Account/session/device-bound server-blind recovery. Root-signed backup revision uses compare-and-set. Transfers expire after at most 10 minutes; approval and consumption are each single-use. Requires X-XChat-Device-Id to match the authenticated account session. Dedicated recovery budget: 60 requests/minute/account; creation additionally 12/10 minutes/account and at most 5 unexpired requests.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeDeviceTransferResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Recovery JSON body exceeds 72 KiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateE2eeDeviceTransferRequest"
}
}
}
}
}GET/api/v1/e2ee/recovery/transfers/{requestId}
getE2eeDeviceTransfer
{
"operationId": "getE2eeDeviceTransfer",
"tags": [
"Encryption"
],
"description": "Account/session/device-bound server-blind recovery. Root-signed backup revision uses compare-and-set. Transfers expire after at most 10 minutes; approval and consumption are each single-use. Requires X-XChat-Device-Id to match the authenticated account session. Dedicated recovery budget: 60 requests/minute/account; creation additionally 12/10 minutes/account and at most 5 unexpired requests.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "requestId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeDeviceTransferResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Recovery JSON body exceeds 72 KiB"
}
}
}POST/api/v1/e2ee/recovery/transfers/{requestId}/approve
approveE2eeDeviceTransfer
{
"operationId": "approveE2eeDeviceTransfer",
"tags": [
"Encryption"
],
"description": "Account/session/device-bound server-blind recovery. Root-signed backup revision uses compare-and-set. Transfers expire after at most 10 minutes; approval and consumption are each single-use. Requires X-XChat-Device-Id to match the authenticated account session. Dedicated recovery budget: 60 requests/minute/account; creation additionally 12/10 minutes/account and at most 5 unexpired requests.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "requestId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeDeviceTransferResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Recovery JSON body exceeds 72 KiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApproveE2eeDeviceTransferRequest"
}
}
}
}
}POST/api/v1/e2ee/recovery/transfers/{requestId}/consume
consumeE2eeDeviceTransfer
{
"operationId": "consumeE2eeDeviceTransfer",
"tags": [
"Encryption"
],
"description": "Account/session/device-bound server-blind recovery. Root-signed backup revision uses compare-and-set. Transfers expire after at most 10 minutes; approval and consumption are each single-use. Requires X-XChat-Device-Id to match the authenticated account session. Dedicated recovery budget: 60 requests/minute/account; creation additionally 12/10 minutes/account and at most 5 unexpired requests.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "requestId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeDeviceTransferResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Recovery JSON body exceeds 72 KiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConsumeE2eeDeviceTransferRequest"
}
}
}
}
}GET/api/v1/e2ee/devices/content-capability
getSecureDeviceContentCapability
{
"operationId": "getSecureDeviceContentCapability",
"tags": [
"Encryption"
],
"description": "Read this authenticated current device certificate and monotonic content-capability revision. A signed lease is a bounded support declaration, not proof of physical online status. Private no-store.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureDeviceContentCapabilityResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}PUT/api/v1/e2ee/devices/content-capability
putSecureDeviceContentCapability
{
"operationId": "putSecureDeviceContentCapability",
"tags": [
"Encryption"
],
"description": "Publish or withdraw the current device content capabilities using its canonical device signature and expected revision. The five-minute maximum lease is bound to the exact current certificate; compare-and-set and eligibility mutation locking prevent stale updates from authorizing fresh sends. Private no-store.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureDeviceContentCapabilityResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PutSecureDeviceContentCapabilityRequest"
}
}
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/content-capabilities/query
querySecureContentCapabilities
{
"operationId": "querySecureContentCapabilities",
"tags": [
"Encryption"
],
"description": "Observe rendition support for the exact current conversation head and all current devices of every eligible account, including devices outside the MLS roster that can read archive history. Missing, expired or unsupported declarations and audience overflow produce ready=false. This observation is not a reusable send permit; fresh application acceptance repeats the complete check under the eligibility/head transaction locks. Private no-store.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Bounded content-capability observation for the current conversation head and complete eligible device audience; private, no-store.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QuerySecureContentCapabilitiesResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QuerySecureContentCapabilitiesRequest"
}
}
}
}
}GET/api/v1/e2ee/capability
getSecureMessagingCapability
{
"operationId": "getSecureMessagingCapability",
"tags": [
"Encryption"
],
"description": "Authenticated account-session/device-bound MLS relay. Disabled until explicit history cutover. Device and root signatures bind the exact scope, generation, roster and epoch; current ACL/device revocation and durable replay are transactionally fenced. No plaintext message or secret key is accepted. Canonical signed payload bytes are retained. Application response and realtime UPSERT contain opaque encrypted projections.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureMessagingCapabilityResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
}
}POST/api/v1/e2ee/key-packages
publishSecureKeyPackages
{
"operationId": "publishSecureKeyPackages",
"tags": [
"Encryption"
],
"description": "Authenticated account-session/device-bound MLS relay. Disabled until explicit history cutover. Device and root signatures bind the exact scope, generation, roster and epoch; current ACL/device revocation and durable replay are transactionally fenced. No plaintext message or secret key is accepted. Canonical signed payload bytes are retained. Application response and realtime UPSERT contain opaque encrypted projections.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureKeyPackageListResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublishSecureKeyPackagesRequest"
}
}
}
}
}POST/api/v1/e2ee/devices/revoke
revokeSecureDevice
{
"operationId": "revokeSecureDevice",
"tags": [
"Encryption"
],
"description": "Authenticated account-session/device-bound MLS relay. Disabled until explicit history cutover. Device and root signatures bind the exact scope, generation, roster and epoch; current ACL/device revocation and durable replay are transactionally fenced. No plaintext message or secret key is accepted. Canonical signed payload bytes are retained. Application response and realtime UPSERT contain opaque encrypted projections.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
},
"204": {
"description": "Device cryptographically revoked. Existing MLS conversations require removal before new sends."
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RevokeSecureDeviceRequest"
}
}
}
}
}GET/api/v1/e2ee/conversations/{scopeType}/{scopeId}/state
getSecureConversationState
{
"operationId": "getSecureConversationState",
"tags": [
"Encryption"
],
"description": "Authenticated account-session/device-bound MLS relay. Disabled until explicit history cutover. Device and root signatures bind the exact scope, generation, roster and epoch; current ACL/device revocation and durable replay are transactionally fenced. No plaintext message or secret key is accepted. Canonical signed payload bytes are retained. Application response and realtime UPSERT contain opaque encrypted projections.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureConversationStateResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/key-packages/reserve
reserveSecureKeyPackages
{
"operationId": "reserveSecureKeyPackages",
"tags": [
"Encryption"
],
"description": "Authenticated account-session/device-bound MLS relay. Disabled until explicit history cutover. Device and root signatures bind the exact scope, generation, roster and epoch; current ACL/device revocation and durable replay are transactionally fenced. No plaintext message or secret key is accepted. Canonical signed payload bytes are retained. Application response and realtime UPSERT contain opaque encrypted projections.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureKeyPackageReservationResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ReserveSecureKeyPackagesRequest"
}
}
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/transitions
submitSecureTransition
{
"operationId": "submitSecureTransition",
"tags": [
"Encryption"
],
"description": "Authenticated account-session/device-bound MLS relay. Disabled until explicit history cutover. Device and root signatures bind the exact scope, generation, roster and epoch; current ACL/device revocation and durable replay are transactionally fenced. No plaintext message or secret key is accepted. Canonical signed payload bytes are retained. Application response and realtime UPSERT contain opaque encrypted projections.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureTransitionResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SubmitSecureTransitionRequest"
}
}
}
}
}GET/api/v1/e2ee/conversations/{scopeType}/{scopeId}/control
getSecureControl
{
"operationId": "getSecureControl",
"tags": [
"Encryption"
],
"description": "Authenticated account-session/device-bound MLS relay. Disabled until explicit history cutover. Device and root signatures bind the exact scope, generation, roster and epoch; current ACL/device revocation and durable replay are transactionally fenced. No plaintext message or secret key is accepted. Canonical signed payload bytes are retained. Application response and realtime UPSERT contain opaque encrypted projections.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "afterEpoch",
"in": "query",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureControlPageResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/applications
submitSecureApplication
{
"operationId": "submitSecureApplication",
"tags": [
"Encryption"
],
"description": "Authenticated account-session/device-bound MLS relay. Disabled until explicit history cutover. Device and root signatures bind the exact scope, generation, roster and epoch; current ACL/device revocation and durable replay are transactionally fenced. No plaintext message or secret key is accepted. Canonical signed payload bytes are retained. Application response and realtime UPSERT contain opaque encrypted projections.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureApplicationResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SubmitSecureApplicationRequest"
}
}
}
}
}GET/api/v1/communities/{communityId}/members/{memberUserId}
Read an exact community member
{
"operationId": "getCommunityMember",
"tags": [
"Communities"
],
"summary": "Read an exact community member",
"description": "Requires an active community membership; banned viewers are rejected.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "communityId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "memberUserId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
}
],
"responses": {
"200": {
"description": "Current member projection. Default and null properties may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommunityMemberResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}PATCH/api/v1/communities/{communityId}/members/{memberUserId}/moderation
Moderate a lower-ranking community member
{
"operationId": "updateCommunityMemberModeration",
"tags": [
"Communities"
],
"summary": "Moderate a lower-ranking community member",
"description": "Requires moderator, admin or owner and a strictly lower-ranking target. Self moderation is rejected. Chat and microphone restrictions are independent. Audio lease revocation is durable and provider eviction retries asynchronously.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "communityId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "memberUserId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
}
],
"responses": {
"200": {
"description": "Current member projection. Default and null properties may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommunityMemberResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateCommunityMemberModerationRequest"
}
}
}
}
}POST/api/v1/communities/{communityId}/roles
Create a community custom role
{
"operationId": "createCommunityCustomRole",
"tags": [
"Communities"
],
"summary": "Create a community custom role",
"description": "Requires the community owner or administrator role. Member-list visibility is display-only and defaults to true for new roles; omitted or null update visibility preserves the existing value. Returned role is also used in the community structure response.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "communityId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
}
],
"responses": {
"200": {
"description": "Current custom role, with default and null properties omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommunityCustomRoleResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateCommunityCustomRoleRequest"
}
}
}
}
}PATCH/api/v1/communities/{communityId}/roles/{roleId}
Update a community custom role
{
"operationId": "updateCommunityCustomRole",
"tags": [
"Communities"
],
"summary": "Update a community custom role",
"description": "Requires the community owner or administrator role. Member-list visibility is display-only and defaults to true for new roles; omitted or null update visibility preserves the existing value. Returned role is also used in the community structure response.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "communityId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "roleId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
}
],
"responses": {
"200": {
"description": "Current custom role, with default and null properties omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommunityCustomRoleResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateCommunityCustomRoleRequest"
}
}
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/cooperative-admissions
createSecureCooperativeAdmission
{
"operationId": "createSecureCooperativeAdmission",
"tags": [
"Encryption"
],
"description": "Explicit cooperative admission for one missing current device of the pinned CHANNEL authority. ACTIVE CHANNEL only; five-minute root-signed intent, selected admitted nonauthority helper, exact pure Add proposal and root approval. Reads never claim or approve. Unknown relay returns MLS_COOPERATIVE_NOT_FOUND after scope authentication. Lists contain at most 8 summaries without proposal, approval or directory proofs. Missing/expired/cancelled relay cannot authorize any fresh nonauthority channel membership change; exact accepted transition receipt replay remains valid.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureCooperativeAdmissionResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateSecureCooperativeAdmissionRequest"
}
}
}
}
}GET/api/v1/e2ee/conversations/{scopeType}/{scopeId}/cooperative-admissions
listSecureCooperativeAdmissions
{
"operationId": "listSecureCooperativeAdmissions",
"tags": [
"Encryption"
],
"description": "Explicit cooperative admission for one missing current device of the pinned CHANNEL authority. ACTIVE CHANNEL only; five-minute root-signed intent, selected admitted nonauthority helper, exact pure Add proposal and root approval. Reads never claim or approve. Unknown relay returns MLS_COOPERATIVE_NOT_FOUND after scope authentication. Lists contain at most 8 summaries without proposal, approval or directory proofs. Missing/expired/cancelled relay cannot authorize any fresh nonauthority channel membership change; exact accepted transition receipt replay remains valid.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureCooperativeAdmissionListResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/e2ee/conversations/{scopeType}/{scopeId}/cooperative-admissions/{requestId}
getSecureCooperativeAdmission
{
"operationId": "getSecureCooperativeAdmission",
"tags": [
"Encryption"
],
"description": "Explicit cooperative admission for one missing current device of the pinned CHANNEL authority. ACTIVE CHANNEL only; five-minute root-signed intent, selected admitted nonauthority helper, exact pure Add proposal and root approval. Reads never claim or approve. Unknown relay returns MLS_COOPERATIVE_NOT_FOUND after scope authentication. Lists contain at most 8 summaries without proposal, approval or directory proofs. Missing/expired/cancelled relay cannot authorize any fresh nonauthority channel membership change; exact accepted transition receipt replay remains valid.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "requestId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureCooperativeAdmissionResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/cooperative-admissions/{requestId}/claim
claimSecureCooperativeAdmission
{
"operationId": "claimSecureCooperativeAdmission",
"tags": [
"Encryption"
],
"description": "Explicit cooperative admission for one missing current device of the pinned CHANNEL authority. ACTIVE CHANNEL only; five-minute root-signed intent, selected admitted nonauthority helper, exact pure Add proposal and root approval. Reads never claim or approve. Unknown relay returns MLS_COOPERATIVE_NOT_FOUND after scope authentication. Lists contain at most 8 summaries without proposal, approval or directory proofs. Missing/expired/cancelled relay cannot authorize any fresh nonauthority channel membership change; exact accepted transition receipt replay remains valid.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "requestId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureCooperativeAdmissionResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/cooperative-admissions/{requestId}/proposal
proposeSecureCooperativeAdmission
{
"operationId": "proposeSecureCooperativeAdmission",
"tags": [
"Encryption"
],
"description": "Explicit cooperative admission for one missing current device of the pinned CHANNEL authority. ACTIVE CHANNEL only; five-minute root-signed intent, selected admitted nonauthority helper, exact pure Add proposal and root approval. Reads never claim or approve. Unknown relay returns MLS_COOPERATIVE_NOT_FOUND after scope authentication. Lists contain at most 8 summaries without proposal, approval or directory proofs. Missing/expired/cancelled relay cannot authorize any fresh nonauthority channel membership change; exact accepted transition receipt replay remains valid.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "requestId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureCooperativeAdmissionResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProposeSecureCooperativeAdmissionRequest"
}
}
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/cooperative-admissions/{requestId}/approve
approveSecureCooperativeAdmission
{
"operationId": "approveSecureCooperativeAdmission",
"tags": [
"Encryption"
],
"description": "Explicit cooperative admission for one missing current device of the pinned CHANNEL authority. ACTIVE CHANNEL only; five-minute root-signed intent, selected admitted nonauthority helper, exact pure Add proposal and root approval. Reads never claim or approve. Unknown relay returns MLS_COOPERATIVE_NOT_FOUND after scope authentication. Lists contain at most 8 summaries without proposal, approval or directory proofs. Missing/expired/cancelled relay cannot authorize any fresh nonauthority channel membership change; exact accepted transition receipt replay remains valid.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "requestId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureCooperativeAdmissionResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApproveSecureCooperativeAdmissionRequest"
}
}
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/cooperative-admissions/{requestId}/cancel
cancelSecureCooperativeAdmission
{
"operationId": "cancelSecureCooperativeAdmission",
"tags": [
"Encryption"
],
"description": "Explicit cooperative admission for one missing current device of the pinned CHANNEL authority. ACTIVE CHANNEL only; five-minute root-signed intent, selected admitted nonauthority helper, exact pure Add proposal and root approval. Reads never claim or approve. Unknown relay returns MLS_COOPERATIVE_NOT_FOUND after scope authentication. Lists contain at most 8 summaries without proposal, approval or directory proofs. Missing/expired/cancelled relay cannot authorize any fresh nonauthority channel membership change; exact accepted transition receipt replay remains valid.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "requestId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureCooperativeAdmissionResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/streams/channels/{channelId}/start-operations/{operationId}
Read the exact device-owned stream Start outcome
{
"operationId": "getStreamStartOperation",
"tags": [
"Stream"
],
"summary": "Read the exact device-owned stream Start outcome",
"description": "Existing exact receipts take precedence. Absent recent UUIDv7 returns UNKNOWN; expired UUID returns EXPIRED with durable retiredThroughEpochMs and proof no LIVE receipt was retired. UNKNOWN and HTTP failures cannot release custody. Receipt access remains account/session/device bound after channel ACL revocation.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "operationId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Canonical lowercase UUIDv7. First48 bits encode the fresh server clock timestamp."
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"description": "Must equal the current authenticated account session device. Legacy or omitted values are rejected.",
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful projection. Null and default values may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StreamStartOperationResponse"
}
}
},
"headers": {
"Cache-Control": {
"description": "Private operation receipts are never cached.",
"schema": {
"type": "string"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/streams/channels/{channelId}/start-operations/{operationId}
Start exactly once under a durable operation identifier
{
"operationId": "startStreamOperation",
"tags": [
"Stream"
],
"summary": "Start exactly once under a durable operation identifier",
"description": "Requires ownershipProtocolVersion 1 and current broadcast access. Client obtains a fresh account clock and embeds serverTimeEpochMs in UUIDv7. Fresh Start is admitted for ten minutes (30s future skew); old UUIDs behind the durable monotonic account floor return EXPIRED permanently, including after wall-clock rollback. Receipt and stream commit atomically. Existing receipt wins over expiry; CANCELLED/REJECTED never create a stream. Caps of 4096 records/device and 16384/account cause temporary429 without a terminal claim. GC removes only expired non-LIVE receipts; it never implicitly Ends a stream.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "operationId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Canonical lowercase UUIDv7. First48 bits encode the fresh server clock timestamp."
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"description": "Must equal the current authenticated account session device. Legacy or omitted values are rejected.",
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful projection. Null and default values may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StreamStartOperationResponse"
}
}
},
"headers": {
"Cache-Control": {
"description": "Private operation receipts are never cached.",
"schema": {
"type": "string"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StartStreamSessionRequest"
}
}
}
}
}POST/api/v1/streams/channels/{channelId}/start-operations/{operationId}/cancel
Prevent an uncommitted exact Start without ending a hosted stream
{
"operationId": "cancelStreamStartOperation",
"tags": [
"Stream"
],
"summary": "Prevent an uncommitted exact Start without ending a hosted stream",
"description": "Exact receipt always wins. Unknown recent UUIDv7 becomes a durable cancellation tombstone; existing STARTED remains LIVE until explicit End. Expired unknown returns EXPIRED under the durable account floor. At capacity returns nonterminal429; future malformed timestamps are nonterminal400.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"description": "Internal numeric identifier.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
},
{
"name": "operationId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Canonical lowercase UUIDv7. First48 bits encode the fresh server clock timestamp."
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"description": "Must equal the current authenticated account session device. Legacy or omitted values are rejected.",
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful projection. Null and default values may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StreamStartOperationResponse"
}
}
},
"headers": {
"Cache-Control": {
"description": "Private operation receipts are never cached.",
"schema": {
"type": "string"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/streams/start-operations/clock
Read a fresh account-bound clock for exact Start UUIDv7
{
"operationId": "getStreamStartOperationClock",
"tags": [
"Stream"
],
"summary": "Read a fresh account-bound clock for exact Start UUIDv7",
"description": "Returns effective server time under the same durable account retirement lock. Use immediately to create UUIDv7; do not cache or use the device wall clock. This does not reserve capacity or create a Start operation.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"description": "Must equal the current authenticated account session device. Legacy or omitted values are rejected.",
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful projection. Null and default values may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StreamStartOperationClockResponse"
}
}
},
"headers": {
"Cache-Control": {
"description": "Private operation receipts are never cached.",
"schema": {
"type": "string"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/e2ee/recovery/time
getE2eeRecoveryTime
{
"operationId": "getE2eeRecoveryTime",
"tags": [
"Encryption"
],
"description": "Authenticated account/session/device-bound current server time for creating the signed device-transfer transcript within the unchanged 60-second admission window. Private no-store; this clock does not grant transfer or account authority.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeRecoveryTimeResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/history-grants/query
querySecureHistoryGrants
{
"operationId": "querySecureHistoryGrants",
"tags": [
"Encryption"
],
"description": "Query bounded encrypted archive-key grants for an admitted CHANNEL reader at the exact current MLS head. Missing grants request disclosure from an entitled, currently admitted holder. Owner-signed FULL_CHANNEL_HISTORY policy and current ACL, account session, device and identity generation are checked. No live MLS ratchet or plaintext is returned.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Bounded archive grants and pending recipients; private, no-store.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureHistoryGrantsResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QuerySecureHistoryGrantsRequest"
}
}
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/history-grants
publishSecureHistoryGrants
{
"operationId": "publishSecureHistoryGrants",
"tags": [
"Encryption"
],
"description": "Publish bounded exact device-signed historical archive-key grants for CHANNEL history. The grantor must be currently admitted and entitled by an immutable historical account-root capsule. Each grant binds the old epoch, authorizing head, current recipient account root and encrypted capsule under the owner-signed FULL_CHANNEL_HISTORY policy. No live MLS ratchet or plaintext is accepted.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"204": {
"description": "Grants accepted; private, no-store.",
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublishSecureHistoryGrantsRequest"
}
}
}
}
}POST/api/v1/media/e2ee/rooms/epoch
getE2eeRoomEpoch
{
"operationId": "getE2eeRoomEpoch",
"tags": [
"Encryption"
],
"description": "Fresh authenticated exact participation/device/lease observation with the identical full-state epoch and authorization checks. No roster or key envelope is returned. Transport failure conveys no continued authorization.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeRoomEpochResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"410": {
"description": "The exact media lease or generation is no longer active."
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/E2eeRoomStateRequest"
}
}
}
}
}POST/api/v1/social/publications
createSocialPublication
{
"operationId": "createSocialPublication",
"tags": [
"Social"
],
"summary": "createSocialPublication",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"description": "Authenticated social content. Current friendship/block and group channel access apply. Publication links never confer access. Stories remain readable after the 24-hour highlight window. No chat plaintext is exposed.",
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
}
],
"responses": {
"200": {
"description": "Success.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocialPublicationResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"410": {
"description": "The publication created by this operation was deleted."
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateSocialPublicationRequest"
}
}
}
}
}GET/api/v1/social/publications
listSocialPublications
{
"operationId": "listSocialPublications",
"tags": [
"Social"
],
"summary": "listSocialPublications",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"description": "Authenticated social content. Current friendship/block and group channel access apply. Publication links never confer access. Stories remain readable after the 24-hour highlight window. No chat plaintext is exposed.",
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "author",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "kind",
"in": "query",
"required": false,
"schema": {
"$ref": "#/components/schemas/SocialPublicationKind"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 20
}
}
],
"responses": {
"200": {
"description": "Success.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocialPublicationPageResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/social/publications/{publicationId}
getSocialPublication
{
"operationId": "getSocialPublication",
"tags": [
"Social"
],
"summary": "getSocialPublication",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"description": "Authenticated social content. Current friendship/block and group channel access apply. Publication links never confer access. Stories remain readable after the 24-hour highlight window. No chat plaintext is exposed.",
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "publicationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"200": {
"description": "Success.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocialPublicationResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}PUT/api/v1/social/publications/{publicationId}
updateSocialPublication
{
"operationId": "updateSocialPublication",
"tags": [
"Social"
],
"summary": "updateSocialPublication",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"description": "Authenticated social content. Current friendship/block and group channel access apply. Publication links never confer access. Stories remain readable after the 24-hour highlight window. No chat plaintext is exposed.",
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "publicationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"200": {
"description": "Success.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocialPublicationResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateSocialPublicationRequest"
}
}
}
}
}DELETE/api/v1/social/publications/{publicationId}
deleteSocialPublication
{
"operationId": "deleteSocialPublication",
"tags": [
"Social"
],
"summary": "deleteSocialPublication",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"description": "Authenticated social content. Current friendship/block and group channel access apply. Publication links never confer access. Stories remain readable after the 24-hour highlight window. No chat plaintext is exposed.",
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "publicationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"204": {
"description": "Success.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/social/publications/{publicationId}/seen
markSocialStorySeen
{
"operationId": "markSocialStorySeen",
"tags": [
"Social"
],
"summary": "markSocialStorySeen",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"description": "Authenticated social content. Current friendship/block and group channel access apply. Publication links never confer access. Stories remain readable after the 24-hour highlight window. No chat plaintext is exposed.",
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "publicationId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"204": {
"description": "Success.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/social/feed
getSocialFeed
{
"operationId": "getSocialFeed",
"tags": [
"Social"
],
"summary": "getSocialFeed",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"description": "Authenticated social content. Current friendship/block and group channel access apply. Publication links never confer access. Stories remain readable after the 24-hour highlight window. No chat plaintext is exposed.",
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 20
}
}
],
"responses": {
"200": {
"description": "Success.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocialFeedPageResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}GET/api/v1/social/stories/active
getActiveSocialStories
{
"operationId": "getActiveSocialStories",
"tags": [
"Social"
],
"summary": "getActiveSocialStories",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"description": "Authenticated social content. Current friendship/block and group channel access apply. Publication links never confer access. Stories remain readable after the 24-hour highlight window. No chat plaintext is exposed.",
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "author",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 50
}
}
],
"responses": {
"200": {
"description": "Success.",
"headers": {
"Cache-Control": {
"$ref": "#/components/headers/NoStore"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocialPublicationPageResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/scheduled
scheduleSecureMessage
{
"operationId": "scheduleSecureMessage",
"tags": [
"Encryption"
],
"description": "Owner/device-authenticated opaque MLS scheduling. Exact request bytes are idempotent. Delivery rechecks the current roster, epoch, device certificate and write permissions without requiring the original login session to remain active. A changed audience fails closed; no plaintext fallback. List and cancellation use the existing owner-scoped chat scheduled endpoints.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/ChatScopeType"
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-XChat-MLS-Control",
"in": "header",
"required": false,
"description": "Set to 2 to process v2 MLS control records. Missing or unsupported values receive 426 once the channel is activated; this is a capability hint, not authorization.",
"schema": {
"type": "string",
"enum": [
"2"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScheduledChatMessageResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScheduleSecureMessageRequest"
}
}
}
}
}GET/api/v1/e2ee/scheduled/{scheduledId}
getSecureScheduledMessage
{
"operationId": "getSecureScheduledMessage",
"tags": [
"Encryption"
],
"description": "Returns one owned MLS scheduled message for authenticated editing. Both owner and current device are authenticated. The response contains only the encrypted application and account-private preview and is never cached. Another owner cannot read the scheduled item. List and cancellation use the existing owner-scoped chat scheduled endpoints.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scheduledId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScheduledChatMessageResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
}
}
}PATCH/api/v1/e2ee/scheduled/{scheduledId}
updateSecureScheduledMessage
{
"operationId": "updateSecureScheduledMessage",
"tags": [
"Encryption"
],
"description": "Owner/device-authenticated opaque MLS scheduling. Exact request bytes are idempotent. Delivery rechecks the current roster, epoch, device certificate and write permissions without requiring the original login session to remain active. A changed audience fails closed; no plaintext fallback. List and cancellation use the existing owner-scoped chat scheduled endpoints.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scheduledId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ScheduledChatMessageResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"description": "A newer MLS control reader is required before this operation.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateSecureScheduledMessageRequest"
}
}
}
}
}POST/api/v1/media/transport/leases/{leaseId}/microphone-admission
refreshVoiceMicrophoneAdmission
{
"operationId": "refreshVoiceMicrophoneAdmission",
"tags": [
"Encryption"
],
"description": "",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "leaseId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceMicrophoneAdmissionResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MediaLeaseGenerationRequest"
}
}
}
}
}POST/api/v1/voice/admission
admitOrdinaryVoice
{
"operationId": "admitOrdinaryVoice",
"tags": [
"Encryption"
],
"description": "Ordinary VOICE only. Exact authenticated account/device and participation are revalidated. Explicit encryptionProtocolVersion 0 returns a prepared lease before physical RTC binding; no presentation scene, attendance, media key or key leader is required. TLS/WebRTC transport protection remains, and the media server can process channel audio/video. microphoneAdmission.GRANTED is business authorization, not proof of active capture; the exact provider policy ACK remains required. mediaEncryptionVersion 0 is persisted on the returned lease; the optional recipient is absent. Missing/legacy media modes require a client update and cannot mix with mode 0 in an active room. X-XChat-Classroom: 1 is the retained admission wire marker, not the media version.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "X-XChat-Classroom",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceAdmissionResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceAdmissionRequest"
}
}
}
}
}POST/api/v1/communities/{communityId}/channels
createCommunityChannel
{
"operationId": "createCommunityChannel",
"tags": [
"Communities"
],
"description": "Canonical channelKind. Legacy channelType+speakerModeEnabled is adapted only when channelKind is omitted. An occupied room or live lease forbids kind conversion with 409 VOICE_ROOM_KIND_BUSY. An optional policy saves viewing and all applicable capability rules in the same transaction. Broadcasting is required for non-text channels, speaking only for speaker channels. Omitting policy preserves legacy create and update behavior.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "communityId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommunityChannelResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateChannelRequest"
}
}
}
}
}PATCH/api/v1/channels/{channelId}
updateCommunityChannel
{
"operationId": "updateCommunityChannel",
"tags": [
"Communities"
],
"description": "Canonical channelKind. Legacy channelType+speakerModeEnabled is adapted only when channelKind is omitted. An occupied room or live lease forbids kind conversion with 409 VOICE_ROOM_KIND_BUSY. An optional policy saves viewing and all applicable capability rules in the same transaction. Broadcasting is required for non-text channels, speaking only for speaker channels. Omitting policy preserves legacy create and update behavior.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommunityChannelResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateChannelRequest"
}
}
}
}
}PATCH/api/v1/channels/{channelId}/speaker-access
updateCommunityChannelSpeakerAccess
{
"operationId": "updateCommunityChannelSpeakerAccess",
"tags": [
"Communities"
],
"description": "Configures which members may receive speaking permission in a SPEAKER channel. Owner and administrators remain eligible. An empty selector is unrestricted. The policy is server authoritative and does not apply to ordinary VOICE channels.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "channelId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Current server-authoritative speaker eligibility policy.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommunityAccessResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateCommunityAccessRequest"
}
}
}
}
}POST/api/v1/media/e2ee/voice/state
POST /api/v1/media/e2ee/voice/state
{
"operationId": "POST_api_v1_media_e2ee_voice_state",
"tags": [
"Encryption"
],
"summary": "POST /api/v1/media/e2ee/voice/state",
"description": "Ordinary VOICE media protocol 2 only. Requires current authenticated account/device, exact live participation and lease/generation, and certified current roster. Server returns only authorized signed ciphertext heads. No room leader or all-members ACK.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Current authorized resource. Defaults/null fields may be omitted.",
"headers": {
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store"
]
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoicePublisherKeyStateResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/voice/crypto/VoicePublisherKeyRoutes.kt",
"line": 15,
"routeBodySha256": "23edc8acd7f2be323eef62c49c8b8dc45bd79bfe2c6868f0f114507baa58ee44"
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoicePublisherKeyStateRequest"
}
}
}
}
}POST/api/v1/media/e2ee/voice/publisher-key
POST /api/v1/media/e2ee/voice/publisher-key
{
"operationId": "POST_api_v1_media_e2ee_voice_publisher_key",
"tags": [
"Encryption"
],
"summary": "POST /api/v1/media/e2ee/voice/publisher-key",
"description": "Ordinary VOICE media protocol 2 only. Requires current authenticated account/device, exact live participation and lease/generation, and certified current roster. Server returns only authorized signed ciphertext heads. No room leader or all-members ACK. Publish one signed publisher generation with exact rosterDigest and recipient set. INITIAL uses previousKeyGeneration=0; generation must advance by one. Pure additions use ADD_RATCHET; removal or replacement uses REMOVE_RESEED. The durable head and desired policy commit together; successful HTTP response also requires exact configured-provider ACK outside SQL and a fresh authorization check. 503/lost response may be reconciled by replaying the identical accepted envelope, not inventing a new generation. A moderator DENY is a legitimate acknowledged policy; this response does not override it.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Current authorized resource. Defaults/null fields may be omitted.",
"headers": {
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store"
]
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoicePublisherKeyStateResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/voice/crypto/VoicePublisherKeyRoutes.kt",
"line": 21,
"routeBodySha256": "118bde001295a5ed40bb454b993f93c9a4676bb3ea4e97aa05bd0357e99cfcfa"
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublishVoicePublisherKeyRequest"
}
}
}
}
}POST/api/v1/classroom/sessions/{voiceSessionId}/attendance
POST /api/v1/classroom/sessions/{voiceSessionId}/attendance
{
"operationId": "POST_api_v1_classroom_sessions_voiceSessionId_attendance",
"tags": [
"Media"
],
"summary": "POST /api/v1/classroom/sessions/{voiceSessionId}/attendance",
"description": "Optional board/screen attendance for an already admitted ordinary VOICE protocol 2 lease. Exact account/device/participation/session/lease/generation must match. Does not acquire a second media lease or own ordinary audio. Screen-only provider enrollment occurs outside SQL; failure leaves the main audio lease intact. Scope voiceSessionId must equal the path.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "voiceSessionId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "X-XChat-Classroom",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"200": {
"description": "Current authorized resource. Defaults/null fields may be omitted.",
"headers": {
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store"
]
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClassroomAttendanceResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/classroom/ClassroomRoutes.kt",
"line": 60,
"routeBodySha256": "9f35f374e7f5e18204caa289754c1d2389a14d5223c88b86764326a9e1632839"
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClassroomAttendanceRequest"
}
}
}
}
}GET/api/v1/chat/attachments/{attachmentId}/encrypted-poster
GET /api/v1/chat/attachments/{attachmentId}/encrypted-poster
{
"operationId": "GET_api_v1_chat_attachments_attachmentId_encrypted_poster",
"tags": [
"Media"
],
"summary": "GET /api/v1/chat/attachments/{attachmentId}/encrypted-poster",
"description": "Read optional immutable encrypted poster metadata after current original-message authorization. 404 means absent or unavailable; it does not invalidate the original attachment.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "attachmentId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Current authorized resource. Defaults/null fields may be omitted.",
"headers": {
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store"
]
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EncryptedPosterResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/media/poster/EncryptedPosterRoutes.kt",
"line": 17,
"routeBodySha256": "d2af83b5885e466d191da63bc271d80f28e149b736aea97c4a5df96c23f24491"
}
}PUT/api/v1/chat/attachments/{attachmentId}/encrypted-poster
PUT /api/v1/chat/attachments/{attachmentId}/encrypted-poster
{
"operationId": "PUT_api_v1_chat_attachments_attachmentId_encrypted_poster",
"tags": [
"Media"
],
"summary": "PUT /api/v1/chat/attachments/{attachmentId}/encrypted-poster",
"description": "Publish one immutable supplemental poster for an existing encrypted original attachment. Only the current original message author can consume their own READY encrypted upload (1..524288 bytes, application/vnd.teamyfy.e2ee, inlineImage=false, no thumbnail). The original message envelope and attachment inventory are not edited. Identical upload+descriptor retries return the same poster after fresh authorization; another poster returns POSTER_ALREADY_PUBLISHED (409), unavailable upload POSTER_UPLOAD_UNAVAILABLE (409), invalid metadata POSTER_INVALID (400). A metadata hint is emitted after commit without creating a message or unread marker.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "attachmentId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Current authorized resource. Defaults/null fields may be omitted.",
"headers": {
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store"
]
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EncryptedPosterResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"426": {
"$ref": "#/components/responses/UpgradeRequired"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/media/poster/EncryptedPosterRoutes.kt",
"line": 22,
"routeBodySha256": "91fd236806508525f23ce278049060924ce2455af4fba1e7e61d05017e355ef7"
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PutEncryptedPosterRequest"
}
}
}
}
}GET/api/v1/chat/attachments/{attachmentId}/encrypted-poster/download
Download an authorized encrypted poster
{
"operationId": "downloadEncryptedAttachmentPoster",
"tags": [
"Media"
],
"summary": "Download an authorized encrypted poster",
"description": "Read immutable ciphertext only after the exact original message authorization. Same single-range/If-Range behavior as attachment downloads; no shared cache and no plaintext image. The descriptor is obtained from the encrypted-poster metadata route. Size remains 1..524288 bytes.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "attachmentId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "Range",
"in": "header",
"description": "Single inclusive bytes=start-end, bytes=start- or bytes=-suffix-length. End clamps to EOF; large numeric bounds saturate safely. Supported single-range header is bounded to 4096 characters.",
"schema": {
"type": "string"
}
},
{
"name": "If-Range",
"in": "header",
"description": "Exact strong ETag from HEAD/GET. Mismatch yields full 200; range clients should inspect status/identity before reading the body.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Full immutable representation, including existing full-download clients.",
"headers": {
"Content-Length": {
"description": "Full representation size on HEAD/200; transferred byte count on 206.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
"Content-Type": {
"description": "Opaque encrypted poster content type, never plaintext image MIME.",
"schema": {
"type": "string"
}
},
"ETag": {
"description": "Strong opaque identity, stable for unchanged bytes and representation metadata.",
"schema": {
"type": "string",
"pattern": "^\"[0-9a-f]{64}\"$"
}
},
"Accept-Ranges": {
"schema": {
"type": "string",
"enum": [
"bytes"
]
}
},
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store, no-transform"
]
}
},
"Content-Encoding": {
"schema": {
"type": "string",
"enum": [
"identity"
]
}
},
"Content-Disposition": {
"description": "Existing attachment download disposition and sanitized filename.",
"schema": {
"type": "string"
}
}
},
"content": {
"application/vnd.teamyfy.e2ee": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
},
"206": {
"description": "Exact single range; Content-Length is range size, not full resource size.",
"headers": {
"Content-Length": {
"description": "Full representation size on HEAD/200; transferred byte count on 206.",
"schema": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
"Content-Type": {
"description": "Opaque encrypted poster content type, never plaintext image MIME.",
"schema": {
"type": "string"
}
},
"ETag": {
"description": "Strong opaque identity, stable for unchanged bytes and representation metadata.",
"schema": {
"type": "string",
"pattern": "^\"[0-9a-f]{64}\"$"
}
},
"Accept-Ranges": {
"schema": {
"type": "string",
"enum": [
"bytes"
]
}
},
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store, no-transform"
]
}
},
"Content-Encoding": {
"schema": {
"type": "string",
"enum": [
"identity"
]
}
},
"Content-Disposition": {
"description": "Existing attachment download disposition and sanitized filename.",
"schema": {
"type": "string"
}
},
"Content-Range": {
"schema": {
"type": "string",
"pattern": "^bytes [0-9]+-[0-9]+/[0-9]+$"
}
}
},
"content": {
"application/vnd.teamyfy.e2ee": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"416": {
"description": "Invalid or unsatisfiable supported single byte range, after authorization. Empty body.",
"headers": {
"Content-Range": {
"schema": {
"type": "string",
"pattern": "^bytes \\*/[0-9]+$"
}
},
"Content-Length": {
"schema": {
"type": "integer",
"enum": [
0
]
}
},
"Cache-Control": {
"schema": {
"type": "string",
"enum": [
"private, no-store, no-transform"
]
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/media/poster/EncryptedPosterRoutes.kt",
"line": 28,
"routeBodySha256": "2479b88268b970512ba53103fe2dcc6d1550ff7a31b20259d675a8743963cbe8"
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/public-cards
publishSecurePublicChatCard
{
"operationId": "publishSecurePublicChatCard",
"tags": [
"Encryption"
],
"description": "Human-only atomic publication of public news or a public channel event and its encrypted MLS timeline token. Exactly one public record is required. Current certificate, enrolled leaf and write ACL precede receipt lookup. Retain exact cardId, public input and application across ambiguous outcomes. Only MLS_STALE_EPOCH_NOT_ACCEPTED permits reprepare; exact accepted retry returns the original receipt with inserted=false. Deleted content is not recreated. Legacy creation after cutover returns PUBLIC_CARD_ENCRYPTED_ANCHOR_REQUIRED; an encrypted event anchor cannot change channels (PUBLIC_CARD_CHANNEL_MOVE_UNSUPPORTED). This source contract does not establish deployment or device acceptance.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"name": "X-XChat-Device-Id",
"in": "header",
"required": true,
"schema": {
"type": "string",
"maxLength": 128
}
},
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"type": "string",
"enum": [
"CHANNEL"
]
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecurePublicChatCardResponse"
}
}
},
"headers": {
"Cache-Control": {
"schema": {
"type": "string"
},
"description": "private, no-store"
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"413": {
"description": "Secure JSON body exceeds 8 MiB"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PutSecurePublicChatCardRequest"
}
}
}
}
}GET/api/v1/dm/conversations/page
Read an authorised conversation or call-directory page
{
"operationId": "listDirectConversationPage",
"tags": [
"Direct messages"
],
"summary": "Read an authorised conversation or call-directory page",
"description": "ACTIVITY preserves existing paging. LAST_CALL excludes bot peers before LIMIT, orders persisted DIRECT call starts descending then conversation ID descending, and places no-call peers last by ID descending. Incoming/outgoing, audio/video and unanswered attempts share the persisted call identity. Call cursors are distinct from ACTIVITY cursors and explicitly encode the no-call tail. Response echoes LAST_CALL: clients reject an absent/default ACTIVITY echo for a LAST_CALL request, rather than treating an old server page as call-ordered. This read neither starts a call nor changes read state.",
"security": [
{
"BearerAuth": []
},
{
"WebSessionCookie": [],
"WebSessionMode": []
}
],
"parameters": [
{
"$ref": "#/components/parameters/WebSessionMode"
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
},
"description": "Opaque nextCursor from a page using the same order."
},
{
"name": "order",
"in": "query",
"required": false,
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/DirectConversationOrder"
}
],
"default": "ACTIVITY"
}
}
],
"responses": {
"200": {
"description": "Actor-owned page; null/default fields may be omitted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DirectConversationListPageResponse"
}
}
}
},
"400": {
"description": "Invalid order or malformed/cross-directory cursor."
},
"401": {
"description": "Authentication required."
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/ServiceUnavailable"
}
}
}POST/api/v1/e2ee/conversations/{scopeType}/{scopeId}/applications/recording-card
managedRecordingCardReserve
{
"operationId": "managedRecordingCardReserve",
"tags": [
"Chat"
],
"security": [
{
"BearerAuth": []
}
],
"description": "Exact server-readable recording-card reservation/publication under current access and generation. Reservation is invisible until complete artifact finalization; receipt does not prove playable media.",
"parameters": [
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"type": "string",
"enum": [
"CHANNEL",
"DIRECT"
]
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[1-9][0-9]*$"
}
},
{
"name": "X-Teamyfy-Content-Protocol",
"in": "header",
"required": true,
"schema": {
"type": "string",
"enum": [
"1"
]
},
"description": "Явный server-managed content protocol; не версия TLS, WebRTC или URL API."
},
{
"name": "X-Teamyfy-Content-Generation",
"in": "header",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Текущая historyGeneration из capability/bootstrap; несовпадение даёт 409 до выделения content-ресурсов."
}
],
"responses": {
"200": {
"description": "Exact reservation/publication receipt.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureApplicationResponse"
}
}
}
},
"409": {
"description": "Current content generation or revision changed; retain exact operation custody and refresh negotiation. Never replay an old-generation intent as a new one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"426": {
"description": "An explicitly supported managed content protocol is required.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ReserveManagedRecordingCardRequest"
}
}
}
}
}GET/api/v1/e2ee/conversations/{scopeType}/{scopeId}/applications/recording-card/{messageId}
managedRecordingCardReceipt
{
"operationId": "managedRecordingCardReceipt",
"tags": [
"Chat"
],
"security": [
{
"BearerAuth": []
}
],
"description": "Exact server-readable recording-card reservation/publication under current access and generation. Reservation is invisible until complete artifact finalization; receipt does not prove playable media.",
"parameters": [
{
"name": "scopeType",
"in": "path",
"required": true,
"schema": {
"type": "string",
"enum": [
"CHANNEL",
"DIRECT"
]
}
},
{
"name": "scopeId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[1-9][0-9]*$"
}
},
{
"name": "messageId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[1-9][0-9]*$"
}
}
],
"responses": {
"200": {
"description": "Exact reservation/publication receipt.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SecureApplicationResponse"
}
}
}
}
}
}