50% off until Dec 31st

Developers · Included in Teams

DemoSix for developers and agents

Read who watched, how far, and the leads your signature links bring in, from your own tools and AI assistants. Included in Teams.

Step one

Get a key

A key is made by the workspace Owner and reaches only the libraries chosen when it was made.

  1. 1

    Open Settings → Developers

    Choose New key. Only the Owner of the workspace sees the controls.

  2. 2

    Name it and pick its libraries

    A key reaches the libraries you pick and no others. Pick the scopes it needs.

  3. 3

    Copy it once

    The key starts with dsx_ and is shown one time. Lose it, and you make a new one. Give it an expiry; 90 days is suggested.

Scopes

Keys read. The one exception is Manage webhooks, which adds and removes your own webhook addresses. Nothing a key does changes a lead, a demo or a library.

leads:read
Read leads
watched:read
Read Who watched
demos:read
Read demos and totals
webhooks:manage
Manage webhooks

Send the key as a bearer token. The first call to make is /me: it answers with the workspace, the libraries and the scopes the key has.

curl
curl -H "Authorization: Bearer dsx_..." \
  https://demosix.com/api/v1/me

Read it from your tools

The API

Every address begins with https://demosix.com/api/v1. The whole API is described in an OpenAPI 3.1 document at /api/v1/openapi.json, which needs no key to read. JSON in and out; dates are ISO 8601.

  • GET /me

    Who this key is

  • GET /libraries

    The libraries the key reaches

  • GET /libraries/{libraryId}/leads

    The Leads list

  • GET /libraries/{libraryId}/leads/find

    One lead by email

  • GET /libraries/{libraryId}/leads/{leadId}

    One lead

  • GET /libraries/{libraryId}/links

    The library's signature links

  • GET /libraries/{libraryId}/watched

    Who watched, for one Channel

  • GET /libraries/{libraryId}/demos

    Every demo with its totals

  • GET /demos/{demoId}/stats

    One demo's totals

  • GET /webhooks

    The workspace's webhook addresses

  • POST /webhooks

    Add a webhook address

  • GET /webhooks/{endpointId}

    One webhook

  • DELETE /webhooks/{endpointId}

    Remove a webhook

  • POST /webhooks/{endpointId}/test

    Send a sample event now

Pages

Lists take limit (up to 100) and cursor. Each page answers with next_cursor; send it back to get the next page, and stop when it is null.

Limits

120 calls a minute per key. Who watched and the demo totals list are heavier: 10 a minute. Over the limit you get a 429 and a Retry-After header. Twenty refused tokens from one address in ten minutes close the door to that address for the rest of the window; a valid key is never counted.

Errors

Every error is JSON with one error object: a code, a message, sometimes details, and the requestId to quote to support.
An error
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Rate limit exceeded",
    "details": { "retryAfter": 12 },
    "requestId": "req_01JA3V7Q8KXN2M4P6R8T0W2Y4Z"
  }
}

Error codes

Retry a 429, 500 or 503 after a growing wait. Any other error will answer the same way until the request or the key changes.

400BAD_REQUEST
The body is not valid JSON.
401UNAUTHORIZED
No key, or a key that is wrong, revoked or expired.
402PAYMENT_REQUIRED
The workspace is not on Teams. Tell a person; retrying will not help.
403FORBIDDEN
The key does not have the scope this needs.
404NOT_FOUND
It does not exist, or this key does not reach it.
409CONFLICT
A limit stops it, such as the tenth key or webhook address, or a message that can no longer be sent again.
422VALIDATION_ERROR
A parameter or field is wrong; the details say which.
429RATE_LIMITED
Too many calls. Wait the seconds in Retry-After.
500INTERNAL_ERROR
Something failed on our side. Try again shortly.
503SERVICE_UNAVAILABLE
Briefly unavailable. Try again shortly.

Leads come back with the same filters the Leads page has: search, engagement, link, from, marketing and sort.

curl
curl -H "Authorization: Bearer dsx_..." \
  "https://demosix.com/api/v1/libraries/LIBRARY_ID/leads?engagement=ENGAGED&limit=50"

