Connect your presentation
Remote MCP with built-in documentation
Connect your backend agent to the Streamable HTTP endpoint below. Send the poll key in the Authorization header. Call get_guide or read the poodlepoll://guide resource for complete instructions, then get_poll for the actual question IDs and current run. The same online service works from any computer.
https://poodlepoll.conzeon.dev/api/integrations/{code}/mcp
Authorization: Bearer <POODLEPOLL_TOKEN from backend secrets>
get_guide · get_poll · get_results · list_runs
control_poll · edit_poll · reset_pollQuestion editing needs the separate content:write permission, enabled by the owner. edit_poll (or REST PATCH) requires expectedRunId and expectedRevision, and accepts title, description, timezone, upsert, remove and order. Omitted questions stay unchanged, including hidden quiz solutions. Answered questions cannot be changed or deleted; new questions can be appended. Reset always needs a human to type RESET and archives the current run.
For charts, divide option counts by that question’s total. Say “Among those who answered”; the percentage does not describe the whole room. Questions can be edited in the host panel while other questions have votes, as long as the edited question itself has no saved answers.
Private access for your agent
Open “Connect your presentation agent” in host controls. Create a read-only key, or enable session control. Copy it once into your backend’s secret manager. Keys belong to one poll, expire after 1 hour to 30 days (24 hours by default), and can be revoked at any time.
The private API is server to server. Never use the key in browser JavaScript, a URL, a public repository or a public WebSocket subprotocol. Browser Origin requests are rejected. Owner cookies and participant cookies do not authenticate this API.
// Node.js backend. Set these in your secret manager.
const code = process.env.POODLEPOLL_CODE;
const headers = {
Authorization: 'Bearer ' + process.env.POODLEPOLL_TOKEN,
'Content-Type': 'application/json',
};
const endpoint = 'https://poodlepoll.conzeon.dev/api/integrations/' + code;
const response = await fetch(endpoint, { headers });
if (!response.ok) throw new Error('Poll API: ' + response.status);
const state = await response.json();
// Requires session:control. Also: start, pause, close, present, lobby, mode, reveal, winner.
const saved = await fetch(endpoint, {
method: 'POST', headers,
body: JSON.stringify({ action: 'activate', questionId: 'q1', expectedRunId: state.run.id }),
});
if (!saved.ok) throw new Error('Poll control: ' + saved.status);Control the participant experience
Availability and screen layout are separate. Progressive mode leaves earlier opened questions answerable when you activate the next slide. Guided mode only accepts the active question. Free opens everything. Single layout offers Previous/Next; autoAdvance moves after an acknowledged first answer, never on reload or when editing. Unopened questions show a waiting screen. Present pauses voting for the whole poll; use activate when moving slides while collecting answers.
// Backend only, using the same private endpoint and headers.
for (const command of [
{ action: 'mode', mode: 'progressive' },
{ action: 'audience', layout: 'single', autoAdvance: false },
]) {
const res = await fetch(endpoint, {
method: 'POST', headers,
body: JSON.stringify({ ...command, expectedRunId: state.run.id }),
});
if (!res.ok) throw new Error('Poll control: ' + res.status);
}
// layout:'all', autoAdvance:false => all released questions
// layout:'single', autoAdvance:true => automatic flow
// snapshot.openedQuestionIds lists released questions; reset clears it.Runs, reset and history
Every snapshot includes run.id, run.number, run.createdAt, run.startedAt and run.endedAt (UTC; null until applicable). Start and activate open voting. Present selects a question while paused; lobby returns to the waiting room. Pause keeps the question visible. Guided mode accepts only the active question; free mode accepts all questions. Reveal controls result visibility independently. rehearsal=true marks practice data; it is durably saved until the host explicitly types DISCARD, then removed without entering the real run or archives.
Require the presenter to type RESET. Send that exact text and the run ID shown in the control UI. The API atomically archives answers and starts an empty lobby with the same link, questions and key. A repeated request for the old run returns 409. Never reset automatically on page load or reconnect. Clear all charts and own-answer state when run.id changes.
// On your authenticated backend, after a deliberate typed confirmation:
await fetch(endpoint, {
method: 'POST', headers,
body: JSON.stringify({ action: 'reset', confirm: 'RESET', expectedRunId: state.run.id }),
}); // Check status; 409 means refresh, never silently reset the next run.
// Private GET routes, same Authorization header:
// endpoint + '/questions/skill' current question
// endpoint + '/runs' archive list, 50/page
// endpoint + '/runs?before=' + nextBefore older page
// endpoint + '/runs/' + runId complete archived/current run
// endpoint + '/runs/' + runId + '/questions/skill'
// Prefer one backend WebSocket; HTTP fallback: one full snapshot every 2 seconds.Private WebSocket feed (Node.js)
import WebSocket from 'ws';
const socket = new WebSocket(
'wss://poodlepoll.conzeon.dev/api/live/agent?code=' + process.env.POODLEPOLL_CODE,
{ headers: { Authorization: 'Bearer ' + process.env.POODLEPOLL_TOKEN } },
);
socket.on('message', raw => {
const event = JSON.parse(raw.toString());
if (event.type === 'snapshot') updatePrivateDashboard(event.state);
});
socket.on('error', () => showDisconnected());
socket.on('close', code => {
clearPrivateDashboard();
// 1008: revoked/expired/denied. Stop; obtain a new key from the owner.
// 1012/1013 or network failure: retry with backoff + jitter.
});The private feed includes unpublished aggregate counts, but never participant identities, individual votes or unrevealed quiz solutions. It is read only: send commands through HTTP. Authorization is checked before each snapshot, with reconciliation every second. Existing connections close on revocation or expiry. API limits return 429 and Retry-After; retry later, not in a loop.
Public results inside your slides or website
Fastest: embed the read-only results widget. It receives live updates and needs no key or proxy. Choose focus (last presenter action), single (selected voting question), or all. Dark, light and transparent themes and optional QR sizes are available.
<iframe src="https://poodlepoll.conzeon.dev/embed/YOURCODE?mode=focus&theme=dark&qr=small&lang=en"
title="Live poll results" style="width:100%;height:600px;border:0"></iframe>Use the public feed in presentation JavaScript: it needs no secret and sends only results you have revealed. Browsers send their own Origin automatically; you cannot set that header yourself. Enable external connections in host controls and add the exact website origin, for example https://example.com. Origin rules protect browser connections; they are not authentication for confidential information. Keep the private agent feed on your backend.
For a simple embed, GET /api/public/{code}/results from any browser origin. It returns versioned JSON with question → options → counts. Hidden counts are null. Prefer the WebSocket for live charts; if HTTP is required, poll no faster than every five seconds and honor 429 Retry-After. A 1,000-person WebSocket burst was tested on the hosted service; this is a measured result, not a guarantee for every network.
const result = await fetch('https://poodlepoll.conzeon.dev/api/public/' + code + '/results');
if (result.status === 429) wait(Number(result.headers.get('Retry-After') || 60) * 1000);
else if (result.ok) renderPublicResults(await result.json());
// Each question has isRevealed and acceptingAnswers; hidden counts are null.const code = 'YOUR_CODE';
let stopped = false;
let socket;
function connect() {
socket = new WebSocket('wss://poodlepoll.conzeon.dev/api/live/socket?code=' + code);
socket.onmessage = ({ data }) => {
const event = JSON.parse(data);
if (event.type === 'snapshot') renderPublicResults(event.state);
if (event.type === 'unavailable') showReconnecting();
};
socket.onclose = ({ code }) => {
clearResults();
if (code === 1008 || stopped) return;
setTimeout(() => { if (!stopped) connect(); }, 2000 + Math.random() * 1000);
};
}
connect();
function disconnect() { stopped = true; socket.close(); }Replace the old state on every snapshot. A question’s results is null while hidden, otherwise an array of id and count. The public socket still includes question.total for a live response counter, without showing the distribution; the versioned public HTTP results endpoint instead returns null for hidden totals. Each question also carries isRevealed, acceptingAnswers and isOpen; status is lobby, open, paused or closed. serverTime and revision are present, but votes can change with the same revision. Clear hidden charts immediately. Quiz solutions appear only after publication. Data already displayed or copied cannot be taken back.