- fills upload and download requests with short-lived signed URLs (local disk in dev, S3 or R2 in production)
- verifies uploads by size and SHA-256 before marking them available
- issues ElevenLabs voice and Cloudflare TURN credentials as grants
- runs the pull API for the motion worker: claim, heartbeat, outputs, complete, fail
Run it
GET /healthz reports the database connection, service registration, storage driver and configured providers.
Replay
GET /v1/sessions/:sessionId/replay/:jobId
Needs Authorization: Bearer <client SpacetimeDB token>. Membership is checked on every request.
status is queued, processing, ready or failed. Video URLs expire within five minutes, so resolve them when opening a view rather than storing them. Errors: 401 without a token, 403 for non-members, 404 for unknown jobs, 503 on an authorization timeout. Requests are limited to 30 a minute per token.