Skip to content

Developers

API reference

Create presentations from your own tools, poll their progress, download exports and get signed webhooks. The API uses the same credits, limits and brand rules as the app.

Authentication

Workspace owners and admins create keys in Settings → API keys. A key is shown once; we store only a hash. Send it as a Bearer token. Every request acts as the key's workspace.

curl https://makeaideck.com/api/v1/decks \
  -H "Authorization: Bearer $MAKEAIDECK_API_KEY"

Each key has one or more permissions:

  • decks:read: List presentations and read their status and content.
  • decks:write: Register web pages as sources for new presentations.
  • generate: Start new presentations. Uses workspace credits.
  • export: Request and download PowerPoint, PDF, image and MP4 video exports.

A key stops working when it's revoked, expires, or its creator is no longer an admin of the workspace.

Errors and limits

Errors always use the same JSON envelope and a matching HTTP status:

{
  "error": {
    "code": "insufficient_credits",
    "message": "The workspace doesn't have enough credits for this request."
  }
}
StatusCodesMeaning
401missing_api_key, invalid_api_keyNo key, or malformed / revoked / expired.
402insufficient_creditsNot enough credits for the request (MP4 exports cost 1 credit).
403insufficient_scope, workspace_suspended, brand_locked, plan_restrictionThe key or plan can't do this.
404not_found, not_exportedNot in this workspace (or not exported yet).
409no_version, oauth_required, approval_requiredStill generating; Google not connected for gslides; the workspace requires an approved version.
422validation_error, invalid_optionsBody or query failed validation (see details.issues); MP4 options rejected.
429rate_limited, daily_limit_workspace, concurrency_limitRetry after the Retry-After header. MP4: 20 per workspace per day (details.limit = "mp4").
503capacity_paused, unavailableTemporarily unavailable; nothing was charged.

Each key can make bursts of 120 requests, refilling at 2 per second. Starting presentations shares the generation limit (5 at once, then 10 per minute) and the workspace's daily spend cap. On 429 wait for the number of seconds in Retry-After. Every response carries an X-Request-Id to quote to support.

Create a presentation

POST/api/v1/decksscope: generate

Credits are reserved when the job starts and returned automatically if it fails. Send an Idempotency-Key header (8–100 characters) so a retry never starts a second presentation.

curl -X POST https://makeaideck.com/api/v1/decks \
  -H "Authorization: Bearer $MAKEAIDECK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: q3-board-review-2026" \
  -d '{
    "title": "Q3 board review",
    "topic": "Quarterly results for the board: revenue up 18%, churn down to 2.1%, hiring plan for Q4.",
    "audience": "executives",
    "slide_count": 10,
    "quality": "standard",
    "theme": "harbor"
  }'
202 Accepted
{
  "job_id": "5b0c…", "deck_id": "e1d4…", "status": "queued", "credits_reserved": 12,
  "links": { "job": "https://makeaideck.com/api/v1/jobs/5b0c…", "deck": "https://makeaideck.com/api/v1/decks/e1d4…", "app": "https://makeaideck.com/app/decks/e1d4…" }
}

Optional fields: source_ids (up to 10 sources, see web sources), brand_kit_id, template_deck_id, slide_size (16:9 by default; also 4:3, 1:1, 4:5, 9:16, a4_portrait, a4_landscape, letter_portrait, letter_landscape; template decks are 16:9 only). If your workspace locks a brand kit, it's applied automatically.

Jobs

GET/api/v1/jobs/{job_id}scope: any

Poll every few seconds (we send Retry-After: 3 while it runs) until status is succeeded, failed, dead or canceled, or subscribe to webhooks instead.

curl https://makeaideck.com/api/v1/jobs/5b0c… -H "Authorization: Bearer $MAKEAIDECK_API_KEY"

{ "id": "5b0c…", "kind": "generate", "status": "running", "stage": "render",
  "progress": { "done": 4, "total": 10 }, "deck_id": "e1d4…", "credits_reserved": 12 }

Read presentations

