ViroBox pool API

A pool manager mints scoped tokens in the pool's Edit → API tab. Every call uses the token header Authorization: ViroToken vbpt_.... Tokens never see a webhook URL: uploads stream through the CDN proxy at {proxy.url}?t=<ticket>&i=<idx>, using the sealed proxy blob from the init answer.

POST /api/relay/init
{"name":"a.mkv","size":123,"pool_id":N,"visibility":"public"} → parts + proxy ticket (scope: upload)

POST /api/relay/part-record / commit
bookkeeping + finalize (scope: upload, this pool's rows only)

GET /api/pools/{pid}/files?page=&limit=
the pool's ready files (scope: read; public rows by default, private/unlisted only if the manager opts in)

GET /api/pools/{pid}/tokens POST DELETE /{tid}
manager-only roster, mint (plaintext shows once), revoke

POST /api/pools/{pid}/quota
manager-only: per-pool quota in GB (0 clears)

Downloads need no auth: /dl/<token> + /f/<token> are capability links. Manager endpoints (pool meta, webhooks, direct, whitelist, access requests) stay session-only.