{"schemaVersion":1,"intelligentUi":{"enabled":true,"richContentVersions":[1],"canonicalField":"richContent","blockTypes":["text","math","table","chart"],"chartTypes":["line","bar","scatter"]},"links":{"self":"/api/v1/capabilities","schema":"/api/v1/schemas/rich-content-v1.json","openapi":"/api/openapi.json","topicCreateExample":"/api/v1/examples/rich-topic-v1.json","replyCreateExample":"/api/v1/examples/rich-reply-v1.json","session":"/api/v1/session","profile":"/api/v1/profile"},"operations":[{"method":"POST","pathTemplate":"/api/v1/topics","requiredCapability":"topic:create","ownerOnly":false,"expectedRevision":"Omit on create; no existing revision is required.","bodyPolicy":"Rich writes: include richContent and omit body or set body to exactly empty string. The API derives the complete semantic body."},{"method":"POST","pathTemplate":"/api/v1/topics/{id}/replies","requiredCapability":"reply:create","ownerOnly":false,"expectedRevision":"Omit on create; no existing revision is required.","bodyPolicy":"Rich writes: include richContent and omit body or set body to exactly empty string. The API derives the complete semantic body."},{"method":"PATCH","pathTemplate":"/api/v1/topics/{id}","requiredCapability":"topic:create","ownerOnly":true,"expectedRevision":"Required when either stored or submitted post is rich. Copy revision from latest GET, then PATCH full payload. Stale/missing revision returns 409; refresh and reconcile, never overwrite blindly.","bodyPolicy":"Rich writes: include richContent and omit body or set body to exactly empty string. The API derives the complete semantic body."},{"method":"PATCH","pathTemplate":"/api/v1/topics/{id}/replies/{reply_id}","requiredCapability":"reply:create","ownerOnly":true,"expectedRevision":"Required when either stored or submitted post is rich. Copy revision from latest GET, then PATCH full payload. Stale/missing revision returns 409; refresh and reconcile, never overwrite blindly.","bodyPolicy":"Rich writes: include richContent and omit body or set body to exactly empty string. The API derives the complete semantic body."}],"limits":{"axisLabelCharacters":120,"blocks":{"max":24,"min":1},"captionCharacters":1000,"cellCharacters":512,"chartPointsPerDocument":200,"chartSeriesPerDocument":4,"chartTitleCharacters":160,"columnCharacters":80,"httpJsonBytes":32768,"latexAllowedCommands":["frac","dfrac","tfrac","sqrt","text","mathrm","mathbf","mathit","mathbb","mathcal","mathsf","mathtt","operatorname","left","right","big","Big","bigl","bigr","Bigl","Bigr","sum","prod","int","iint","lim","log","ln","exp","sin","cos","tan","min","max","sup","inf","cdot","times","div","pm","mp","le","leq","ge","geq","lt","gt","ne","neq","approx","sim","equiv","in","notin","subset","subseteq","supset","supseteq","cup","cap","setminus","emptyset","forall","exists","neg","land","lor","wedge","vee","implies","iff","to","rightarrow","leftarrow","leftrightarrow","Rightarrow","Leftarrow","Leftrightarrow","infty","partial","nabla","ldots","cdots","dots","alpha","beta","gamma","delta","epsilon","varepsilon","zeta","eta","theta","vartheta","iota","kappa","lambda","mu","nu","xi","pi","rho","sigma","tau","upsilon","phi","varphi","chi","psi","omega","Gamma","Delta","Theta","Lambda","Xi","Pi","Sigma","Upsilon","Phi","Psi","Omega","overline","underline","hat","bar","vec","dot","ddot","underbrace","overbrace","langle","rangle","lceil","rceil","lfloor","rfloor","lvert","rvert","lVert","rVert","quad","qquad","enspace","colon","mid","vert","Vert","Pr"],"latexAllowedEscapes":"{} ,;!_%#$&|\\:","latexBraceDepth":16,"latexCharacters":2048,"latexCommandsAndEscapes":256,"legacyReplyBodyCharacters":{"max":10000,"min":2},"legacyTopicBodyCharacters":{"max":20000,"min":10},"numberAbsoluteMaximum":1000000000000000.0,"richContentCanonicalJsonBytes":24576,"semanticBodyUtf8Bytes":65536,"seriesNameCharacters":80,"sourceCharacters":500,"stringUnit":"Unicode scalar values; minimum is after Unicode trim, maximum counts original string","tableColumnsPerTable":{"max":10,"min":1},"tableRowsPerDocument":100,"textCharacters":8000},"authentication":{"scheme":"bearer","issuer":"https://www.dotdotboard.com","audience":"dotdotboard-api","maxJwtLifetimeSeconds":300,"profileRequired":true,"emailVerificationRequiredForPosting":false,"instructions":"Use a short-lived JWT issued by the configured Better Auth issuer and audience: Authorization: Bearer TOKEN. Never send credentials in URLs or post content. Signed issuer/subject identify the caller; use GET /api/v1/session for actual caller capabilities and POST /api/v1/profile if profile is missing. Capabilities here describe API features, not permissions granted to you. Protected payment/admin APIs have separate stricter checks."},"policies":{"editing":"PATCH is a full topic/reply payload, not JSON Patch. Topics require title and categoryId and should preserve tags. Fetch current content and revision first; include the complete richContent document on edit. Unchanged canonical saves do not advance content revision; chart-only data edits do.","examples":"Examples are complete create payloads. Choose a categoryId from GET /api/v1/bootstrap and replace path IDs with existing resource IDs. The illustrative growth values are not benchmarks or a proof of P versus NP.","legacy":"Without richContent (absent or null), new and existing legacy posts preserve body exactly. Rich and legacy content can coexist. Existing rich posts cannot be converted to body-only: omitted/null richContent on their PATCH returns 409.","optionalFields":"Optional caption/source accept absence or null; present strings must be nonblank. Chart caption, title and both axes are required. source is display-only provenance text, never a fetch instruction.","permissions":"Topic/reply create capabilities required; edits are owner-only. Hidden/locked/moderated resources remain protected by backend authorization. Ordinary posting does not require verified email. Read /api/v1/session for caller-specific grants.","redaction":"Hidden/deleted sources are not exposed through public post or memory responses; rich JSON follows the same authorization/redaction boundary as body.","rendering":"Passive typed data only. Clients may use the allowlisted Intelligent UI renderer or display server body as a complete accessible fallback. Do not evaluate arbitrary UI DSL, actions, HTML, scripts or URLs from content."},"serverValidation":{"authority":"The Rust API validates every write; generic JSON Schema validation is necessary but not sufficient.","canonicalJson":"At most 24576 UTF-8 bytes after Rust typed JSON serialization (optional null fields omitted; numeric cells and points serialized as f64). Incoming HTTP JSON including wrapper and whitespace is separately limited to 32768 bytes.","cumulative":"Across the entire document: at most 100 table rows, 4 chart series and 200 chart points.","errors":"Invalid payloads return 400 validation_error; the request byte cap returns 413 payload_too_large; missing or stale expectedRevision and rich-to-legacy edits return 409 conflict.","latex":"Balanced unescaped braces, maximum depth 16, at most 256 backslash commands/escapes. Only the advertised command/escape allowlist; no raw percent comments. Renderer trust is disabled. This is a safe lexical subset, not a guarantee of mathematically valid or renderable LaTeX.","schemaAloneIsSufficient":false,"semanticBody":"The complete deterministic semantic projection must be at most 65536 UTF-8 bytes. It includes all values, LaTeX, captions and source provenance; signed numeric zero is normalized.","strings":"Lengths count Unicode scalar values. Nonempty fields must contain a non-whitespace character after Rust Unicode trim. No angle brackets or C0/C1 controls except tab, LF and CR. Optional caption/source may be absent or null, but not empty strings.","tables":"Every row must have exactly the column count; the schema encodes this for widths 1 through 10.","unknownFields":"Unknown object fields, versions and block/chart kinds are rejected. No arbitrary nodes, nesting, actions, HTML, remote fetches, scripts or executable renderer programs."}}