GET/api/v1/decks?limit=25&status=ready&cursor=…scope: decks:read

Newest update first. Pass next_cursor from a page as cursor to get the next one.

GET/api/v1/decks/{deck_id}?include=documentscope: decks:read

Returns status, slide count, the exports available for the current version, and the latest job. With include=document it adds the full structured deck (deckwright.deck.v1).

Exports

POST/api/v1/decks/{deck_id}/exportsscope: export

Formats: pptx (default), pdf, pdf_notes, png_zip, mp4 and gslides. Document exports cost no credits. If the current version is already exported you get 200 {"status": "ready"}; otherwise 202 with a job_id.

Approvals. When the workspace requires approval (Brand kits → Approvals), the current version must be approved before it can be exported. Otherwise the request fails with 409 approval_required and details.version_id names the version that needs approval.

curl -X POST https://makeaideck.com/api/v1/decks/e1d4…/exports \
  -H "Authorization: Bearer $MAKEAIDECK_API_KEY" \
  -H "Content-Type: application/json" -d '{"format": "pdf"}'

GET/api/v1/decks/{deck_id}/exports?format=pdfscope: export

Returns a signed download URL valid for 5 minutes, or 404 not_exported.

{ "format": "pdf", "url": "https://…/deck.pdf?token=…", "expires_in": 300, "bytes": 482113, "version_id": "…" }

Google Slides. gslides creates the file in the Google Drive of the person who created the API key. They must connect Google once in the app (Settings → Integrations); otherwise the request fails with 409 oauth_required. It always returns a job. When the job succeeds its progress holds the link:

{ "id": "…", "kind": "export", "format": "gslides", "status": "succeeded",
  "progress": { "format": "gslides", "version_id": "…", "drive_file_id": "1AbC…",
                "url": "https://docs.google.com/presentation/d/1AbC…/edit", "account_email": "you@company.com" } }

There is no download URL for gslides; GET …/exports?format=gslides returns 400.

MP4 video. mp4 renders a 1920×1080 H.264 video of the slides with short crossfades and no audio. It costs 1 credit, and each workspace can make 20 per UTC day (429 daily_limit_workspace). Set the timing with options: seconds_per_slide (integer 2–60, default 5) and durations, which maps slide ids from the deck document to seconds (2–60). Options for other formats, unknown slide ids or out-of-range values fail with 422 invalid_options. A video with the same timing is reused.

curl -X POST https://makeaideck.com/api/v1/decks/e1d4…/exports \
  -H "Authorization: Bearer $MAKEAIDECK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"format": "mp4", "options": {"seconds_per_slide": 6, "durations": {"s-title": 3}}}'

While it renders, the job's progress is {"format": "mp4", "done", "total", "step"}. Download it with GET …/exports?format=mp4.

Web sources

POST/api/v1/sources/urlscope: decks:write or generate

Registers a public web page and reads it straight away (http(s) only, no sign-in pages, up to 2 MB of HTML; private networks are refused). Use the source_id in source_ids when you create a presentation.

curl -X POST https://makeaideck.com/api/v1/sources/url \
  -H "Authorization: Bearer $MAKEAIDECK_API_KEY" \
  -H "Content-Type: application/json" -d '{"url": "https://example.com/annual-report"}'

{ "source_id": "9f2e…", "status": "ready", "title": "Annual report 2025", "facts_count": 14 }

