Skip to main content

Documentation 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.

Polysona’s REST API is a local-first interface — it runs entirely on your own machine and requires no authentication, API keys, or remote service connectivity. The server reads persona data, content files, and skill definitions directly from your filesystem and exposes them as JSON endpoints consumed by the dashboard UI. You can also call these endpoints directly from scripts, terminals, or any HTTP client.

Base URL

All API routes are served under the /api prefix:
http://localhost:3000/api

Starting the Server

1

Install dependencies

Make sure Bun is installed, then install project dependencies from the project root.
2

Run the development server

bun run dev
The server starts on port 3000 by default. You will see:
Polysona dashboard server listening on http://localhost:3000
3

Verify the server is running

curl http://localhost:3000/api/status
The PORT environment variable overrides the default port. Set PORT=4000 bun run dev to run on a different port. Update your base URL accordingly.

Authentication

None required. This API is local-only and not intended for public exposure. No tokens, cookies, or headers are needed for any endpoint.

Response Format

All endpoints return JSON. Successful responses return the relevant data structure directly. There is no shared envelope wrapper — the shape varies per endpoint and is documented on each endpoint’s page.

Error Handling

When a resource is not found (for example, a persona ID that does not exist on disk), the API returns a 404 status with a JSON error body:
{
  "error": "not found"
}
No other error shapes are currently returned by the API.

Endpoints at a Glance

MethodPathDescription
GET/api/personasList all persona directories with IDs and names
GET/api/personas/:idRead full PLOON data for a single persona
GET/api/personas/:id/interview-logReturn parsed interview log entries for a persona
GET/api/personas/:id/qa-simulationRun a scored QA simulation across 20 follower archetypes
GET/api/content/draftsList filenames in content/drafts/
GET/api/content/publishedList filenames in content/published/
GET/api/agents/statusReturn status and skill file existence for all 5 agents
GET/api/statusReturn system-wide persona count, content count, and last activity

Detailed Endpoint Documentation

Personas

List personas, read PLOON data, retrieve interview logs, and run QA simulations across 20 follower archetypes.

Content

List draft and published content filenames from the content pipeline directories.

Agents & Status

Inspect agent health, skill file presence, and overall system status including version and last activity.

Data Source

This API reads exclusively from files on disk. Persona data lives under personas/<id>/ as PLOON-format Markdown files (persona.md, nuance.md, accounts.md). Content files live under content/drafts/ and content/published/. Agent skill definitions live under skills/. No database is involved — the filesystem is the source of truth.

Build docs developers (and LLMs) love