API reference

The linkdown worker API is the single source of truth for the dashboard and CLI. Endpoints are versioned on the URL prefix; this page mirrors apps/workers/src/openapi.yaml.

MethodPathSummary
GET/meAuthenticated user profile (Clerk Bearer).
GET/decksList decks for the authenticated user.
POST/decksCreate a deck row + presigned R2 PUT URL.
GET/decks/:idFetch a single deck.
PUT/decks/:idUpdate a deck (rename).
DELETE/decks/:idDelete a deck and its share.
POST/decks/:id/completeFinalise a deck upload (size, slides, assets).
GET/decks/:id/shareRead the deck share token + URL.
POST/decks/:id/shareCreate or rotate a share link (optional Pro fields).
GET/storage-usageTier + storage usage for the user.
POST/billing/portalCreate a Stripe customer portal session URL.

Authenticated endpoints require the bearer Authorization: Bearer <clerk-jwt>. The dashboard's hooks resolve the session via src/lib/server/clerk.ts.