{"openapi":"3.1.0","info":{"title":"FundChart Public Data API","version":"1.1.0","description":"Read-only access to published fund data. The public token is workspace-scoped and ships inside embed snippets; only explicitly published data is served. Embedding guide: https://fundchart.io/docs/embedding.md. MCP server for agents: POST https://api.fundchart.io/mcp (https://fundchart.io/docs/mcp.md)."},"servers":[{"url":"https://api.fundchart.io"}],"paths":{"/v1/{token}/funds/{fundId}":{"get":{"operationId":"getFund","summary":"Latest published version of a fund","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"},"description":"Workspace public token (fcp_...). Read-only, safe to expose."},{"name":"fundId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Published fund document","headers":{"cache-control":{"description":"public, max-age=60, stale-while-revalidate=300","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string"},"fundId":{"type":"string"},"slug":{"type":"string"},"version":{"type":"integer"},"publishedAt":{"type":"string","format":"date-time"},"data":{"type":"object","description":"Canonical fund data: meta, snapshot (fees, prices), perfTable, monthlyReturns, annualReturns, cumulative growth series, allocation, exposure, holdings, disclaimers."}}}}}},"401":{"description":"invalid token, or this fund belongs to a different workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"this workspace has no active plan","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"not published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/w/{token}/center":{"get":{"operationId":"getFundCentreHtml","summary":"Themed HTML fragment listing all published funds for the workspace","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"},"description":"Workspace public token (fcp_...). Read-only, safe to expose."},{"name":"style","in":"query","schema":{"type":"string","enum":["editorial","classic"],"default":"editorial"},"description":"Personality: editorial (paper look) or classic (factsheet look)."},{"name":"theme","in":"query","schema":{"type":"string","enum":["paper","ink"]},"description":"Mode: paper (light) or ink (dark). Editorial defaults to paper, classic to ink."},{"name":"brand","in":"query","schema":{"type":"string","pattern":"^#?[0-9a-fA-F]{6}$","description":"Brand colour, hex without #; the palette is derived from it."}},{"name":"brand2","in":"query","schema":{"type":"string","pattern":"^#?[0-9a-fA-F]{6}$","description":"Second brand colour, hex without #; used by fill=duo and the classic benchmark."}},{"name":"fill","in":"query","schema":{"type":"string","enum":["gradient","duo","flat"]}},{"name":"font","in":"query","schema":{"type":"string","enum":["archivo","space-grotesk","fraunces","plex-mono"]}},{"name":"bg","in":"query","schema":{"type":"string","enum":["surface","card","inherit"],"default":"surface"},"description":"The loader sends the element's `background` attribute as this."},{"name":"look","in":"query","schema":{"type":"string","enum":["standard"]},"description":"standard = draw the standard look even when the workspace has a managed custom look."},{"name":"link","in":"query","schema":{"type":"string"},"description":"Row link template, e.g. /funds/{slug}. The loader sends link-template as this."}],"responses":{"200":{"description":"text/html fragment for a shadow root. A workspace with no active plan gets an empty body with x-fundchart-embed: off.","headers":{"cache-control":{"description":"public, max-age=60, stale-while-revalidate=300","schema":{"type":"string"}}},"content":{"text/html":{"schema":{"type":"string"}}}},"401":{"description":"invalid token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"domain not allowed for this token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"no published funds","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/w/{token}/{fundId}/{widget}":{"get":{"operationId":"getWidgetHtml","summary":"Themed HTML fragment for one widget, or the full fund page","description":"widget=page draws the fund page and fills every parameter left out from the fund's saved layout and hosted documents: the factsheet for the page's month or earlier, the newest commentary whatever the month; a link given here or typed in the layout wins. header is drawn only as part of page.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"},"description":"Workspace public token (fcp_...). Read-only, safe to expose."},{"name":"fundId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"widget","in":"path","required":true,"schema":{"type":"string","enum":["page","header","facts","hero","hero-si","perf","perf-chart","perf-table","growth","allocation","allocation-donut","allocation-mosaic","exposure","exposure-donut","exposure-longshort","risk-return","holdings","monthly","disclaimer"]}},{"name":"style","in":"query","schema":{"type":"string","enum":["editorial","classic"],"default":"editorial"},"description":"Personality: editorial (paper look) or classic (factsheet look)."},{"name":"theme","in":"query","schema":{"type":"string","enum":["paper","ink"]},"description":"Mode: paper (light) or ink (dark). Editorial defaults to paper, classic to ink."},{"name":"brand","in":"query","schema":{"type":"string","pattern":"^#?[0-9a-fA-F]{6}$","description":"Brand colour, hex without #; the palette is derived from it."}},{"name":"brand2","in":"query","schema":{"type":"string","pattern":"^#?[0-9a-fA-F]{6}$","description":"Second brand colour, hex without #; used by fill=duo and the classic benchmark."}},{"name":"fill","in":"query","schema":{"type":"string","enum":["gradient","duo","flat"]}},{"name":"font","in":"query","schema":{"type":"string","enum":["archivo","space-grotesk","fraunces","plex-mono"]}},{"name":"bg","in":"query","schema":{"type":"string","enum":["surface","card","inherit"],"default":"surface"},"description":"The loader sends the element's `background` attribute as this."},{"name":"look","in":"query","schema":{"type":"string","enum":["standard"]},"description":"standard = draw the standard look even when the workspace has a managed custom look."},{"name":"sections","in":"query","schema":{"type":"string"},"description":"Page only. Comma list of section keys: header, facts, hero, growth, perf, risk-return, allocation, exposure, holdings, monthly. The disclaimer is always added last."},{"name":"perfRows","in":"query","schema":{"type":"string"},"description":"Comma list of period keys, e.g. 1y,3y,5y,si."},{"name":"perfLabels","in":"query","schema":{"type":"string"},"description":"Period wording, key:label pairs joined by |, e.g. 1y:Rolling 12 months|si:Since launch."},{"name":"showAs","in":"query","schema":{"type":"string"},"description":"Page only. family:choice pairs joined by commas; allocation: bars|pie, exposure: bars|pie|table."},{"name":"header","in":"query","schema":{"type":"string","enum":["1","0"]},"description":"Page only. Show or hide the image header band."},{"name":"headerImage","in":"query","schema":{"type":"string","format":"uri"},"description":"Page only."},{"name":"headerTitle","in":"query","schema":{"type":"string"},"description":"Page only."},{"name":"investUrl","in":"query","schema":{"type":"string","format":"uri"},"description":"Page only."},{"name":"factsheetUrl","in":"query","schema":{"type":"string","format":"uri"},"description":"Page only."},{"name":"commentaryUrl","in":"query","schema":{"type":"string","format":"uri"},"description":"Page only."},{"name":"tfsaUrl","in":"query","schema":{"type":"string","format":"uri"},"description":"Page only."},{"name":"w","in":"query","schema":{"type":"string","enum":["sm"]},"description":"Narrow layout; the loader sends it under 480px."},{"name":"cw","in":"query","schema":{"type":"integer"},"description":"Host element width in px, sent by the loader."},{"name":"demoBenchmarks","in":"query","schema":{"type":"string","enum":["1"]},"description":"Demo only: two made-up benchmark lines, drawn only when the page asking is a FundChart page. Never real data."}],"responses":{"200":{"description":"text/html fragment for a shadow root. A workspace with no active plan gets an empty body with x-fundchart-embed: off.","headers":{"cache-control":{"description":"public, max-age=60, stale-while-revalidate=300","schema":{"type":"string"}}},"content":{"text/html":{"schema":{"type":"string"}}}},"401":{"description":"invalid token, or this fund belongs to a different workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"domain not allowed for this token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"not published, or unknown widget","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"render failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}}}}