API Reference
The application provides several HTTP API endpoints. All authenticated endpoints require a valid login session.
| Endpoint | Auth | Description |
|---|---|---|
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) |