One lead looks like this. A single lead's detail adds their answers, per-demo watching and consent history.

A lead
{
  "id": "4f0c2a7e-6b1d-4c3e-9a21-0d5e8f7b6c11",
  "library_id": "9b7e1d2c-3a4f-4e5d-8c6b-7a8f9e0d1c2b",
  "first_name": "Maria",
  "last_name": "Lopez",
  "company": "Lopez Consulting",
  "email": "maria@example.com",
  "email_verified": true,
  "email_verified_at": "2026-10-13T18:40:02Z",
  "engagement_state": "ENGAGED",
  "engaged_at": "2026-10-14T13:02:11Z",
  "best_ratio": 0.62,
  "demos_started": 2,
  "first_submitted_at": "2026-10-13T18:40:02Z",
  "last_activity_at": "2026-10-14T13:02:11Z",
  "submission_count": 1,
  "visit_count": 3,
  "marketing_status": "GRANTED",
  "calls_texts_agreed_at": null,
  "link": { "id": "2c6d8e0f-1a2b-4c3d-8e9f-0a1b2c3d4e5f", "name": "Sales", "removed": false },
  "link_owner": { "user_id": "user_31Kq8Zt", "name": "Alex Rivera" },
  "arrived_via": "email_signature",
  "ad_platform": null,
  "held": false,
  "url": "https://demosix.com/creator/networks/9b7e1d2c-3a4f-4e5d-8c6b-7a8f9e0d1c2b/leads?lead=4f0c2a7e-6b1d-4c3e-9a21-0d5e8f7b6c11"
}

The moment it happens

Webhooks

Add an https address on Settings → Developers, pick the events and the libraries, and DemoSix posts a signed JSON message to it when one happens.

The events

lead.created
New lead
lead.engaged
Lead engaged (watched half a demo)
lead.marketing_withdrawn
Lead's marketing permission withdrawn
lead.deleted
Lead deleted

A new lead carries email_verified: true when they entered the code emailed to them. There is no separate verified event, because where verification is on a lead exists only once they did.

The body names the event, the library and the lead with every field the API shows, including their answers. Engaged messages add the demo; withdrawals and deletions carry what you need to update your own copy.

A message
{
  "id": "dlv_01JA3V7Q8KXN2M4P6R8T0W2Y4Z",
  "event_id": "evt_01JA3V7Q8KXN2M4P6R8T0W2Y4A",
  "type": "lead.engaged",
  "occurred_at": "2026-10-14T13:02:11Z",
  "library": {
    "id": "9b7e1d2c-3a4f-4e5d-8c6b-7a8f9e0d1c2b",
    "name": "Northstar Software",
    "web_name": "northstar"
  },
  "lead": {
    "id": "4f0c2a7e-6b1d-4c3e-9a21-0d5e8f7b6c11",
    "first_name": "Maria",
    "last_name": "Lopez",
    "company": "Lopez Consulting",
    "email": "maria@example.com",
    "email_verified": true,
    "engagement_state": "ENGAGED",
    "best_ratio": 0.62,
    "arrived_via": "website_embed",
    "ad_platform": null,
    "answers": [
      { "id": "q_1", "question": "Company", "type": "short", "answer": "Lopez Consulting" },
      { "id": "q_2", "question": "Company size", "type": "dropdown", "answer": "11-50" }
    ],
    "url": "https://demosix.com/creator/networks/9b7e1d2c-3a4f-4e5d-8c6b-7a8f9e0d1c2b/leads?lead=4f0c2a7e-6b1d-4c3e-9a21-0d5e8f7b6c11"
  },
  "demo": { "id": "TepAqZEWbC", "title": "Pricing walkthrough", "ratio": 0.62 }
}

Five headers come with it. X-Demosix-Event-Id is the same on every retry of the same event, so you can drop a duplicate by it.