status is ready, failed (see error.code; the source can't be used) or uploaded (a temporary problem: generation fetches it again).

Webhooks

Add endpoints in Settings → Webhooks (https only). We POST JSON and retry failures after 2, 4, 8, 16 and 32 minutes. Any 2xx acknowledges; 410 Gone disables the endpoint; redirects are not followed.

  • deck.generated: A presentation finished generating (including re-skins).
  • deck.failed: Generation or a re-skin failed. Reserved credits were returned.
  • export.ready: An export (PowerPoint, PDF, images) is ready to download.
  • share.viewed: Someone opened a share link.
  • approval.requested: A member asked someone to approve a version of a presentation.
  • approval.decided: An approval request was approved or rejected.
  • test: sent by the Send test button.
Body
{
  "id": "2b9f2c1e-…",            // delivery id, same as the webhook-id header
  "type": "deck.generated",
  "created_at": "2026-10-12T09:00:00Z",
  "workspace_id": "7d6a…",
  "data": { "job_id": "…", "job_kind": "generate", "deck_id": "…", "deck_title": "Q3 board review", "version_id": "…" }
}

export.ready adds format (including gslides, which has no URL in the event: read it from the job). Failures carry error_code. Jobs started through the API include api_key_id.

approval.requested and approval.decided carry the approval: approval_id, deck_id, deck_title, version_id, version_label, status (pending, then approved or rejected), requested_by, requester_name, approver_id, approver_name, decided_by, decided_by_name, note, decision_note, created_at and decided_at. Empty fields are left out.

approval.decided data
{ "approval_id": "5c1e…", "deck_id": "e1d4…", "deck_title": "Q3 board review",
  "version_id": "…", "version_label": "Board final", "status": "approved",
  "requested_by": "…", "requester_name": "Ada Lovelace", "approver_id": "…", "approver_name": "Grace Hopper",
  "decided_by": "…", "decided_by_name": "Grace Hopper", "decision_note": "Ship it",
  "created_at": "2026-10-12T09:00:00Z", "decided_at": "2026-10-12T10:30:00Z" }

Verifying signatures

Deliveries follow the Standard Webhooks spec, so its libraries work with the secret exactly as shown. Each request has three headers:

  • webhook-id: the delivery id, unchanged on retries (use it to de-duplicate);
  • webhook-timestamp: Unix seconds of this attempt;
  • webhook-signature: v1,<base64 signature> (space-separated if several).

The signature is HMAC-SHA256 over {webhook-id}.{webhook-timestamp}.{raw body}. The key is the base64 decoding of the part after whsec_. Verify against the raw body bytes (before JSON parsing), reject timestamps more than 5 minutes off, and compare in constant time.

Node.js
import { createHmac, timingSafeEqual } from "node:crypto";

// secret: "whsec_…" exactly as shown in Settings → Webhooks
export function verifyWebhook(secret, headers, rawBody, toleranceS = 300) {
  const id = headers["webhook-id"];
  const ts = headers["webhook-timestamp"];
  if (!id || !/^\d+$/.test(ts ?? "")) return false;
  if (Math.abs(Date.now() / 1000 - Number(ts)) > toleranceS) return false;
  const key = Buffer.from(secret.slice("whsec_".length), "base64");
  const expected = createHmac("sha256", key).update(`${id}.${ts}.${rawBody}`).digest("base64");
  return (headers["webhook-signature"] ?? "").split(" ").some((part) => {
    const [version, sig] = part.split(",", 2);
    return version === "v1" && sig?.length === expected.length &&
      timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
  });
}
Python
# pip install standardwebhooks
from standardwebhooks import Webhook

wh = Webhook(secret)          # "whsec_…" as shown
event = wh.verify(raw_body, headers)   # raises on a bad signature or stale timestamp
Test vector
secret     whsec_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
webhook-id 2b9f2c1e-8f3a-4d1b-9a77-0c6e1d2f3a4b
timestamp  1791795600
body       {"id":"2b9f2c1e-8f3a-4d1b-9a77-0c6e1d2f3a4b","type":"test","created_at":"2026-10-12T09:00:00Z","workspace_id":"7d6a1c2b-1111-4222-8333-944455556666","data":{"message":"Test delivery"}}
signature  v1,2oTo05c6fwmPE3E/qWg4noKh8HyMujHhdFtc/uR8T20=

OpenAPI and MCP

The machine-readable description is at /api/v1/openapi.json (OpenAPI 3.1). Import it into Postman, Insomnia or a client generator.

An MCP server for AI assistants (tools create_deck, get_deck, export_deck, job_status) runs on top of this API with an API key; see packages/mcp in the repository.