HTTP API and webhooks
Read a show and run it from your own scripts, a show-control system or Bitfocus Companion, with the same commands the controller uses. Webhooks tell your systems when timers start and stop, when a show goes live and when a message goes up.
The short version
- The API lives at
https://venueclock.com/api/v1and speaks JSON. Every request carries an API token in theAuthorizationheader. - Create tokens in the app under Account, then API and webhooks. A token can be read-only, and can be limited to one show.
- Commands run exactly like a click in the controller: every connected screen follows within the same second, and the run log records them.
- Each token can make 300 reads and 300 commands a minute. The API is on every plan, Free included.
- Webhooks send signed JSON to your HTTPS address when something happens in a show. They come with the paid plans and passes.
API tokens
Sign in, open Account, then API and webhooks, and create a token. Give it a name you will recognize later, choose whether it can control shows or only read them, and choose all your shows or one. Venueclock shows the token once: copy it then. We keep only a SHA-256 hash of it, so nobody can show it to you again, us included.
- Tokens start with
vc_live_, so secret scanners and your own eyes can spot one in a log or a repository. - Send it on every request as
Authorization: Bearer vc_live_.... The API reads no cookies and accepts a token nowhere else, not in the address and not in the body. - A token acts for your account. Anyone who has it can do what it allows, so keep it like a password. Revoke it from the same page and it stops working on the next request.
- An account holds up to 10 tokens. The page shows when each one was last used.
Requests and answers
- Every answer is JSON with
"ok": trueor"ok": false. Times are ISO 8601 in UTC, and durations are whole milliseconds in fields that end inMs. - Commands answer with the show's new state, the same shape as reading the show, so you never need a second request to see what changed.
- Request bodies are JSON objects (send
Content-Type: application/json). Commands without options need no body. - Ids come from the API:
shw_...for shows,tmr_...for timers andmsg_...for saved messages. A show's id is also the last part of its address in the app.
Read a show
- GET
/api/v1/shows The shows this token reaches, most recently changed first.
- GET
/api/v1/shows/{id} Everything a screen knows about the show right now: the current, next and previous timer, the time left, the message on screen and whether the show is live.
List your shows
curl https://venueclock.com/api/v1/shows \
-H "Authorization: Bearer $VENUECLOCK_TOKEN"{
"ok": true,
"shows": [
{
"id": "shw_Vb2QeXk1rT9mHc0a",
"title": "Product summit, main stage",
"timers": 12,
"totalMs": 23400000,
"live": true,
"updatedAt": "2026-12-02T09:41:07.000Z"
}
]
}Read one show
curl https://venueclock.com/api/v1/shows/shw_Vb2QeXk1rT9mHc0a \
-H "Authorization: Bearer $VENUECLOCK_TOKEN"{
"ok": true,
"serverTime": "2026-12-02T09:42:00.000Z",
"show": {
"id": "shw_Vb2QeXk1rT9mHc0a",
"title": "Product summit, main stage",
"timezone": "Europe/London",
"version": 418,
"live": true,
"liveSince": "2026-12-02T09:00:12.000Z",
"startsAt": "2026-12-02T09:00:00.000Z",
"endsBy": "2026-12-02T15:30:00.000Z",
"projectedEnd": "2026-12-02T15:32:00.000Z",
"overUnderMs": 120000,
"autoArmed": true,
"nextAutomatic": {
"kind": "linked",
"at": "2026-12-02T09:46:05.000Z",
"timerId": "tmr_7fJr2NnA0xWd",
"title": "Panel"
}
},
"current": {
"id": "tmr_Q3kM8vYw2LpZ",
"index": 2,
"title": "Opening keynote",
"speaker": "Dana Levi",
"appearance": "countdown",
"overtime": "count",
"durationMs": 1200000,
"addedMs": 60000,
"totalMs": 1260000,
"status": "running",
"state": "running",
"remainingMs": 245000,
"elapsedMs": 1015000,
"overrunMs": 0,
"over": false,
"display": "4:05",
"endsAt": "2026-12-02T09:46:05.000Z",
"wrapUpMs": 120000,
"redMs": 0,
"startedAt": "2026-12-02T09:25:05.000Z"
},
"next": { "id": "tmr_7fJr2NnA0xWd", "index": 3, "title": "Panel", "speaker": "", "durationMs": 1800000 },
"previous": { "id": "tmr_Hc4sP0bT6yQe", "index": 1, "title": "Welcome", "speaker": "", "durationMs": 300000 },
"message": {
"id": "msg_c1L0aXr5Wq8E",
"text": "Please wrap up",
"color": "amber",
"shownAt": "2026-12-02T09:41:50.000Z",
"acknowledgedAt": null,
"acknowledgedBy": null
},
"messages": [{ "id": "msg_c1L0aXr5Wq8E", "text": "Please wrap up", "color": "amber" }],
"screens": {
"language": "en",
"blackout": { "speaker": null, "agenda": null, "overlay": null }
},
"timers": [
{
"id": "tmr_Hc4sP0bT6yQe",
"index": 1,
"title": "Welcome",
"speaker": "",
"durationMs": 300000,
"appearance": "countdown",
"hardStartAt": null,
"locked": false,
"autoNext": true,
"autoStart": false,
"heading": "Morning session",
"newDay": false,
"startedAt": "2026-12-02T09:19:40.000Z",
"endedAt": "2026-12-02T09:25:05.000Z"
}
]
}The fields that matter most
current.statusidle(ready, not started),runningorpaused.current.stateWhat the screens show:
ready,running,warn(the amber wrap-up window,wrapUpMsbefore zero),over(red) orpaused.current.remainingMsTime left when the answer was made; negative once the timer runs over, with
overrunMsandoversaying the same. While it runs,endsAtis the moment it reaches zero, so you can count down locally between requests.current.displayThe readout as the speaker screen shows it, for example
4:05or+0:12over time.show.liveTrue while the show is on air.
show.overUnderMsHow far the projected end is from the planned end: positive when the show runs late, negative when it runs early,
nullwithout a planned end.show.autoArmedTrue while scheduled starts are on: rows marked to start by themselves at their hard start do so. Going live turns it on; ending the show, or the switch in the controller, turns it off.
show.nextAutomaticThe next timer that starts without anyone pressing a button, or
null:kindislinked(the timer on air hands over at zero) orscheduled(a hard start), withat,timerIdandtitle. A linked handover moves with time added live, and waits while the timer is paused.timers[].autoNext,autoStart,heading,newDayautoNext: the row starts the next one when it reaches zero.autoStart: the row starts by itself at itshardStartAtwhile the show is armed.heading: the section it opens, ornull.newDay: it opens a new day of a multi-day show, on the date of itshardStartAt.messageThe message on the speaker screen, or
null.screenslanguageis the screens' display language (en,es,de,fr,pt,it,nl,he,arorja).blackoutsays, for the speaker, agenda and overlay links, whether their screens areblack, show themessageonly, or are on:null.
Control a show
Each command is a POST and needs a token that can control shows. It answers with the show's new state.
- POST
/shows/{id}/start Starts the current timer, or resumes it when paused.
/resumedoes the same.- POST
/shows/{id}/pause Pauses the running timer.
- POST
/shows/{id}/toggle Pauses when running, starts or resumes otherwise. One button for both.
- POST
/shows/{id}/stop Stops the current timer and puts its full time back.
/resetdoes the same.- POST
/shows/{id}/next Moves to the next timer. If a timer is running, the next one starts at once; otherwise it waits, ready.
- POST
/shows/{id}/previous Moves back to the previous timer, the same way.
- POST
/shows/{id}/time Adds time to the current timer, or removes it with a negative number. Body:
{"seconds": 60}or{"deltaMs": -30000}.- POST
/shows/{id}/flash Flashes the speaker screen to catch the speaker's eye.
- POST
/shows/{id}/end Ends the running timer and takes the show off air.
- POST
/shows/{id}/blackout Blacks out screens, like Black out in the controller. Body:
"mode"isblack(the default),message(only the message on air),off(screens back) ortoggle(back when any of them is out, black otherwise), and"roles"is an optional list ofspeaker,agendaandoverlay(all three when left out). The moderator screen never goes out, and timers keep running underneath.- POST
/shows/{id}/timers/{timerId}/start Jumps to a timer and starts it.
- POST
/shows/{id}/timers/{timerId}/goto Makes a timer current. If another timer is running, this one starts at once; otherwise it waits, ready.
All paths start with /api/v1. Starting a timer takes the show live, which counts toward your plan's live rooms exactly as it does from the controller.
Start, add a minute, jump to a timer
curl -X POST https://venueclock.com/api/v1/shows/shw_Vb2QeXk1rT9mHc0a/start \
-H "Authorization: Bearer $VENUECLOCK_TOKEN"curl -X POST https://venueclock.com/api/v1/shows/shw_Vb2QeXk1rT9mHc0a/time \
-H "Authorization: Bearer $VENUECLOCK_TOKEN" \
-H "Content-Type: application/json" \
-d '{"seconds": 60}'curl -X POST https://venueclock.com/api/v1/shows/shw_Vb2QeXk1rT9mHc0a/timers/tmr_7fJr2NnA0xWd/start \
-H "Authorization: Bearer $VENUECLOCK_TOKEN"From JavaScript
const res = await fetch('https://venueclock.com/api/v1/shows/shw_Vb2QeXk1rT9mHc0a/next', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
});
const body = await res.json();
if (!body.ok) throw new Error(body.message);
console.log(body.current?.title, body.current?.display);Messages
- POST
/shows/{id}/message Puts a message on the speaker screen. Send
text(up to 280 characters) with an optionalcolor(default,go,amberorred), or theidof one of the show's saved messages. Add"flash": trueto flash the screen as it appears.- DELETE
/shows/{id}/message Takes the message off the screen.
curl -X POST https://venueclock.com/api/v1/shows/shw_Vb2QeXk1rT9mHc0a/message \
-H "Authorization: Bearer $VENUECLOCK_TOKEN" \
-H "Content-Type: application/json" \
-d '{"text": "Please wrap up", "color": "amber", "flash": true}'curl -X DELETE https://venueclock.com/api/v1/shows/shw_Vb2QeXk1rT9mHc0a/message \
-H "Authorization: Bearer $VENUECLOCK_TOKEN"Errors
Every error has the same shape: a stable error code for your code, and a message for a person.
{
"ok": false,
"error": "read_only",
"message": "This API token can read shows but not control them."
}400 invalid_jsonThe body is not a JSON object.
401 unauthorizedNo token, a mistyped token, or a revoked one.
403 read_onlyThe token can read but not control.
404 not_foundNo such endpoint, or no show with this id for this token: another account's show and a show outside the token's limit look the same.
no_timerandno_messagemean the timer or saved message is gone.409 live_limitStarting would put more rooms on air than your plan runs at once. End another show first.
409 emptyThe show has no timers yet.
413 too_largeThe body is over the size limit.
422 invalidA field is missing or out of range; the message names it.
429 rate_limitedToo many requests. Wait for
Retry-Afterseconds.500 serverOur fault. Try again; nothing changed.
Rate limits
- 300 reads and 300 commands a minute per token, each counted on its own, so polling a show never uses up the budget for your button presses. A
GETis a read; aPOSTorDELETEis a command. - 600 reads and 600 commands a minute per IP address, checked before the token, so guessing tokens is slow.
- 30 messages a minute per show, the same limit as the controller.
Past a limit the API answers 429 with Retry-After (seconds) and X-RateLimit-Limit. Reading a show once a second uses 60 reads a minute. To see changes as they happen, follow the live updates instead, and count down locally from current.endsAt.
Live updates
- GET
/api/v1/shows/{id}/events The show's state as server-sent events: the same body as reading the show, sent when you connect and again every time something changes, from any controller, screen or API client.
statecarries the show; itsidis the show'sversion. Reconnect withLast-Event-IDset to the last id you saw and you get no repeat when nothing changed.pingarrives every 15 seconds, so a connection that has heard nothing for 40 seconds is gone: reconnect.reconnectmeans we are restarting a server; connect again.revoked(the token was revoked) andgone(the show was deleted or is out of the token's reach) end the stream for good.- Opening a stream counts as one read. A token can hold up to 10 streams at once; past that the API answers
429 too_many_streams.
Follow a show
curl -N https://venueclock.com/api/v1/shows/shw_Vb2QeXk1rT9mHc0a/events \
-H "Authorization: Bearer $VENUECLOCK_TOKEN"What arrives
retry: 3000
event: state
id: 418
data: {"ok":true,"serverTime":"2026-12-02T09:42:00.000Z","show":{"id":"shw_Vb2QeXk1rT9mHc0a","version":418,...}}
event: ping
data: {"serverTime":"2026-12-02T09:42:15.000Z"}Browsers' EventSource cannot send an Authorization header, so read the stream with fetch or an SSE library that can.
From a browser
The API allows requests from any origin (Access-Control-Allow-Origin: *) and answers preflight requests, because it authenticates only with the token you send. It never reads your Venueclock sign-in cookie, so another website cannot use your session to run your show. That also means a token in a public web page is a token anyone can copy: in a page others can open, use a read-only token limited to one show.
Webhooks
Add a webhook under Account, then API and webhooks: an HTTPS address, all your shows or one, and the events you want (all of them if you pick none). Venueclock shows the signing secret, which starts with whsec_, once. Send a test event from the same page to check your receiver.
timer.startedA timer started, from the start, the next or a jump to a timer.
timer.pausedThe running timer paused.
timer.resumedA paused timer runs again.
timer.stoppedA timer stopped:
data.reasonisended(moved on, or the show ended) orreset.timer.adjustedTime was added or removed:
data.deltaMs.timer.finishedA running timer reached zero (
data.endedAt). It goes out within a few seconds of zero, and again if time is added and the timer reaches zero a second time.show.liveThe show went on air.
show.endedThe show was ended.
message.setA message went up on the speaker screen:
data.messagehas its text and colour.message.clearedThe message came down.
pingThe test event from the account page.
What arrives
One POST per event, with a JSON body. timer is the timer the event is about, or null.
POST /your/endpoint HTTP/1.1
Content-Type: application/json
User-Agent: Venueclock-Webhooks/1.0 (+https://venueclock.com/integrations/api)
Venueclock-Event: timer.started
Venueclock-Event-Id: evt_kP0f3XcQ9vRb2LmA
Venueclock-Delivery: 81723
Venueclock-Signature: t=1796203505,v1=5f8a0c...e41b{
"id": "evt_kP0f3XcQ9vRb2LmA",
"type": "timer.started",
"createdAt": "2026-12-02T09:25:05.000Z",
"show": { "id": "shw_Vb2QeXk1rT9mHc0a", "title": "Product summit, main stage", "live": true },
"timer": {
"id": "tmr_Q3kM8vYw2LpZ",
"index": 2,
"title": "Opening keynote",
"speaker": "Dana Levi",
"durationMs": 1200000
},
"data": {}
}Delivery and retries
- Answer with any
2xxwithin 5 seconds. Redirects are not followed and count as a failure. - A failed delivery is tried again after 10 seconds, 30 seconds, 2 minutes, 10 minutes, 30 minutes, 1 hour and 3 hours: 8 tries over about 5 hours. The account page lists recent deliveries and their results.
- When 20 events in a row fail every try, the webhook is paused: it stops queuing events, and the ones still waiting are dropped, so resuming it from the account page never sends a stale event. Pausing it yourself does the same.
- Delivery is at least once, and events can arrive out of order when one is retried. Use
Venueclock-Event-Id(the same asidin the body) to skip a repeat, andcreatedAtto order them. - Addresses must be public HTTPS. Venueclock refuses private, loopback, link-local and cloud metadata addresses, also when a name resolves to one at delivery time.
- An account holds up to 5 webhooks.
Verifying a webhook
Every delivery carries Venueclock-Signature: t=<unix seconds>,v1=<signature>. The signature is the hex HMAC-SHA256 of the timestamp, a dot and the raw body, keyed with your webhook's secret. To check it:
- Read the raw body before parsing it: parsing and printing JSON again changes the bytes.
- Compute HMAC-SHA256 of
t + "." + bodywith your secret, as hex. - Compare it with
v1in constant time. - Refuse timestamps more than 5 minutes from your clock, so an old delivery cannot be replayed.
Node.js
import { createHmac, timingSafeEqual } from 'node:crypto';
// rawBody: the request body exactly as received, before any JSON parsing.
export function verifyVenueclock(rawBody, header, secret, toleranceSeconds = 300) {
const parts = Object.fromEntries(
String(header ?? '')
.split(',')
.map((part) => part.trim().split('=', 2)),
);
const timestamp = Number(parts.t);
if (!Number.isInteger(timestamp) || !/^[0-9a-f]{64}$/.test(parts.v1 ?? '')) return false;
if (Math.abs(Date.now() / 1000 - timestamp) > toleranceSeconds) return false;
const expected = createHmac('sha256', secret).update(`${timestamp}.${rawBody}`).digest();
return timingSafeEqual(expected, Buffer.from(parts.v1, 'hex'));
}Express
import express from 'express';
const app = express();
app.post('/venueclock', express.raw({ type: 'application/json' }), (req, res) => {
const ok = verifyVenueclock(req.body.toString('utf8'), req.get('Venueclock-Signature'), process.env.VENUECLOCK_WEBHOOK_SECRET);
if (!ok) return res.sendStatus(400);
const event = JSON.parse(req.body);
// Deliveries can repeat: skip an event.id you have already handled.
res.sendStatus(204);
});Python
import hashlib, hmac, time
def verify_venueclock(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
parts = dict(p.strip().split("=", 1) for p in (header or "").split(",") if "=" in p)
try:
timestamp = int(parts["t"])
except (KeyError, ValueError):
return False
if abs(time.time() - timestamp) > tolerance:
return False
signed = f"{timestamp}.".encode() + raw_body
expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts.get("v1", ""))MCP server for AI agents
Venueclock runs a remote Model Context Protocol server, so an AI agent such as Claude, Cursor, GitHub Copilot or one you build on the OpenAI API can read your shows, run them and edit the rundown in plain language: "add five minutes to the keynote", "move the panel after lunch", "tell the speaker to wrap up".
- The server is at
https://venueclock.com/api/mcpand speaks Streamable HTTP. It authenticates with an API token in theAuthorizationheader, exactly like the HTTP API, and nothing else. - A read-only token gets the reading tools only. A token limited to one show reaches that show only. For an agent, a token limited to one show is the safer start.
- Every tool runs through the same code as the HTTP API: the same plan limits, checks and run log, and webhooks fire as usual. Each request to the server counts as one read, and each tool that changes a show also counts as one command, in the same per-token budgets as HTTP; the 30 messages a minute per show apply too.
- Commands act on the live show at once. Most agents ask before running a tool that changes something; keep that on for a show that is running.
list_showsThe shows the token reaches, with their ids.
get_show_stateThe live state of a show, the same as reading it over HTTP, with every row and its id.
start_timerStart or resume, or start a given row.
pause_timerPause the running timer.
reset_timerStop and reset the current timer.
next_timer, previous_timerMove through the rundown.
cue_timerMake a row the current one without starting it.
add_timeAdd or remove time on the current timer.
send_message, hide_messagePut a message on the speaker screens, or take it down.
flash_screensFlash every screen to catch the speaker’s eye.
blackout_screensBlack out the screens, or only the timer, and bring them back.
end_showEnd the show.
add_rundown_row, update_rundown_rowAdd a row, or change its title, speaker, length, fixed start time or wrap-up and red times.
move_rundown_row, delete_rundown_rowReorder the rundown, or remove a row.
Claude Code
claude mcp add --transport http venueclock https://venueclock.com/api/mcp \
--header "Authorization: Bearer $VENUECLOCK_TOKEN"Claude Desktop (claude_desktop_config.json, through mcp-remote)
{
"mcpServers": {
"venueclock": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://venueclock.com/api/mcp", "--header", "Authorization:${AUTH_HEADER}"],
"env": { "AUTH_HEADER": "Bearer vc_live_..." }
}
}
}VS Code and GitHub Copilot (.vscode/mcp.json)
{
"servers": {
"venueclock": {
"type": "http",
"url": "https://venueclock.com/api/mcp",
"headers": { "Authorization": "Bearer ${input:venueclock-token}" }
}
},
"inputs": [
{ "id": "venueclock-token", "type": "promptString", "description": "Venueclock API token", "password": true }
]
}Cursor (.cursor/mcp.json)
{
"mcpServers": {
"venueclock": {
"url": "https://venueclock.com/api/mcp",
"headers": { "Authorization": "Bearer ${env:VENUECLOCK_TOKEN}" }
}
}
}OpenAI Responses API (POST https://api.openai.com/v1/responses)
{
"model": "gpt-5",
"tools": [
{
"type": "mcp",
"server_label": "venueclock",
"server_url": "https://venueclock.com/api/mcp",
"authorization": "vc_live_...",
"require_approval": "always"
}
],
"input": "How long is left on the current timer in my main stage show?"
}ChatGPT's own connectors sign in with OAuth or without authentication, and do not take an API token yet, so connect ChatGPT through the OpenAI API as above until they do.
Plans
- The API is on every plan, Free included, because the Bitfocus Companion module runs on it. Plan limits still apply: a command that would put more rooms live than your plan runs at once gets
409 live_limit. - Webhooks need an active paid plan or pass, from the Event Pass up. When a pass ends, new events stop being sent; your webhooks stay saved for the next one. See pricing.
Not in the API yet
- OSC control. It runs on the venue network through Venueclock Bridge, not through this API.
- Changing screen options or the screen language. Set them in the controller; the state tells you the language and which screens are blacked out.
- Linking timers, scheduled starts, section headings and new days, and the scheduled-starts switch. Set them in the controller; the state shows them all.
- Editing the rundown (adding, changing or reordering timers) over HTTP. AI agents can already do it through the MCP server.
Need one of these, or something else? Write to hello@venueclock.com.