Tapestry Town

API and adapters

One public API serves every surface and adapter, and first-party clients use it exactly as third parties do. Adapters capture, timestamp, and upload; they do no AI work. A new adapter should be under 500 lines.

Capture tiers

AOne track per speaker: Discord bot, Craig exports, multitrack recorders
BMixed track plus "X is speaking" signals: browser extension, VTT A/V
CMixed track only: desktop recorder, phone at the table, uploaded file
TTranscript only: SRT, VTT, or "Name: line" text

Open a session and upload

curl -X POST https://tapestry.town/api/v1/sessions \
  -H "Authorization: Bearer tt_adp_…" \
  -H "content-type: application/json" \
  -d '{"manifest":{"campaign":"cmp_…","tier":"C",
   "start_time":"2026-11-28T20:00:00Z",
   "adapter":{"name":"curl","version":"1"},
   "participants":[]}}'

curl -X PUT "https://tapestry.town/api/v1/sessions/ses_…/tracks?label=mix&offset_ms=0" \
  -H "Authorization: Bearer tt_adp_…" \
  -H "content-type: audio/ogg" --data-binary @part0.ogg

curl -X POST https://tapestry.town/api/v1/sessions/ses_…/complete \
  -H "Authorization: Bearer tt_adp_…"

Ask from any AI assistant (MCP)

Add a remote MCP server with URL https://tapestry.town/mcp and header Authorization: Bearer tt_ply_… (make a token on your player page). Tools: ask, recap, whoami.

SDKs and recorders

TypeScript and Python adapter SDKs, the desktop recorder CLI (system audio + your mic as separate tracks), file import (audio, Craig zips, transcripts), and a Discord voice recorder live in the packages/ directory of the repository. The full endpoint reference is in docs/api.md.