Skip to content

Latest commit

 

History

History
910 lines (772 loc) · 59.5 KB

api.md

File metadata and controls

910 lines (772 loc) · 59.5 KB

FormREC local API

FormREC's API is the one its own client uses. It is generated from the route lists at the top of the route files (node dist/src/features/integrations/api-doc.js > docs/api.md after npm run build); a test fails when this file is out of date.

The loopback server

It listens on 127.0.0.1 only and answers only loopback host names. The port is in <data>/servers/ (see src/store/server-file.ts) and in the link formrec serve prints. Every /api route needs the run's token:

Authorization: Bearer <token>

or ?token=<token> for media a <video> element fetches itself. The token is printed by formrec serve (it is in the link it opens) and a new one is made each run. Bodies are JSON unless a row says otherwise; errors are { "error": "..." } with a 4xx or 5xx status.

curl -H "Authorization: Bearer $TOKEN" http://127.0.0.1:8770/api/recordings

From src/server/http.ts:

method path what it does
GET / the client
GET /demos/:demo/:file a demo shipped with the client (fixed ids and file names, no token)
GET /brand/:file the app mark and favicon (a fixed list of names, no token)
GET /api/info { version, dataDir, cli } (Settings shows the data folder and how to connect MCP)
GET /api/notices THIRD-PARTY-NOTICES.txt as plain text (Settings, About), 404 when not in the build
GET /api/recordings list
GET /api/recordings/:id one recording
GET /api/recordings/:id/:file video.webm, captions.vtt, chapters.vtt
GET /api/player/:id[/:file]?key= one recording's player with its player key, not the run's token (player-link.ts)
POST /api/uploads body = webm from the recorder; returns { id }
PUT /api/uploads/:id body = PersonRecording JSON; saves the recording
DELETE /api/recordings/:id

From src/server/studio-routes.ts:

method path what it does
POST /api/sessions { title, mode } -> session (and the room follows it)
GET /api/sessions/:id { session, now, guests }
POST /api/sessions/:id/control { action: start | pause | resume | stop }
POST /api/sessions/:id/tracks { kind, mime, startedAt } -> the host's track
POST /api/sessions/:id/tracks/:t/chunks ?seq=n, body = WebM bytes
POST /api/sessions/:id/tracks/:t/end { durationMs }
POST /api/sessions/:id/save PersonRecording JSON -> recording
GET /api/sessions?unsaved=1 { takes }: takes that never became recordings (crash recovery)
POST /api/sessions/:id/recover { title?, summary? } -> recording (an unsaved take, closed at its last write)
DELETE /api/sessions/:id[?cancel=1] discard an unsaved take explicitly (cancel=1: the studio's own live take)
POST /api/sessions/:id/tracks?source=system the computer's sound as its own track (host-system)
POST /api/sessions/:id/tracks?source=phone a phone's sound as its own track (host-phone)
GET /api/rtc?after=n
POST /api/rtc the host's signalling
GET /api/guests
PUT /api/guests the guest listener: state, { enabled }
POST /api/guests/code a one-time pairing code
DELETE /api/guests/devices/:id forget a paired device
POST /api/recordings/:id/formcut open the recording in FormCut

From src/apps/figma.ts:

method path what it does
GET /apps/figma/recent {"recordings":[{shareId,title,url,embedUrl,durationMs,createdAt,posterUrl?}]}
GET /apps/figma/frames/<shareId> {"shareId","title","url","embedUrl","steps":[{index,atMs,title,link,png}]}
GET /apps/figma/frames/<shareId>/<n>.png step n's picture, a PNG (src/features/ai/figma.ts framePng)

From src/apps/formmd.ts:

method path what it does
GET /apps/formmd/card?url=<share-link> {"url","kind":"page","title","description","site","image","embedUrl"}
GET /apps/formmd/markdown?url=<share-link> text/markdown: the body "Publish to form.md" writes (link on its own

From src/apps/google.ts:

method path what it does
GET /apps/google/preview?url=<share-link> smart chip data for the /v/ link (title, summary, duration, poster)
GET /apps/google/recent recent shares for the Gmail compose picker
GET /apps/google/insert?shareId=<id> the email snippet: the GIF, sized, linked to the share page (R3-26)
GET /apps/google/event?eventId=&start=&title= the deep link that starts the Meeting layout for a calendar event
GET /apps/google/open?link=formrec://... a page that hands a FormRec deep link to the desktop app (Card links must be https)

From src/apps/slack.ts:

method path what it does
POST /apps/slack/events Events API: url_verification, link_shared (chat.unfurl with a video block), app_home_opened (views.publish)
POST /apps/slack/command the /formrec slash command: no text lists recent shares, a link posts it, "record" links the recorder
POST /apps/slack/interactive block_actions from the buttons in the share list (post that share to the channel)
GET /apps/slack/install redirects to Slack's OAuth v2 authorize page
GET /apps/slack/oauth the redirect URL: oauth.v2.access, then the bot token is kept per team
GET /apps/slack/record redirects to formrec://record?mode=screen (Slack only links http(s) reliably)

From src/features/agents/index.ts:

method path what it does
GET /api/agents { server, clients: [{ id, name, config, found, state, snippet, http? }], tools: [names],
POST /api/agents/install { client, transport?: "stdio" | "http" | "relay" } -> { said: [lines], clients, relay }
POST /api/agents/mcp-token/rotate -> { http, clients } a new MCP token; the old one stops working at once
POST /api/agents/player-links/rotate -> { rotated: true } every player link given so far stops working at once

From src/features/ai/index.ts:

method path what it does
GET /api/ai/settings provider, model, auto outputs, hasKey (never the key)
PUT /api/ai/settings { provider?, model?, auto?, key?: string | null, tts?, ttsKey?: string | null, avatar?: { look } }
PUT /api/ai/avatar/photo[?landmarks=json] body = a PNG, JPEG or WebP (at most 8 MB): the photo avatar's picture (avatar-photo.ts)
GET /api/ai/avatar/photo the kept photo
PUT /api/ai/avatar/landmarks { eyeL, eyeR, mouth } where the photo's eyes and mouth are, 0 to 1
GET /api/ai/recordings/:id/avatar { avatar } what a page needs to draw the avatar (avatar-view.ts), or null when off
POST /api/ai/recordings/:id/avatar-track { on } the studio recorded the avatar as the camera track
GET /api/ai/recordings/:id ai.json (empty when nothing was made)
POST /api/ai/recordings/:id/generate { kinds, tone?, target?, provider? }
PUT /api/ai/recordings/:id/outputs/:kind { text, items? } an edit by the person
POST /api/ai/recordings/:id/tasks/:n { done } check a task off
POST /api/ai/recordings/:id/frames a frame at each step (ffmpeg)
POST /api/ai/recordings/:id/voice { script? } a synthesised voice-over (local TTS)
POST /api/ai/recordings/:id/translate { kind, to }
POST /api/ai/recordings/:id/apply { kind: title | summary | overlays | jira-updates, which? } title or summary: use it as the recording's own; overlays: onto the annotate track; jira-updates: Jira work items (integrations)
GET /api/ai/recordings/:id/jira-updates { updates }: the suggested updates, as apply would create them
GET /api/ai/:id/scenes { suggestions, items, text, tools, settings, note? }: chapter suggestions from screen changes
POST /api/ai/recordings/:id/avatar { on } the synthetic avatar that speaks the voice-over (avatar.ts)
GET /api/ai/recordings/:id/figma a zip: a PNG at each step and README.txt, for Figma (figma.ts)
GET /api/ai/material/:id?kind= the material and instruction (what the agent provider hands out)
GET /api/ai/search?q=&id=&space=&tag=&from=&to=&person= moments that match (a list; the hybrid index, semantic.ts)
GET /api/ai/semantic?q=&...same filters&limit= { hits, mode, model, indexed, pending, warning? }: search inside recordings
GET /api/ai/index { model, recordings, chunks, embedded, pending, errors }: the search index
POST /api/ai/index { rebuild? } bring the index up to date (or make every vector again)
POST /api/ai/ask { question, id?, space?, tag?, from?, to?, person? } an answer with citations

From src/features/analytics/routes.ts:

method path what it does
GET /api/analytics { schema: { version, tables: [{ name, kind, rows? }] }, destinations: [...] }
GET /api/analytics/schema the documented schema: every table, its key and columns
GET /api/analytics/export?table=&format=&since= one table as a CSV or NDJSON download (since: an updated_at, facts only)
POST /api/analytics/destinations { label, schedule, hour?, target: { kind: folder|postgres|bigquery|snowflake|webhook, ... }, secret? }
PATCH /api/analytics/destinations/:id { label?, enabled?, schedule?, hour? }
PUT /api/analytics/destinations/:id/secret { password? | key? , passphrase? } write-only
DELETE /api/analytics/destinations/:id
POST /api/analytics/destinations/:id/run { full? } runs now and answers with the result and the destination

From src/features/annotate/index.ts:

method path what it does
GET /api/annotate/:id the track ({ formrec: 1, kind: 'annotate', items: [] } when none)
PUT /api/annotate/:id replace the track (the editor's save, the studio's take)
POST /api/annotate/:id/items { items: [...] } add items (an existing id is replaced)
DELETE /api/annotate/:id/items/:itemId remove one item
POST /api/annotate/:id/clicks[?zoom=1] the desktop agent's click log (schema.ts ClickLogSchema)
POST /api/annotate/:id/auto-zoom { scale? } zoom keyframes on the click areas
GET /api/annotate/:id/filter?width&height[&fps] the FFmpeg filter graph an export would use (text)

From src/features/clips/index.ts:

method path what it does
GET /api/clips/:id { clips: [{ id, title, startMs, endMs, durationMs, shape, createdAt, player }], running }
GET /api/clips/:id/highlights the picks without making anything: { highlights, method, explain, notes } (query count, minMs, maxMs, picker)
POST /api/clips/:id { count, shapes, quality, captions, picks, picker, minMs, maxMs } -> 201 { clips, picked, notes }
DELETE /api/clips/:id/:clipId delete one clip (also DELETE /api/clips/:id?clip=)

From src/features/desktop/index.ts:

method path what it does
GET /api/desktop/settings the desktop app's settings (defaults until saved)
PUT /api/desktop/settings save them (validated; the page then hands them to the shell)
PUT /api/desktop/recordings/:id/clicks the take's system-wide click log (desktop-clicks.json), then imported
GET /api/desktop/recordings/:id/clicks read it back
GET /api/desktop/distractions what FormRec can hide and quiet on this computer, and what is changed now
POST /api/desktop/distractions/apply { hide?, quiet? } tidy the desktop for a take (undo commands saved first)
POST /api/desktop/distractions/restore put everything back (also what a take that never ended left)
POST /api/desktop/distractions/setup open the one-time set up for Do not disturb (Shortcuts, Settings)
GET /api/desktop/displays the displays the picker lists, with the picked one (settings.display)
PUT /api/desktop/displays { source, displays } the list the shell or the browser read
PUT /api/desktop/display { id | null } pick the display to capture (also where the overlay goes)
GET /api/desktop/native-feed the native display feed on Linux X11: { available, reason, monitors, enabled, monitor, active }
PUT /api/desktop/native-feed { enabled?, monitor? } the choice (a monitor id from the list, or null for the primary)
POST /api/desktop/native-feed/start { sessionId, monitor? } FFmpeg x11grab over the monitor into the take's screen track
POST /api/desktop/native-feed/pause { sessionId } | /resume | /stop (stop ends the track: { durationMs, bytes, trackId })

From src/features/documents/guide-publish.ts:

method path what it does
POST /api/pages { workspace_id, parent_id?, title, kind: "doc" }
PATCH /api/pages/{id} { title }
POST /api/files multipart purpose=attachment, workspace_id, page_id, name, file -> { file: { id } }
PUT /api/pages/{id}/markdown { markdown, mode: "replace" }; a picture is ![alt](f:<file id>)
POST /wiki/rest/api/content the page
POST /wiki/rest/api/content/{id}/child/attachment multipart file, header X-Atlassian-Token: nocheck
PUT /wiki/rest/api/content/{id} the body with ac:image<ri:attachment ri:filename=.../></ac:image>

From src/features/documents/index.ts:

method path what it does
GET /api/documents/info { ffmpeg, extension, mime, schemes }
GET /api/documents/package/:id the recording as a .frec download
POST /api/documents/import?name=<file> body = a .frec or a video (videos through the library importer) { recording, kind }
POST /api/documents/open { path } a .frec or video on this computer (File > Open, the file association)
GET /api/documents/recent the recent list, newest first
POST /api/documents/recent { id } mark a recording opened
DELETE /api/documents/recent[?id=] clear the list, or drop one
POST /api/documents/reveal/:id show the recording's folder in Finder, Explorer or Files (loopback peers only)
PATCH /api/documents/recordings/:id { title } rename through the one rename (src/mcp/tools.ts); the id stays
GET /api/documents/deeplink?url= a formrec:// link parsed (deeplink.ts)
POST /api/documents/export/:id { format, layout, captions } start an export job
GET /api/documents/jobs/:job the job: state, progress, file
GET /api/documents/exports/:id the exports a recording has
GET /api/documents/guide/:id what a picture guide would hold { steps, hidden, built, canBuild, pdf, ffmpeg, formmd, confluence }
GET /api/documents/guide/:id?format= the guide as a download (html, markdown = a zip with images/, pdf)
POST /api/documents/guide/:id { format: html|markdown|pdf|formmd|confluence, rebuild } make it, or publish it (guide.ts)
POST /api/documents/poster/:id the poster (edit-thumb.png), made by edit now when there is none

From src/features/effects/index.ts:

method path what it does
GET /api/effects/:id { recordingId, stored, effects } (the defaults when nothing is stored)
PUT /api/effects/:id EffectsPatch JSON -> the stored effects (merged over what is there)
DELETE /api/effects/:id forget the layout (the player falls back to the default bubble)
PUT /api/effects/:id/avatar body = PNG, at most 512 KB -> saved as effects-avatar.png beside the recording
GET /api/effects/:id/noise-filter { recordingId, enabled, setting, default }: the player's Noise filter (noise.ts)
PUT /api/effects/:id/noise-filter { enabled: boolean | null } (null sets the workspace default now); the
GET /api/effects/-/noise { stored, settings: { playerNoiseFilterDefault } } the workspace policy's default (noise.ts)
PUT /api/effects/-/noise { playerNoiseFilterDefault: boolean }
GET /api/effects/-/prefs { stored, prefs: { bubble, mirror } } the viewer's current bubble choices
PUT /api/effects/-/prefs { bubble?, mirror? } -> saved by the studio's effects panel; read by the desktop

From src/features/effects/noise.ts:

method path what it does
GET /api/effects/-/noise { stored, settings: { playerNoiseFilterDefault } } the workspace default
PUT /api/effects/-/noise { playerNoiseFilterDefault: boolean } -> the same
GET /api/effects/:id/noise-filter { recordingId, enabled, setting: boolean, default }
PUT /api/effects/:id/noise-filter { enabled: boolean | null } (null sets the workspace default now) -> the same

From src/features/engage/routes.ts:

method path what it does
GET /api/engage/people the people mentions can name
GET /api/engage/notifications the owner's notifications, newest first, after a scan of the share events
POST /api/engage/notifications/read { ids: string[] } or { all: true }
GET /api/engage/digest?hours=24 the digest of a period (R3-59)
GET /api/engage/hub?days=90&own=1 | /hub/csv the insights hub and its CSV (R3-55, R3-56, R4-44, R4-45)
GET /api/engage/activity?from=&to= | /activity/csv the activity log (R4-43)
GET /api/engage/history recently watched (R4-20)

From src/features/extension/gate.ts:

method path what it does
POST /api/extension/pair { code, name, browser } -> { token, browser } (no token: the code is the proof)

From src/features/extension/index.ts:

method path what it does
POST /api/extension/code a one-time pairing code { code, pairing: "-ABCD-EFGH", expiresAt }
GET /api/extension/browsers the paired browsers (never their tokens)
DELETE /api/extension/browsers/:id revoke one: its token stops working at once
GET /api/extension/recordings/:id/bugreport { bugReport | null, summary, code }: the take's console, failed requests and device (Bug report mode), and code: the stack frames and the failing step mapped to the codebase (ai/bugcode.ts) or null
DELETE /api/extension/recordings/:id/bugreport forget it (the recording stays)

From src/features/integrations/formmd.ts:

method path what it does
GET /api/me who the token is, and the workspaces it may use (listed in Settings)
GET /api/pages/{id} a page, to check the optional parent page and to find the page again
POST /api/pages { workspace_id, parent_id?, title, kind: "doc" } makes the page
PATCH /api/pages/{id} { title } keeps the title in step with the recording
PUT /api/pages/{id}/markdown { markdown, mode: "replace" } writes the body (204)

From src/features/integrations/index.ts:

method path what it does
GET /api/integrations connections (secrets redacted), webhooks, recent deliveries, SDK state
PUT /api/integrations/services/:service save a service's fields (empty secret fields keep the saved value)
DELETE /api/integrations/services/:service disconnect a service
POST /api/integrations/services/:service/test check the connection (a test message for Slack and Teams)
GET /api/integrations/apps the twelve integration apps: fields (secrets as set or not), address, status (?check=1 probes the address)
PUT /api/integrations/apps/:id { values } keep locally (0600) and push to the relay with a signed PUT /relay-api/apps/:id
PUT /api/integrations/options { previews, publicBase }
POST /api/integrations/webhooks { label, url, events } -> the webhook with its secret (shown once)
DELETE /api/integrations/webhooks/:id remove a webhook
POST /api/integrations/webhooks/:id/test a signed test delivery
POST /api/integrations/events { event: shared|viewed|commented, recording, data } for webhooks
GET /api/integrations/targets/:recording email, Gmail, social, new-issue and rich-link links for one recording
POST /api/integrations/formmd/workspaces { address?, token? } the workspaces that token may write to in form.md (blank
POST /api/integrations/send/:recording { to: slack|teams|jira|linear|github|formmd|confluence, note, title, transcript }
POST /api/integrations/agent-work-item/:recording { target?: claude|cursor|codex, assignee?: { kind: agent|person, accountId? | query? }, title?, issueType? }
GET /api/integrations/page/:recording ?format=md|html, the recording as a page (a download)
GET /api/integrations/meetings upcoming meetings from the connected calendar
GET /api/integrations/cta-presets scheduling-link CTA presets (cta-presets.ts)
GET /api/integrations/sdk the recorder SDK listener: on, port, waiting pairings, paired pages
PUT /api/integrations/sdk { enabled, port }
POST /api/integrations/sdk/pairings/:id { approve } a page's pairing request
DELETE /api/integrations/sdk/paired ?origin= forget a paired page

From src/features/integrations/recsdk.ts:

method path what it does
GET /api/integrations/recsdk the apps (keys without private parts), the relay, and whether it has them
POST /api/integrations/recsdk/apps { name, origins, mode, auth, guestCount, guestSeconds } register an app
PUT /api/integrations/recsdk/apps/:id change an app's name, origins, mode, auth or limits
DELETE /api/integrations/recsdk/apps/:id remove an app
POST /api/integrations/recsdk/apps/:id/keys { publicKey? } add a public key; without one a P-256 pair is made and the private key shown once
DELETE /api/integrations/recsdk/apps/:id/keys/:kid remove a key
POST /api/integrations/recsdk/push send the list to the relay now

From src/features/interactive/routes.ts:

method path what it does
GET /api/interactive/:id { demo, canBuild, reason?, links, embed } the demo (null until built) and where it opens
PUT /api/interactive/:id edits: { title?, steps?: [{ id, title?, text?, hidden?, hotspot? (null removes) }], end? }
POST /api/interactive/:id/build make the pictures and the demo, or make them again (edits are kept)
POST /api/interactive/:id/export write the zip; { zip, bytes, files }
GET /api/interactive/:id/export.zip the zip, as a download
GET /api/interactive/:id/insights what viewers did: views, where they stop, hotspot against Next, call to action, completion
POST /api/interactive/:id/translate/:lang the demo's words in a language the transcript has a translation for
DELETE /api/interactive/:id/translate/:lang take that language away

From src/features/keycast/index.ts:

method path what it does
GET /api/keycast/:id { id, keys: [{ atMs, label }], source: runner | extension | none, prefs, share }: the keys and the
PUT /api/keycast/:id { on?, position?, size?, showMs?, share? }: change the choices (and the share switch); answers as GET

From src/features/library/routes.ts:

method path what it does
GET /api/library everything the library view draws in one answer
GET /api/library/search?q=&trash=1 search (title, tags, folders, spaces, chapters, summary, transcript, comments)
POST /api/library/folders { name, parentId?, spaceId? }
PATCH /api/library/folders/:id { name?, parentId? (null: to the top) }
DELETE /api/library/folders/:id its recordings go back to the top
POST /api/library/spaces { name, visibility, kind, syncPath? }
PATCH /api/library/spaces/:id { by, name?, archived?, visibility?, members?, admins? }
DELETE /api/library/spaces/:id?by= admins only
POST /api/library/spaces/:id/sync a synced space with its team folder
POST /api/library/place { ids, folderId?, spaceId?, mode: move | add }
POST /api/library/unshare { ids, spaceId }
POST /api/library/tags { ids, add, remove? }
PUT /api/library/pins { tag, pinned }
POST /api/library/archive { ids, archived }
POST /api/library/trash | restore { ids }
POST /api/library/purge { ids? } (all of the Trash without ids)
POST /api/library/placement/:id { from } a duplicate (made by POST /api/edit/:id/duplicate) gets from's place
PUT /api/library/title/:id { title } through the one rename (src/mcp/tools.ts renameRecording)
GET /api/library/posters?ids= { posters: { id: mtimeMs } } which recordings have edit's edit-thumb.png
POST /api/library/playlists { name, description?, items? }
PATCH /api/library/playlists/:id { name?, description?, items?, add? }
DELETE /api/library/playlists/:id
POST /api/library/history/:id a view in the player
DELETE /api/library/history
PUT /api/library/settings { trashDays, watchFolders }
POST /api/library/import?name=&title= body = the video file (MP4, MOV, WebM, M4V, WMV, AVI)
POST /api/library/import-folder { path, recursive? }
GET /api/library/export.zip?ids= a zip of the recordings (all when ids is empty)
POST /api/library/export { dest, ids? } a folder copy
POST /api/library/transfer { ids, dataDir } move to another library

From src/features/live/index.ts:

method path what it does
GET /api/live/destinations the destinations, keys masked: { destinations: [{ id, name, url, enabled, keySet }] }
PUT /api/live/destinations { id?, name, url, key?, enabled? } add one, or change one (no key keeps the saved key)
DELETE /api/live/destinations/:id forget one (also ?id=)
POST /api/live/:sessionId { destinationIds?, height? } start streaming the take now (default: every enabled
DELETE /api/live/:sessionId stop streaming (the take goes on)
GET /api/live/:sessionId { active, status? , error? }: live, reconnecting or failed per destination, seconds sent
POST /api/live/:sessionId/link { privacy?: link|password|people, password?, people?, domains?, title? } turn the live link
GET /api/live/:sessionId/link { link?, urls }: the link of this take, if any
DELETE /api/live/:sessionId/link turn the link off (the take goes on)

From src/features/live/link-http.ts:

method path what it does
GET /l/<liveId> the live page (or its gate); once the live has ended, the recording's share
GET /s-api/<liveId>/live/state { state: waiting|connecting|live|paused|ended, next? } after the same gates
GET /s-api/<liveId>/live/<name> index.m3u8, init.mp4 or seg-.m4s: the HLS window, by these names only
POST /s-api/<liveId>/unlock { password } for a password link, as /s-api//unlock does

From src/features/mail/index.ts:

method path what it does
GET /api/mail status: configured, via, from, redacted settings, recent sends, redirect URIs
PUT /api/mail/settings { provider?, from?, smtp?, gmail?, outlook? } secrets are write-only
POST /api/mail/test { to } sends a test email now; { ok, id, via } or 502 { ok:false, error }
POST /api/mail/oauth/start { provider: gmail | outlook } -> { url, redirectUri } to open in the browser
DELETE /api/mail/oauth/:provider forget the connection (refresh token)
GET /api/mail/oauth/callback the browser's return from Google or Microsoft; answered before the token

From src/features/meetings/index.ts:

method path what it does
GET /api/meetings the Meetings view: the last 30 days and the next 7 from every connected calendar
PUT /api/meetings/settings { rule, internalDomains, consent, notetaker, recap }
PUT /api/meetings/meeting/:id { record: true | false | null } the per-meeting toggle (null: follow the rule)
GET /api/meetings/now the meeting in progress and the meeting app open on this computer, and whether to offer recording
GET /api/meetings/consent the consent notice and the ready-to-paste chat message
PUT /api/meetings/accounts/:provider { clientId, clientSecret?, tenant? } the owner's own OAuth client (google | microsoft)
DELETE /api/meetings/accounts/:provider forget the client and its tokens
POST /api/meetings/accounts/:provider/connect start the PKCE sign-in through a loopback redirect -> { authUrl }
GET /api/meetings/accounts/:provider/status { state: waiting | done | failed | none }
GET /api/meetings/notetaker the notetaker's runs
POST /api/meetings/notetaker { url, title?, meeting? } send FormRec Notetaker to a link
POST /api/meetings/notetaker/:run/stop leave now and save
GET /api/meetings/recordings/:id the meeting a recording is (meetings.json)
PUT /api/meetings/recordings/:id { title, link?, attendees?, meetingId?, noticeShown? } mark a studio recording as a meeting
POST /api/meetings/recordings/:id/recap make the recap document (meeting-recap.md)
POST /api/meetings/recordings/:id/email { to? } email the recap through src/mail

From src/features/phone/files.ts:

method path what it does
POST /api/phone/files?name=<file name> body = the video -> { id, name, bytes, durationMs? }
GET /api/phone/files/:id the video (ranged), for the stage
DELETE /api/phone/files/:id

From src/features/phone/handler.ts:

method path what it does
GET /phone/ the phone page
GET /phone/<file> its scripts and icons (PAGE_FILES), the manifest
GET /phone/api/me { device, now, takes } or 401
POST /phone/api/takes { mode, title? } -> a started take
GET /phone/api/takes/:id { now, state, tracks: [{ id, chunks, bytes, ended }] } (to resume)
POST /phone/api/takes/:id/control { action: pause | resume | stop }
POST /phone/api/takes/:id/tracks { kind, mime, startedAt, nonce } -> own track
POST /phone/api/takes/:id/tracks/:t/chunks ?seq=n, body = WebM bytes
POST /phone/api/takes/:id/tracks/:t/end { durationMs }
POST /phone/api/takes/:id/save { title, summary? } -> { id, title, durationMs }
POST /phone/api/takes/:id/discard remove the unsaved take
GET /phone/sw.js the service worker (shell cache, queued uploads replayed), scope /phone/

From src/features/phone/index.ts:

method path what it does
GET /api/phone { enabled, links, codeLive, devices, fingerprint } (behind the run's token)

From src/features/phone/native.ts:

method path what it does
POST /uploads { mode, title?, source? } -> { id, next: 0, chunkLimit }
GET /uploads/:id { id, state, next, bytes } (to resume after a drop)
POST /uploads/:id/chunks?seq=n body = the next bytes of the MP4 -> { accepted, next, bytes }
POST /uploads/:id/complete { title?, durationMs? } -> { id, title, durationMs } (repeating it answers the same)
POST /uploads/:id/discard remove the unfinished upload

From src/features/phone/routes.ts:

method path what it does
GET /api/phone/sources what can be recorded here: Android devices and emulators (adb),
POST /api/phone/feed/start { sessionId, source } the phone becomes the take's picture (feed.ts)
POST /api/phone/feed/begin { sessionId } the shell started recording the iPhone: its tracks start now
POST /api/phone/feed/pause | resume { sessionId }
POST /api/phone/feed/stop { sessionId, durationMs? } -> { durationMs, tracks, notes }
GET /api/phone/feed?sessionId= the feed's state
POST /api/phone/files?name= a phone recording to narrate over (files.ts)
GET /api/phone/files/:id
POST /api/phone/recordings/:id/export { layout } a portrait or framed copy of a phone take (export.ts)
GET /api/phone/recordings/:id/export/:layout that copy, as a download

From src/features/redact/index.ts:

method path what it does
GET /api/redact/:id { transcript: [finding], frames: { tesseract, note?, scannedAt?, frames, suggestions }, scanning, applied }
POST /api/redact/:id { ids?, what?: "all" | "transcript" | "frames" } apply findings (words, captions, AI outputs) and blurs
POST /api/redact/:id/scan start the frame scan -> 202 { scanning }; the scan is in GET while it runs

From src/features/relay/bridge.ts:

method path what it does
POST /relay-api/bridge/reply. One MCP server per remote session (the relay mints the session id); sessions idle for 30

From src/features/relay/routes.ts:

method path what it does
GET /api/relay status: the connection, last sync, errors and the published list
POST /api/relay/connect { url, code, name? } enroll this install at a relay
DELETE /api/relay { unpublish? } forget the relay here
POST /api/relay/sync sync now
GET /api/relay/keys the relay's enrolled keys (owner key)
DELETE /api/relay/keys/:keyId revoke one (owner key)
GET /api/relay/recordings/:id { published, link, codes } for the Share dialog
PUT /api/relay/recordings/:id publish (or republish) now
DELETE /api/relay/recordings/:id unpublish
PUT /api/relay/apps/:appId { config } push an integration app's fields to the relay (owner key)
GET /api/relay/remote the relay's MCP address, the bridge switch and its state, the connected agents
PUT /api/relay/remote/bridge { bridge, ownerEmail? } the owner's bridge switch (owner key)
DELETE /api/relay/remote/clients/:grantId revoke a connected agent (owner key)

From src/features/share/admin.ts:

method path what it does
GET /s-api/admin/me { email, role, can }
GET /s-api/admin/people people, groups, seats, invitations, join requests (manage-people)
PATCH /s-api/admin/people/:id { role?, active? } (manage-people)
POST /s-api/admin/requests/:id/approve|deny a domain-join request ({ role? } on approve) (manage-people)
PATCH /s-api/admin/branding the workspace branding (manage-branding)
GET /s-api/admin/recordings?owner=&access= every recording with its owner and access level (see-all-recordings)
PATCH /s-api/admin/recordings/:id { owner?, access? } (see-all-recordings)
GET /s-api/admin/activity?actor=&since=&until=&format=csv the activity log, one person or a date range (see-activity)

From src/features/share/invite.ts:

method path what it does
GET /s-api/invite/:token a page that says who invited you and with which role, and the sign-in methods when the
POST /s-api/invite/:token accept. With a sign-in method set up the viewer must be signed in as the invited
GET /s-api/join whether the signed-in viewer's domain lets them join and what happens
POST /s-api/join ask to join through an approved domain: instant access as a creator, or a request an

From src/features/share/listener.ts:

method path what it does
GET / the shares listed on this network, and those shared with a verified viewer
GET /v/:shareId[?t=&speed=&anon_email=] the share page (or its gate)
GET /e/:shareId[?autoplay=1&t=&muted=1&hide_title=1&speed=&hide_speed=1] the embeddable player
GET /i/:shareId[?embed=1] the recording's interactive demo (interactive feature), behind the same gates as /v/
GET /s-api/:shareId/interactive/:n.webp|png a shown step's picture, by its fixed name, after the same gates
GET /oembed?url=&format=json|xml&maxwidth=&maxheight= oEmbed for /v/ and /e/ links (oembed.ts); share pages
GET /l/:liveId a take's live picture while it records (live/link-http.ts, which also answers
GET /s/:file the page's script and styles (a fixed list)
GET /s-api/brand/logo the uploaded logo
GET /s-api/:shareId/brand.css the share's accent colour
GET /s-api/:shareId/media/:kind video | poster | gif | captions.vtt | chapters.vtt | download
POST /s-api/:shareId/unlock { password }
POST /s-api/:shareId/identify { email } | { skip: true } (the email gate)
POST /s-api/:shareId/events a view event, appended to the recording's share-events.jsonl
POST /s-api/verify/start { shareId, email } a one-time code the owner sees (only when no sign-in is set up)
POST /s-api/verify/finish { email, code }
GET /r/:secret engage's video request page (requestInfo; JSON when asked for JSON)
POST /r/:secret?durationMs=&note=&name= the requested recording, WebM (fulfilRequest)
GET /robots.txt

From src/features/share/oembed.ts:

method path what it does
GET /oembed?url=&format=json|xml&maxwidth=&maxheight= the provider answers a "video" with html, width and height

From src/features/share/routes.ts:

method path what it does
GET /api/share/settings { settings, listener, ffmpeg }
PUT /api/share/settings a partial settings object; turns the listener on or off
GET /api/share/viewers signed-in viewers (email, name, how, since, last seen)
DELETE /api/share/viewers/:ref | ?email= sign a viewer out everywhere
GET /api/share/shares[?q=] every share in the library, with links and views (the Shared list)
GET /api/share/recordings/:id this recording's share (or null), links, embed code, views
PUT /api/share/recordings/:id make or change the share (ShareInputSchema)
DELETE /api/share/recordings/:id stop sharing
GET /api/share/recordings/:id/codes one-time codes waiting for people (people shares)
POST /api/share/recordings/:id/make { what: poster | gif | mp4 } with FFmpeg
GET /api/share/recordings/:id/file/:what poster | gif | mp4 for the owner (download)
POST /api/share/recordings/:id/export { password? } the static page; returns its folder and zip
GET /api/share/recordings/:id/export.zip

From src/features/share/viewer-auth.ts:

method path what it does
POST /s-api/auth/email { email, return } an email link (single use, 15 minutes, hashed at rest)
GET /s-api/auth/magic/:token starts the session and goes back to the page
GET /s-api/auth/oidc/:provider/start?return= authorization code flow with PKCE, state and nonce
GET /s-api/auth/oidc/:provider/callback the provider comes back here (oidc.ts checks the ID token)
GET /s-api/auth/sso?email=&return= { sso, start?, enforced? } the domain's SSO connection for an address (src/features/sso)
GET /s-api/auth/saml/sso-<id>/metadata the SP metadata of a verified domain (entity id, Assertion Consumer Service)
GET /s-api/auth/saml/sso-<id>/login?return= SAML 2.0 SP-initiated sign-in: an AuthnRequest over the HTTP-Redirect binding
POST /s-api/auth/saml/sso-<id>/acs the Assertion Consumer Service (HTTP-POST binding, form SAMLResponse and RelayState);
POST /s-api/auth/signout ends this browser's session; for a SAML session whose provider has a logout address the
GET /s-api/auth/me { viewer, signin } for the page

From src/features/studio/index.ts:

method path what it does
GET /api/studio/state what the open studio is doing (the client reports it on every change)
PUT /api/studio/state { state, layout, target, quality, sessionId?, elapsedMs, ... }
GET /api/studio/unsaved takes that never became recordings (as GET /api/sessions?unsaved=1)
GET /api/studio/takes/:id the take's studio.json (layout, target, quality, trims, camera ranges)
PUT /api/studio/takes/:id { layout, target, quality, systemAudio, region?, canvas?, composedCamera }
POST /api/studio/takes/:id/trims { lengthMs } Live Rewind: drop the last lengthMs (kept, skipped in playback)
DELETE /api/studio/takes/:id/trims restore every trimmed range
GET /api/studio/takes/:id/preview the take's lead track as written so far (Live Rewind's look back; ?token=)
POST /api/studio/takes/:id/camera { on } the camera turned on or off now, on the take's timeline
POST /api/studio/takes/:id/master ?seq=n, body = WAV bytes: the Voice master, in order like a track's chunks (src/studio/master.ts)
POST /api/studio/takes/:id/master/end { durationMs } the master is complete: its sizes are written
GET /api/studio/screenshots the screenshots, newest first
POST /api/studio/screenshots?title=&source= body = PNG bytes -> the screenshot
GET /api/studio/screenshots/:id one screenshot's details
GET /api/studio/screenshots/:id/image the PNG (?token= for )
PATCH /api/studio/screenshots/:id { title }
DELETE /api/studio/screenshots/:id
GET /api/studio/devices the microphone and camera names the studio last found (labels only)
PUT /api/studio/devices { mics, cameras, cameraInUse, permission, text, requestId? } the studio's report
POST /api/studio/devices/refresh { askPermission? } ask the open studio to rebuild its lists
GET /api/studio/devices/request the refresh request still waiting (the studio polls it), or {}

From src/features/teamsync/routes.ts:

method path what it does
GET /api/teamsync status: followed team spaces, last sync, device, conflicts waiting
GET /api/teamsync/team[?refresh=1] the Team view: followed spaces and the recordings in them (pulled from the relay)
GET /api/teamsync/posters?ids=a,b { posters } the team recordings' pictures as data URLs
POST /api/teamsync/sync sync now: the synced spaces with their folders, the space directory, the Team index
PUT /api/teamsync/follow { spaceId, followed } follow or stop following a team space on this computer
POST /api/teamsync/publish { recordingId, spaceId, mode: add | move | remove } publish into a team space
POST /api/teamsync/team/:id/copy Save a copy of a team recording into this library
GET /api/teamsync/conflicts the conflicted copies waiting for a pick
POST /api/teamsync/conflicts/:id/resolve { keep: mine | theirs }

From src/features/transcripts/index.ts:

method path what it does
GET /api/transcripts/status engine, build capabilities (Metal, CUDA, Vulkan, Core ML, OpenVINO), FFmpeg, models, settings, languages, translator, live captions, jobs
PUT /api/transcripts/settings { auto?, model?, language?, device? (auto|cpu|gpu), threads?, translate?, mixedSpeakers?, liveModel? }
POST /api/transcripts/models/:name download a model (opt-in, resumable, SHA-1 and SHA-256 checked) -> job
DELETE /api/transcripts/models/:name delete a downloaded model
GET /api/transcripts/live/status how live captions would run here (stream, chunked, none) and why
POST /api/transcripts/live/chunk raw 16 kHz mono PCM (about 8 s) -> { words, text }; ?language=
POST /api/transcripts/live/stream start whisper-stream when installed -> { id }; GET/DELETE live/stream/:id
PUT /api/transcripts/:id/draft { words, language? } the live captions as a draft; queues the full pass
GET /api/transcripts/:id/speakers the speakers and their word counts
PUT /api/transcripts/:id/speakers { from, to } rename a speaker everywhere in this recording
GET /api/transcripts/search?q= [{ id, title, hits: [{ startMs, text }] }]
GET /api/transcripts/:id { transcript, job, hidden } (transcript null when there is none)
PUT /api/transcripts/:id { words, language? } a corrected transcript
DELETE /api/transcripts/:id remove the transcript and its files
POST /api/transcripts/:id/transcribe { language?, model?, replace? } -> job
GET /api/transcripts/:id/job the job's state and progress
POST /api/transcripts/:id/import { text, format? } a VTT, SRT or TXT file, or pasted text
POST /api/transcripts/:id/translate { to } captions in another language
PUT /api/transcripts/:id/visibility { hidden } hide the transcript from viewers

From src/features/tunnel/index.ts:

method path what it does
GET /api/tunnel PUT /api/tunnel/settings|token, DELETE /api/tunnel/token, POST /api/tunnel/start|stop|download

From src/features/tunnel/routes.ts:

method path what it does
GET /api/tunnel { status, settings, presets } (the token is never returned: status.hasToken only)
PUT /api/tunnel/settings a partial settings object (provider, named.hostname, custom.*)
PUT /api/tunnel/token { token } the named tunnel's connector token, stored 0600, write-only
DELETE /api/tunnel/token
POST /api/tunnel/start starts and waits (up to 25 s) for the public URL; returns { status }
POST /api/tunnel/stop
POST /api/tunnel/download fetches cloudflared into /bin after the person's click

From src/features/variants/index.ts:

method path what it does
GET /api/variants/recordings/:id { variables, variants, job }: what the Variants panel draws
POST /api/variants/recordings/:id/run { values: [sets] | "JSON or CSV text" }; starts a run (202 with the job)
GET /api/variants/jobs/:job the job: state, how many are done, the step being recorded, results
POST /api/variants/jobs/:job/cancel stops the recording in progress and skips the rest

From src/features/workspace/index.ts:

method path what it does
GET /api/workspace/profiles the profiles, which is active (opens next) and which is read now
POST /api/workspace/profiles { name, dir? } add one (a new or existing folder)
PATCH /api/workspace/profiles/:id { name }
DELETE /api/workspace/profiles/:id take it off the list (its folder stays)
POST /api/workspace/profiles/:id/switch make it active; live under formrec serve: { profile, restart: false, live: true, url } (409 while a take records), else { profile, restart }
POST /api/workspace/transfer { ids, to } move recordings to another profile
GET /api/workspace/people people (with roles), groups, seats, invitations, join requests
POST /api/workspace/people { name, email, groups?, role? }
POST /api/workspace/people/import { format: csv|vcard, text }
PATCH /api/workspace/people/:id { name?, groups?, active?, role? }
DELETE /api/workspace/people/:id?confirm=EMAIL[&content=delete | &to=<email|owner>] deactivated people only; their
PUT /api/workspace/seats { limit: number | null } the seat limit (warns, never removes)
DELETE /api/workspace/invitations/:id revoke
POST /api/workspace/requests/:id/approve|deny a domain-join request (approve: { role? })
GET /api/workspace/spaces the spaces with their members (All company holds every active person)
GET /api/workspace/admin/recordings?owner=&access= every recording with its owner and access level
PATCH /api/workspace/admin/recordings/:id { owner?, access? }
POST /api/workspace/delete { confirm: , recordings? } clear people, spaces and policies
POST /api/workspace/groups { name }; DELETE /api/workspace/groups/:id
GET /api/workspace/activity?action=&actor=&since=&until=&limit= newest first; actor (or person) is one email, owner,
GET /api/workspace/insights counts, storage per profile, largest, per month; and usage
GET /api/workspace/retention?dry=1 what a sweep would do; POST /api/workspace/retention/sweep
GET /api/workspace/trash POST /api/workspace/trash/:id/restore
POST /api/workspace/archive/:id { archived }
GET /api/workspace/privacy the data folder's mode and any loose file

From src/features/wtdiff/index.ts:

method path what it does
GET /api/wtdiff/recordings/:id { baseline, check, schedule, versions, steps }: what the Freshness panel draws
POST /api/wtdiff/recordings/:id/check replay the walkthrough and compare; answers the report (can take minutes)
POST /api/wtdiff/recordings/:id/rerecord { steps?: "changed" | "all" | [step ids] }; a new version of the recording
PUT /api/wtdiff/recordings/:id/schedule { mode: "off" | "daily" | "head" }
GET /api/wtdiff/stale { stale: { : "stale" | "broken" } }: which recordings are out of date

From src/features/zoom/index.ts:

method path what it does
GET /api/zoom the connection (never a secret): method, ids, auto-import, last check, last error, count
PUT /api/zoom/settings { method, accountId, clientId, clientSecret (write-only), userId, scope, autoImport, pollMinutes }
DELETE /api/zoom forget the app, the secret and the tokens (imported recordings stay)
POST /api/zoom/test ask Zoom for a token now -> the connection
POST /api/zoom/connect General app: start the PKCE sign-in -> { authUrl, redirectUri }
GET /api/zoom/connect { state: waiting | done | failed | none, error }
GET /api/zoom/recordings?from&to&next one page (30) of cloud meetings, each marked imported or not
POST /api/zoom/import { uuids: [...] } import the meetings picked (one at a time)
POST /api/zoom/check look for new recordings now (what auto-import does on its timer)
GET /api/zoom/imported { ids: [recording ids imported from Zoom] } for the Library's Zoom meetings filter
GET /api/zoom/recordings/:id the meeting a recording came from (zoom.json)

From src/relay/api.ts:

method path what it does
GET /relay-api/health { ok }
POST /relay-api/enroll { code, publicKey, name } -> { keyId, relayId }
GET /relay-api/info relay id, whether media is sealed, size caps
GET /relay-api/keys (owner) the enrolled keys
DELETE /relay-api/keys/:keyId (owner) revoke
GET /relay-api/recordings what this key published
GET /relay-api/recordings/:id the relay's hashes, so unchanged files are skipped
PUT /relay-api/recordings/:id/files/:name[?offset=N] a file (or its next chunk) into staging
POST /relay-api/recordings/:id/publish { files: [{ name, sha256 }] } -> committed
DELETE /relay-api/recordings/:id unpublish
GET /relay-api/recordings/:id/files/:name a recorded reply, or a request's answer (video.webm)
GET /relay-api/recordings/:id/codes one-time codes viewers are waiting for
POST /relay-api/recordings/:id/engage { comments, reactions, follows, deleted } merged by id
PUT /relay-api/workspace { policy, branding, people, visibility, logo, auth, mail } (owner or an admin key)
GET /relay-api/workspace[?scimSince=N] { people, requests, invitations, scim, sso } what the relay's people did since the push, the SCIM changes after revision N and the SSO state without secrets (owner or an admin key)
POST /relay-api/enrollments { role?, email? } (owner) a code that enrolls a key with that role
PUT /relay-api/requests { items } the owner's video requests (owner)
PUT /relay-api/apps/:id { config } an integration app's fields (owner)
PUT /relay-api/sdk/apps { apps } the recorder SDK apps, replacing the list (owner)
GET /relay-api/sdk/apps the recorder SDK apps the relay has (owner)
GET /relay-api/changes?since=<cursor> what happened on the relay, in order
POST /relay-api/bridge/poll (owner) the computer's long poll for forwarded MCP calls
POST /relay-api/bridge/reply (owner) the computer's answer to one forwarded call
GET /relay-api/grants (owner) the agents connected through OAuth
DELETE /relay-api/grants/:id (owner) revoke one

From src/relay/bridge.ts:

method path what it does
POST /relay-api/bridge/poll (owner key) held up to 25 seconds; answers { calls: [{ id, session, kind, message }] }
POST /relay-api/bridge/reply (owner key) { id, response? | status+error? } for one call

From src/relay/oauth.ts:

method path what it does
GET /.well-known/oauth-protected-resource[/mcp[/bridge]] what protects /mcp and /mcp/bridge, and who issues tokens
GET /.well-known/oauth-authorization-server endpoints and what they support
POST /oauth/register RFC 7591: { client_name, redirect_uris } -> { client_id } (public clients, no secret)
GET /oauth/authorize response_type=code, client_id, redirect_uri, code_challenge (S256), state, scope, resource
POST /oauth/signin the email field of the approval page (a form; the link comes back to /oauth/authorize)
POST /oauth/consent the person's decision; redirects to the client's redirect_uri with code, state and iss
POST /oauth/token authorization_code (with code_verifier) and refresh_token (rotated)
POST /oauth/revoke RFC 7009
GET /oauth/connections the signed-in person's connected agents, each with Revoke (POST /oauth/connections/revoke)

From src/relay/recsdk/server.ts:

method path what it does
GET /sdk/formrec-record-sdk.js the drop-in script
GET /sdk/formrec-record-sdk.d.ts its TypeScript types
GET /sdk/record?app=<appId> the hosted recorder page (an iframe or popup; frame-ancestors = the app's origins)
GET /sdk/record.js /sdk/record.css the page's script and style
POST /sdk/v1/session { appId, jwt?, guest?, hostOrigin? } -> a session token bound to the origin
POST /sdk/v1/recordings { title?, kind, mimeType? } -> { id, maxBytes, maxMs }
PUT /sdk/v1/recordings/:id/chunks/:n one chunk, in order (X-FormRec-Sha256 optional)
POST /sdk/v1/recordings/:id/complete { durationMs, title? } -> { shareUrl, embedUrl, html }
DELETE /sdk/v1/recordings/:id discard an unfinished recording (restart, cancel)

From src/relay/scim/server.ts:

method path what it does
GET /ServiceProviderConfig /ResourceTypes[/id], /Schemas[/id] discovery
GET /Users?filter=&startIndex=&count= list, filtered (userName eq "a@b.c"), paged (1-based, at most 200 a page)
POST /Users create (201 and Location; 409 uniqueness for a userName in use)
GET /Groups?filter=... POST /Groups GET|PUT|PATCH|DELETE /Groups/:id members added and removed

From src/relay/sso-api.ts:

method path what it does
GET /relay-api/sso { domains, scim, relay }: the state without secrets, with each pending domain's challenge
POST /relay-api/sso/domains { domain } claim a domain; answers its challenge (a DNS TXT record, or an email)
POST /relay-api/sso/domains/:domain/verify { method: "dns" } check the record now; { method: "email", address: "admin" } mail a link
DELETE /relay-api/sso/domains/:domain forget the domain and its SSO connection
PUT /relay-api/sso/domains/:domain/sso the OpenID Connect connection of a verified domain (an empty clientSecret keeps the stored one)
PUT /relay-api/sso/domains/:domain/saml the SAML 2.0 connection instead (a domain has one): the provider by metadataUrl or metadataXml,
DELETE /relay-api/sso/domains/:domain/sso (or /saml) remove the connection, whichever kind
PUT /relay-api/sso/scim { defaultRole, groupRoles } how SCIM-provisioned people get their role
POST /relay-api/sso/scim/token make or rotate the SCIM bearer token; answered once, kept only as a hash
DELETE /relay-api/sso/scim/token turn SCIM off
GET /relay-api/sso/verify-email/:token (unsigned) the link in the email: verifies the domain, once

From src/relay/team.ts:

method path what it does
PUT /relay-api/team/spaces { spaces } the owner's (or an admin's) space directory: id, name, open or closed, members, admins
GET /relay-api/team/index the spaces this key may see and the recordings placed in them
PUT /relay-api/team/recordings/:id/spaces { spaces, mode: add | move | remove } where a published recording sits
GET /relay-api/team/recordings/:id the files of a recording this key may see, with their hashes
GET /relay-api/team/recordings/:id/files/:name one of those files (unsealed), for "Save a copy"
POST /relay-api/team/transfer { from, to, revoke? } (owner key) a leaving person's recordings change hands, their keys are revoked

From src/server/player-link.ts:

method path what it does
GET /api/player/:id?key= the recording (what the player draws)
GET /api/player/:id/:file?key= its video, tracks, captions and chapters (the core media names, server/http.ts MEDIA)

From src/window/bridge.ts:

method path what it does
GET /api/window/stream the window's end: events hello, call (list, describe, run) and changed
POST /api/window/result { callId, ok, value?, error? } the window's answer to a call
POST /api/window/focus { windowId } this window answers the next calls
GET /api/window/commands?query=&id= the window's commands (id, label, args, risk), or one described in full
POST /api/window/run { id, args?, agent? } runs one; destructive, external and privacy ones ask the person first
POST /api/window/changed { ids, tool } an agent in another process (formrec mcp) changed these recordings

The guest listener

HTTPS on the local network, on only while guests are turned on in the studio. A guest pairs with a six-digit code and then carries a device cookie; it has no access to the token or to the routes above.

From src/guests/server.ts:

method path what it does
GET / the guest page (and its scripts)
POST /api/pair { code, name } -> device cookie
GET /api/room?status= check in; { now, me, session }
GET /api/rtc?after=n
POST /api/rtc signalling with the host
POST /api/tracks?session= { kind, mime, startedAt } -> own track
POST /api/tracks/:t/chunks?session=&seq=n
POST /api/tracks/:t/end?session= { durationMs }

The recorder SDK listener

On 127.0.0.1, on only while Settings, Integrations, Recorder SDK is on (port 8774 by default). A web page pairs with a code the person approves in FormREC and then uses a key bound to its origin. See docs/integrations.md.

From src/features/integrations/sdk.ts:

method path what it does
GET /formrec-sdk.js /formrec-embed.js the two scripts (fixed names, from the client folder)
GET /status { formrec, paired } (paired: the Bearer key is valid for this Origin)
POST /pair { name } a pairing request from the page's Origin: { pairing, code }
GET /pair/:pairing { status }, and once approved { key } (given out once)
POST /recordings?title=&durationMs= body = the page's webm, Bearer key, same Origin; { id, player }

MCP

The same library is available to agents over MCP (formrec mcp): the formrec_* tools, listed with their inputs by any MCP client (tools/list).