The content endpoints expose the two stages of Polysona’s content pipeline: drafts and published. Each endpoint scans the corresponding directory on disk and returns a sorted list of filenames. These are thin directory-listing endpoints — they tell you what files exist, not what they contain. Content files are Markdown documents written by the content-writer agent and moved through the pipeline by the admin agent. You can read the actual file contents directly from the filesystem atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LilMGenius/polysona/llms.txt
Use this file to discover all available pages before exploring further.
content/drafts/<filename> or content/published/<filename>.
GET /api/content/drafts
Lists all non-hidden files in thecontent/drafts/ directory, sorted alphabetically. Hidden files (names beginning with .) are excluded. If the directory does not exist or is empty, an empty array is returned — this endpoint never returns a 404.
Alphabetically sorted array of filenames present in
content/drafts/. Does not include subdirectory names or hidden files.GET /api/content/published
Lists all non-hidden files in thecontent/published/ directory, sorted alphabetically. Follows the same rules as the drafts endpoint: hidden files are excluded, and an empty directory returns an empty array rather than a 404.
Alphabetically sorted array of filenames present in
content/published/. Does not include subdirectory names or hidden files.Both endpoints return filenames only, not file contents. To read the actual Markdown content of a draft or published file, access it directly from the filesystem:The
contentCount field in GET /api/status reflects the combined total of drafts and published files — it is computed as drafts.length + published.length.