Skip to content
Developers // API v1 and MCP

Publish from your AI agent

Cursor, Claude, ChatGPT and your own scripts can publish HTML decks straight into a Lumdeck workspace, check that they passed validation, share them and read how they did. The REST API and MCP server are available on every plan, including Free limits of two API keys and ten publishes a day. Public setup documentation is available below.

Quick start

  1. In Lumdeck's Workspace sidebar, open API & MCP and manage workspace keys if your plan and role permit. Pro and Team include the full key-management interface. Existing Free keys remain usable within their limits. Copy a new key when it is shown: the secret is only displayed once.
  2. Add the MCP server to your client (or use Add to Cursor right after creating the key). Server URL: https://lumdeck.com/api/v1/mcp
  3. Ask your agent: “Build a 6-slide deck about our Q3 results and publish it to Lumdeck.”

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project), then reload MCP servers. Start Cursor with LUMDECK_API_KEY in its environment when using the variable reference.

Cursor
{
  "mcpServers": {
    "lumdeck": {
      "url": "https://lumdeck.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer ${env:LUMDECK_API_KEY}"
      }
    }
  }
}

No account

Publish one HTML file before you sign up. It can be up to 10 MB and stays up for 7 days. The answer includes a view link anyone can open and a claim link that saves the deck into a workspace. Zip bundles, gated links and analytics stay on a workspace key. Paid plans are for gating, analytics, footer removal and a team. Your first publish does not require a paid plan.

Command
curl -fsSL https://lumdeck.com/cli/lumdeck.mjs -o lumdeck.mjs
node lumdeck.mjs publish deck.html --guest --origin https://lumdeck.com

The same instructions for agents are at /skill.md.

Keys and scopes

A key belongs to one workspace and acts for the member who created it, within its scopes and that member's current role. Remove the member and their keys are revoked; demote them and write scopes stop. Lumdeck stores only a fingerprint of each key. Send it as Authorization: Bearer prs_….

ScopeAllows
presentations:readList presentations and check processing status.
presentations:writeUpload new presentations and new versions.
shares:writeList, create and revoke share links.
analytics:readRead view totals and per-slide analytics.

MCP server

Remote MCP over Streamable HTTP at https://lumdeck.com/api/v1/mcp, stateless, with the API key as a Bearer token. It speaks MCP 2026-07-28 and the initialize handshake of 2025-03-26 to 2025-11-25. Tools a key cannot use are not listed. Publishing tools wait up to 20 seconds for validation and return the problems if a deck is rejected, so the agent can fix it and call upload_version.

ToolWhat it does
publish_presentationPublish a new deck from html or zip_base64 and wait for validation.
upload_versionReplace a deck with a new version; its share links show the new one.
get_statusProcessing status of a version: processing, ready or rejected with reasons.
list_presentationsPresentations of the workspace, newest first, with optional search.
create_share_linkA link anyone can open, optionally password protected and expiring.
list_share_linksLinks of a deck with status and view counts.
revoke_share_linkClose a link at once.
get_analyticsViews, unique viewers, time viewed and completions, per day and per slide.

REST API

Base URL https://lumdeck.com/api/v1. JSON responses; errors are { "error": "…" }.

MethodPathScopeNotes
POST/guest/presentationsnoneOne HTML file, no account. 10 MB, kept 7 days. Returns a view link and a claim link.
POST/guest/claimpresentations:write{ token } moves that deck into this workspace.
GET/workspaceanyThe workspace, key, acting member and limits.
GET/presentationspresentations:read?query, ?page, ?limit (≤ 100).
POST/presentationspresentations:writePublish a new deck (body below).
GET/presentations/:idpresentations:readOne deck with its retained versions.
POST/presentations/:id/versionspresentations:writeUpload a new version.
GET/presentations/:id/preview/:picturepresentations:readThe deck picture at preview.url; same key, own workspace only.
GET/presentations/:id/statuspresentations:readLatest version status.
GET/presentations/:id/versions/:versionpresentations:readOne version.
GET/presentations/:id/sharesshares:writeShare links.
POST/presentations/:id/sharesshares:write{ kind?, label?, expiresAt?, password?, embedOrigins? }. embedOrigins is Pro and Team.
DELETE/shares/:idshares:writeRevoke a link.
GET/presentations/:id/analyticsanalytics:read?days=30, within your plan.

Upload bodies: the raw file (text/html or application/zip, with ?title= and ?filename=), multipart form data with a file field (up to 25 MB), or JSON with html or contentBase64 (up to 8 MB). Zips need an index.html. Add wait=20 to wait up to 20 seconds. If validation is still in progress, poll the returned version until it is ready or rejected.

Publish a zip and wait
curl -X POST "https://lumdeck.com/api/v1/presentations?title=Launch%20plan&wait=20" \
  -H "Authorization: Bearer $LUMDECK_API_KEY" \
  -H "Content-Type: application/zip" \
  --data-binary @deck.zip
New version from JSON
curl -X POST "https://lumdeck.com/api/v1/presentations/<id>/versions" \
  -H "Authorization: Bearer $LUMDECK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html": "<!doctype html>…", "note": "Fixed slide 3", "wait": 20}'
Share it
curl -X POST "https://lumdeck.com/api/v1/presentations/<id>/shares" \
  -H "Authorization: Bearer $LUMDECK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label": "Board", "expiresAt": "2026-12-31T23:59:59Z"}'

Slide-aware decks

Lumdeck shows the slide number, counts time per slide and keeps live audiences on the presenter's slide. It recognises supported Reveal.js, Slidev and Marp exports. Check the indicator in your exported deck. Lumdeck also recognises decks that mark the current slide with an active or current class on sibling .slide, section or [data-slide] elements, stacked full-screen sections, and slide numbers in the address hash (#3 or #/3). Any other deck can say where it is with one event; nothing else is needed.

EventDirectionDetail
present:slideDeck → Lumdeck{ index, total }: index from 0, on load and after every slide change
present:gotoLumdeck → deck{ index, total }: optional; call event.preventDefault() if you moved there

Lumdeck forwards ← → Space Page Up and Page Down to the deck as ordinary key presses. Without a present:goto handler it moves the deck by pressing arrow keys until present:slide reports the slide it wants.

Add to your deck
<script>
  // index counts from 0; total is the number of slides.
  function reportSlide(index, total) {
    document.dispatchEvent(new CustomEvent('present:slide', { detail: { index, total } }));
  }
  // Optional: jump straight to a slide when Lumdeck asks (live sessions, reloads).
  document.addEventListener('present:goto', (event) => {
    showSlide(event.detail.index); // your deck's own function
    event.preventDefault();
  });
  // Call reportSlide(current, slides.length) on load and whenever the slide changes.
</script>

Limits

PlanActive keysRequests a minute per keyPublishes a day
Free23010
Pro560100
Team252401,000

Uploads also follow your plan's deck size, storage and deck count, exactly like uploads from the library. Responses carry X-RateLimit-Limit; a limit answers 429 with Retry-After.

StatusMeaning
401No key, an unknown key, or a revoked or expired one.
403The key lacks the scope, or its creator no longer has the role.
404Not found in this workspace.
409 / 413A plan limit: deck count, storage or deck size.
423The workspace is suspended.
429Requests per minute or publishes per day; see Retry-After.