Author API
Manage scripts, import media and playtest drafts from your own tools.
Getting started
Manage interactive scripts, import SillyTavern PNG/JSON character cards and lorebooks, and playtest drafts over SSE with Bearer token authentication. Base URL: https://api.isekai.date with header Authorization: Bearer $ISEKAI_TOKEN.
Scopes
- scripts:read: Read account info, quota, script drafts, and play statistics
- scripts:write: Create, update, delete, import, and publish scripts, covers, and character cards
- playtest: Playtest authored drafts or published scripts and inspect story state
Endpoint reference
GET /api/author/scripts— List your scripts and statusPOST /api/author/scripts— Create a new scriptPUT /api/author/scripts/{id}— Save full script JSON with optimistic lockPOST /api/author/scripts/{id}/import/tavern— Parse a SillyTavern PNG/JSON card and lorebookPOST /api/author/scripts/{id}/publish— Validate and publish a scriptPOST /api/author/scripts/{id}/play— Start a playtest session from current draftPOST /api/stories/{storyId}/turns— Send a turn and stream SSE events (token / scene_changed / world)