API & Real-Time Routing Reference¶
Anvil Scribe v3 Server (:8790)¶
All /v1/memos* endpoints require either Authorization: Bearer <SCRIBE_CLIENT_TOKEN> or an allowlisted Tailscale-User-Login header (depending on scribe.toml).
| Method | Path | Purpose |
|---|---|---|
GET |
/healthz |
Unauthenticated liveness probe ({"ok": true}) |
POST |
/v1/memos/preview |
Multipart Ogg Opus live preview transcription (stores nothing) |
POST |
/v1/memos |
Multipart Ogg Opus audio upload (audio, durationMs, origin) or JSON text memo ({"transcript": "...", "origin": "desktop_typed"}) |
GET |
/v1/memos?limit=50&before=<id> |
Paginated memo history (newest first) |
GET |
/v1/memos/<id> |
Fetch one memo with transcript and all generated rewrite outputs |
PATCH |
/v1/memos/<id>/transcript |
Update editable transcript with optimistic concurrency (expectedRevision); origin, trainingPolicy, and rawTranscript are immutable |
DELETE |
/v1/memos/<id> |
Delete a memo, its audio file, and its job receipts |
POST |
/v1/memos/<id>/process |
Rewrite memo with profile, optional target, optional steering, optional expectedRevision, and optional Idempotency-Key header |
GET |
/v1/memos/<id>/jobs/<key> |
Inspect an idempotent rewrite job receipt |
DELETE |
/v1/memos/<id>/outputs/<outputId> |
Delete a single generated Notebook output |
GET |
/v1/memos/profiles |
List all 8 built-in profiles and custom profiles |
POST |
/v1/memos/profiles |
Create a custom profile (label, prompt, optional description, optional target) |
PUT |
/v1/memos/profiles/<id> |
Update a custom profile (built-ins are read-only) |
PATCH |
/v1/memos/profiles/<id>/target |
Set or clear the default model target for any built-in or custom profile |
DELETE |
/v1/memos/profiles/<id> |
Delete a custom profile |
GET |
/v1/memos/targets |
List configured rewrite model targets |
Real-Time Capability Router (:8000)¶
All /v1/* endpoints require Authorization: Bearer <SCRIBE_ROUTER_TOKEN>. Unknown route IDs return 404 with no hidden fallback.
| Method | Path | Purpose |
|---|---|---|
GET |
/healthz |
Unauthenticated liveness probe ({"ok": true}) |
GET |
/v1/models |
OpenAI-style list of declared route IDs and capabilities |
POST |
/v1/audio/transcriptions |
Accepts either OpenAI multipart/form-data (file + model) or Scribe's normalized JSON STT envelope ({"purpose": "stt", "format": "wav", "audio_b64": "...", "route": "..."}) and forwards to audio_routes.<route> (converting JSON envelopes to OpenAI multipart by default) |
POST |
/v1/chat/completions |
Chat JSON forwarded to the matching chat_routes.<model> upstream (stream: false) |