Headers
POST /demosix-webhook HTTP/1.1
Content-Type: application/json
User-Agent: DemoSix-Webhooks/1
X-Demosix-Event: lead.engaged
X-Demosix-Event-Id: evt_01JA3V7Q8KXN2M4P6R8T0W2Y4A
X-Demosix-Delivery: dlv_01JA3V7Q8KXN2M4P6R8T0W2Y4Z
X-Demosix-Timestamp: 1792155731
X-Demosix-Signature: v1=5f1a9c0e7b2d4a6f8e1c3b5d7f9a0c2e4b6d8f0a1c3e5b7d9f1a3c5e7b9d1f3a5

Check the signature

Each address has a secret that starts with whsec_, shown once when the address is added and again only when you rotate it. To check a message:

  1. Read the raw body as it arrived. Do not parse and re-serialize it first.
  2. Join X-Demosix-Timestamp, a dot, and the raw body: ${timestamp}.${rawBody}.
  3. Compute HMAC-SHA256 over that string with the secret, as hex.
  4. Compare it to the value after v1= in X-Demosix-Signature, with a constant-time compare.
  5. Refuse a timestamp more than five minutes from your clock.
Node
import { createHmac, timingSafeEqual } from "node:crypto";

// headers: the request's headers, lower-cased; rawBody: the body as a string
export function verifyDemoSix(secret, headers, rawBody) {
  const timestamp = Number(headers["x-demosix-timestamp"]);
  if (Math.abs(Date.now() / 1000 - timestamp) > 300) return false;
  const mac = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`).digest("hex");
  const expected = Buffer.from(`v1=${mac}`);
  const given = Buffer.from(String(headers["x-demosix-signature"] ?? ""));
  return given.length === expected.length && timingSafeEqual(given, expected);
}
Python
import hashlib, hmac, time

# headers: the request's headers; raw_body: the body as bytes
def verify_demosix(secret: str, headers: dict, raw_body: bytes) -> bool:
    timestamp = int(headers["X-Demosix-Timestamp"])
    if abs(time.time() - timestamp) > 300:
        return False
    signed = f"{timestamp}.".encode() + raw_body
    expected = "v1=" + hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    return hmac.compare_digest(headers.get("X-Demosix-Signature", ""), expected)
PHP
<?php
// $headers: the request's headers; $rawBody: file_get_contents('php://input')
function verifyDemoSix(string $secret, array $headers, string $rawBody): bool {
    $timestamp = (int) ($headers['X-Demosix-Timestamp'] ?? 0);
    if (abs(time() - $timestamp) > 300) {
        return false;
    }
    $expected = 'v1=' . hash_hmac('sha256', "$timestamp.$rawBody", $secret);
    return hash_equals($expected, $headers['X-Demosix-Signature'] ?? '');
}

Retries

Answer with any 2xx within ten seconds. Anything else is retried with growing waits for about a day, and each attempt is listed under Deliveries.

Pausing

After a day of failing, or 100 failures in a row, the address is paused and the Owner is emailed once. Resume, Redeliver and Send test are on Settings → Developers.

Addresses

Addresses must be https and reachable from the internet. Private and local addresses are refused, and redirects are not followed.

Order and repeats

Messages can arrive out of order: a retried message can land after a newer one. Each one is sent at least once, so drop a repeat by X-Demosix-Event-Id. When order matters, read the lead from the API for its latest state.

Where messages come from

From our hosting provider's servers in the United States. Their addresses change, so there is no fixed list to allow through a firewall. Trust a message by its signature, not by where it came from.

No code

Zapier

Send each lead to HubSpot, Slack, a Google Sheet or any of the thousands of apps on Zapier, with nothing to code. DemoSix on Zapier is by invite while Zapier reviews it: the button opens it to your Zapier account.

  1. 1

    Make a key

    On Settings → Developers, choose New key, pick the libraries Zapier may see, and give it Read leads and Manage webhooks.

  2. 2

    Accept the invite

    Connect to Zapier opens the invite. Sign in to Zapier, or make a free account, and accept it: DemoSix is then an app you can use there.

  3. 3

    Make a Zap

    Choose DemoSix as the trigger and New Lead or Lead Engaged. Paste the key when Zapier asks to connect, pick the library, then choose where the lead goes.

Triggers and search

Each trigger is instant. When a Zap is turned on, DemoSix adds a webhook for it, which shows on Settings → Developers marked Zapier, and removes it when the Zap is turned off. The lead arrives in the shape of the webhook message above.

New Lead
A lead gave their name and email.
Lead Engaged
A lead watched half a demo.
Find Lead
One lead by email, for a later step in a Zap.

Once Zapier lists DemoSix, the invite is no longer needed: search for DemoSix inside Zapier.

Automate with AI

MCP

Connect Claude or ChatGPT to DemoSix once and let it do the checking: a briefing on new leads every weekday morning, or a Friday report on who watched the pricing demo.

The MCP server is at https://demosix.com/api/mcp. It only reads: nothing it does changes anything. It needs a workspace on Teams.

Claude

  1. Open Connectors (Customize or Settings) and choose Add custom connector.
  2. Name it DemoSix, paste https://demosix.com/api/mcp and choose Add.
  3. Choose Connect, sign in to DemoSix and choose Allow.
  4. In a chat, switch DemoSix on under Connectors in the + menu.
  5. To automate it, describe the task and when it should run, or open Scheduled and choose New task.

ChatGPT

  1. Open Plugins (Apps on some plans) and choose Add custom MCP server. In a workspace, an admin may have to allow it.
  2. Name it DemoSix, paste https://demosix.com/api/mcp, keep OAuth and create it.
  3. Continue to DemoSix, sign in and choose Allow.
  4. In a chat, type @DemoSix.
  5. To automate it, describe the task and when it should run. It is listed under Scheduled.

Claude and ChatGPT sign in with your DemoSix account and read what you can read in the app. Other tools connect with an API key: send it as a bearer token in the Authorization header, the same way as the API, and it reads exactly what the key reaches.

Cursor and Claude Code
{
  "mcpServers": {
    "demosix": {
      "url": "https://demosix.com/api/mcp",
      "headers": { "Authorization": "Bearer dsx_..." }
    }
  }
}

Things to automate

  • Every weekday at 8 AM, list yesterday's new leads and who to call first.
  • Every Friday, show who watched the pricing demo this week and how far they got.
  • Every morning, list the leads from my Sales link who are engaged but have not asked for a demo.
  • Every Monday, give me last week's lead summary for my library.

For an automation that starts the moment a lead comes in, have Claude Code or another coding assistant build it on the webhooks: DemoSix posts each new lead and engaged lead to your address as it happens.

The tools

  • list_networks
  • list_leads
  • get_lead
  • find_lead_by_email
  • list_demo_requests
  • who_watched
  • list_demos
  • get_demo_stats

Each tool reads what its API endpoint reads, under the same scopes, with 120 calls a minute across the tools. Their descriptions tell the assistant what the figures mean: started against engaged, and what watched means on Who watched.

If it does not connect

  • No sign-in page appears: remove the connector and add it again with the address exactly as above.
  • It answers with no libraries: the workspace is not on Teams, or the account that signed in owns or helps run no library.
  • It stopped answering: choose Connect on the connector again. Removing the connector, or revoking the key on Settings, Developers, ends its access.
  • Still stuck: email support@demosix.com.

One frame

Your form on your website

Paste one frame where the form should go. It opens on a still of your link's first demo with a Play button; Play shows your intake form, and once a visitor fills it in, the demo plays in the same box.

The frame is copied ready-made from Add to your website, beside Add to signature on each of your links, where you pick what follows the video and its colour, and list the websites allowed to show it. A site that is not listed cannot. Its title is your link's form title, set in Edit intake form. It comes with every paid plan.

The choices travel in the frame's address: c (one colour), and next with nw and nu (a booking button's words and https address) or nm (a sentence) for what sits under the video. The frame sizes itself: the page inside it posts its height in a message of type demosix:height, and the short script after the frame sets the frame's height from it, taking the message only from its own frame. Visitors on a Safari older than 26.2 are asked for the short form again on their next visit inside the frame; the same email updates the same lead.

The frame
<iframe src="https://yourcompany.demosix.com/CODE/embed?next=link&amp;nw=Book+a+15-minute+call&amp;nu=https%3A%2F%2Fcalendly.com%2Fyour-team%2Fintro"
        title="Watch the demo"
        allow="autoplay; fullscreen; picture-in-picture"
        style="display:block;width:100%;max-width:560px;height:480px;border:0;border-radius:16px;box-shadow:0 12px 32px -12px rgba(15,23,42,.28)"></iframe>
<script>
(function () {
  var frame = document.currentScript && document.currentScript.previousElementSibling;
  if (!frame || frame.tagName !== "IFRAME") return;
  window.addEventListener("message", function (event) {
    if (!frame.contentWindow || event.source !== frame.contentWindow) return;
    if (!event.data || event.data.type !== "demosix:height") return;
    var height = Number(event.data.height);
    if (height > 0) frame.style.height = Math.ceil(height) + "px";
  });
})();
</script>

Build on it

Versions and changes

The API and webhooks are version 1, the /v1 in every address. We will not change version 1 in a way that breaks your code.

Can change in version 1

New fields in an answer or a message, new endpoints, new optional parameters and new events. Ignore fields you do not know. A webhook address only gets the events it was set up for.

Needs version 2

Removing or renaming a field, changing what one means, or removing an endpoint or event. Version 1 keeps working for at least six months after we announce version 2, here and by email to every workspace Owner with a key or webhook address.

The exception

A change needed to fix a security problem may come without notice. It is listed below when it does. The MCP server's tools can gain tools and clearer wording at any time; assistants read them each time they connect.

Changes

  1. November 4, 2026Demo requests removed

    DemoSix no longer takes demo requests. The /libraries/{libraryId}/demo-requests endpoint and the lead.demo_requested webhook event are gone, as is Zapier's Demo Requested trigger. The MCP tool list_demo_requests stays for now and always answers with none. Removed in place, an exception to the promise above, because nobody outside DemoSix had built on them.

  2. November 3, 2026People by name, no handles

    DemoSix no longer has usernames, so version 1 names people by name only. handle is gone from link_owner on every lead (in answers, webhook messages, the MCP server and Zapier), from people in the leads list and in Who watched, and from from on demo requests; name, already beside it, stays. In the MCP server, who_watched gives name in place of handle and displayName. Removed in place, an exception to the promise above, as with libraries the day before.

  3. November 2, 2026Networks are now libraries

    Version 1 says library: /networks is now /libraries, network_id is library_id, networkIds is libraryIds when adding a webhook, and the network object in answers and webhook messages is library. A library has no type field. Renamed in place, an exception to the promise above, because nobody outside DemoSix had built on these names yet. The MCP server keeps its tool names and fields for now.

  4. October 31, 2026Plan checks on the MCP server

    list_networks adds not_shown, with a count and the reason, when a Network you work in is left out because its workspace is not on Teams. The three lead tools now answer 402 on a workspace without Teams, as the other tools already did.

  5. November 9, 2026The embed opens on Play

    The website frame now opens on a still of the link's first demo with a Play button; Play shows the intake form, and the demo plays in the same box after it. Same frame, same size, nothing to paste again.

  6. November 9, 2026Where an ad ran

    Leads carry ad_platform: facebook, instagram, meta, youtube, google, microsoft, tiktok or linkedin when arrived_via is ad, from the link copied for that platform (utm_source) or the ad's click id; null otherwise. In webhook bodies, the MCP server and Zapier too.

  7. October 31, 2026Answer types in the OpenAPI document

    The document now lists the answer types the API has always sent: short, long, dropdown and phone. It said SHORT_TEXT, LONG_TEXT, SELECT and PHONE before. Nothing the API sends changed.

  8. October 21, 2026Ad leads

    arrived_via has a fifth value, ad: a lead who opened a link copied for ads (via=ad), or one carrying a Google, Microsoft or TikTok ad click id or a paid utm_medium. GET /leads takes arrival=ad. In webhook bodies, the MCP server and Zapier too.

  9. October 21, 2026Website button retired

    Add to your website now hands out the frame only. Button tags already on websites keep working. The frame's title is the link's form title; a frame that carries h keeps its own.

  10. October 20, 2026Came in from

    Every lead now carries arrived_via: email_signature, website_button, website_embed or link, how they first came in. Leads from before read as link. GET /leads takes arrival to filter by it, and each consent record says how that submission came in. In webhook bodies, the MCP server and Zapier too.

  11. October 20, 2026Website embed

    The frame now holds a link's form on its own, and the demo plays in the same box once it is filled in; the box keeps one size. Each link has its own, from Add to your website, on every paid plan. The button's script is v2, which adds data-demosix-shape; tags with v1 keep working.

  12. October 19, 2026Zapier

    DemoSix on Zapier, by invite while Zapier reviews it: three instant triggers (New Lead, Lead Engaged, Demo Requested) and a Find Lead search, on the same webhooks and API. The Connect to Zapier button is on this page and on Settings → Developers.

  13. October 19, 2026Company

    Every lead carries company: their answer to a Company question on the form, or null when it was not asked or left blank. In the list, one lead, the search by email, webhook bodies and the MCP tools.

  14. October 18, 2026Held leads

    Every lead carries held: true on a lead captured past the workspace's monthly lead allowance and still over it, whose name, email and answers stay empty until the plan is upgraded. A held lead is never sent in a webhook. Since October 29 only Basic has an allowance, and Basic has no API, so held reads false wherever the API answers.

  15. October 16, 2026Teams and Enterprise

    The API, webhooks, the MCP server and Zapier are part of Teams and Enterprise. A key on another plan answers 402; until that day Standard had them too.

  16. October 16, 2026Key checksum

    New keys end in a six-character checksum, so scanners can tell a real key from a look-alike. Same length and characters; older keys keep working.

  17. November 1, 2026Every Network is private

    Public Networks were removed. A Network's type is always PRIVATE, every link captures leads (captures_leads is always true), and a demo request's from.kind is never FOLLOWER. The fields stay, so nothing you send or read changes shape.

  18. October 15, 2026Paid Networks removed

    A Network's type is now only PUBLIC or PRIVATE, and a demo request's from.kind is never MEMBER or GUEST. Requests are unchanged.

  19. October 14, 2026Key safety

    Keys can be given an expiry and revoked all at once, and the Owner is emailed when a key is made, revoked or first used from a new country.

  20. October 14, 2026Version 1

    API keys, the read API, webhooks, the MCP server for Claude, ChatGPT and other assistants, the Watch a Demo button and the in-page frame.

Good to know

Limits and rules

If a key leaks

If a key has been seen by anyone it should not have been, in public code, a log or a message, treat it as lost:

  1. Revoke it in DemoSix: Settings, then Developers. It stops working at once.
  2. Make a new key there.
  3. Put the new key in your integration's settings or secret store, not in code.
  4. Remove the old key from your code and its history.
  5. Check the key list for anything you do not recognise, and revoke it too.
  • Keys, webhooks and the MCP server are part of Teams and Enterprise. While a workspace is on another plan, its keys answer 402, its webhooks send nothing (events from that time are not sent later), and the MCP server leaves its libraries out and says why. Everything works again the moment the plan is back.
  • Key safety: the Owner is emailed when a key is made, when it is revoked, and the first time it is used from a new country, each time with a one-click revoke link. A key can be given an expiry (90 days suggested) and every key can be revoked at once. DemoSix has applied to GitHub's secret scanning program; once GitHub switches it on, a key found in public code on GitHub will be revoked for you as soon as GitHub reports it.
  • The workspace Owner makes keys and webhook addresses. Anyone else sees the Developers settings page without its controls.
  • A key reaches only the libraries chosen when it was made, with the scopes it was given. Up to 10 keys and 10 webhook addresses per workspace.
  • Lead data is what the prospect gave the named company on its form, and the watching the consent wording told them that company receives. Use it as they were told.
  • The withdrawn-permission and deleted-lead webhooks exist so your copies can follow the lead's decision. Subscribe to them if you keep leads anywhere else.
  • Where data is stored, how it is encrypted and how long it is kept: the Security page.
  • Questions and problems: support@demosix.com. Quote the requestId from an error if you have one.