Skip to main content

init() options

Grouped by topic; everything is optional. window.TelepatiaRecorderConfig (set before the script loads) accepts the same fields, and init() wins when both set one. Endpoint overrides (baseUrl, data-*) exist for white-label setups only; you normally set nothing here.

TelepatiaRecorder methods

After the panel mounts, a new init() applies only open and callbacks; other fields take effect after destroy() then init().

Callbacks and errors

Register them in init({ callbacks }): onSessionStart(id), onSessionComplete(event), onError(message), onStateChange(state). The browser onSessionComplete is optional — the webhook is the reliable trigger. Health signals fire on window:
Backend fetch errors use Telepatia’s standard format — switch on code: authentication_required (401, key invalid or expired), resource_not_found (404, wrong id or fetched too early), resource_conflict (409, id reused), rate_limit_exceeded (429). The full table is on the Scribe API errors page.