API Reference

The application provides several HTTP API endpoints. All authenticated endpoints require a valid login session.

EndpointAuthDescription
GET /api/character/{"{id}"} User Returns computed character data as JSON (ability modifiers, AC, skill bonuses, spell save DC, attacks, etc.)
GET /api/character/{"{id}"}/render?templateId=N User Renders character with a Liquid template (uses default template if no templateId specified). Returns HTML.
GET /api/characters/{"{id}"}/export User Downloads character as self-contained JSON file with resolved entity names
GET /api/admin/export/database Admin Downloads the complete SQLite database file
GET /api/admin/export/characters Admin Downloads all characters from all users as a single JSON array
POST /api/characters/foundry-import User Import FoundryVTT actor JSON to sync session state (HP, XP, currency, spell slots, items)
GET /api/manual/pdf Public Download styled PDF user manual (unique icons each generation)
An unhandled error has occurred. Reload X

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.