API and MCP server
Create rooms, add AI agents and read their notes from your own code, from another app, or from Claude.
Access tokens
Sign in, open Developers and create a token. It starts with pm_, is shown once, and acts as you in the workspace that was open when you made it: keep it secret, and revoke it there when you no longer need it. Send it on every request as Authorization: Bearer pm_.... No cookies are used.
When you make a token, pick what it may do (its scopes) and when it expires (30, 90 or 365 days, or never). A request its scopes don't cover is refused with 403 and forbidden_scope; an expired token gets 401. Tokens made before scopes existed have full access (admin).
rooms:read: See rooms, their settings, schedule, planned agents, agents, polls and attendance.rooms:write: Create, change and delete rooms, set their schedule, and open polls.agents:write: Add and remove agents, plan them for a room's start, and list your capabilities.outputs:read: Read notes and reports, and search them.recordings:read: List a room's recordings and get a finished one's download link.recordings:write: Start and stop a room's recording or live stream.webhooks:read: List webhook endpoints and their deliveries.webhooks:write: Add, change, roll the secret of and delete webhook endpoints, and redeliver events. Reads them too.admin: Everything above, and anything added later.
Agents run on your own AI keys, as they do in the app: adding an agent fails with a message naming the key it needs if you haven't added it under Settings > AI keys.
REST API
Base address
JSON in and out.
https://programmable.media/api/v1GET /api/v1/rooms(rooms:read): Your rooms, newest first.POST /api/v1/rooms(rooms:write): Create a room, with its time (schedule) and settings in the same call. Returns it with its join_url.POST /api/v1/events(agents:write): Run an AI webinar in one call: a room with its time, lobby and community, a webinar host (agenda, polls, Q&A) and AI attendees planned for the start, optionally tied to a programmable.talk event. Runs on your own AI keys. Needs rooms:write as well. Send an Idempotency-Key header (1-100 of A-Z a-z 0-9 . _ : -) to make retries safe: a repeat with the same key and body returns the first answer with duplicate: true; a different body, or a repeat while the first is still running, gets 409 conflict. Keys are kept 7 days.GET /api/v1/rooms/{id}(rooms:read): One room with its settings and schedule, and the agents in it now.PATCH /api/v1/rooms/{id}(rooms:write): Change a room's settings: title, description, logo_url, lobby, audience, save_chat, consent, community. Fields left out stay as they are.DELETE /api/v1/rooms/{id}(rooms:write): Delete a room (its creator or a workspace admin). Its call, recording and agents end first.GET /api/v1/rooms/{id}/schedule(rooms:read): The room's time and description; schedule is null when it has none.PUT /api/v1/rooms/{id}/schedule(rooms:write): Set the room's time (and optionally description). Planned agents move with the start.DELETE /api/v1/rooms/{id}/schedule(rooms:write): Clear the room's time. Planned agents that haven't run are removed.GET /api/v1/rooms/{id}/planned(rooms:read): Agents planned for the room's start, with when each runs and how its last run went.POST /api/v1/rooms/{id}/planned(agents:write): Plan an agent (recipe + answers) for the room's next start. The room needs a start time.DELETE /api/v1/rooms/{id}/planned/{plannedId}(agents:write): Remove a planned agent.GET /api/v1/rooms/{id}/agents(rooms:read): Every agent asked into the room, including removed ones.POST /api/v1/rooms/{id}/agents(agents:write): Add an agent from a recipe now. It joins the call at once.DELETE /api/v1/rooms/{id}/agents/{agentId}(agents:write): Remove an agent from the call.POST /api/v1/rooms/{id}/recording(recordings:write): Start or stop the recording or live stream: {"action": "start" | "stop", "kind": "record" | "stream"}.GET /api/v1/rooms/{id}/recordings(recordings:read): The room's recordings and live streams, newest first (the last 50): kind, status, when, where each went (your bucket and key, YouTube, or the stream server's host), and whether you can get its download link. Never credentials. For those who manage the room.GET /api/v1/recordings/{id}/link(recordings:read): A finished recording's download link from your own bucket, valid for an hour, as the room page shows it. Only for recordings you started; 409 with the reason otherwise.GET /api/v1/rooms/{id}/attendance(rooms:read): The room's calls, newest first, with who came and for how long.GET /api/v1/rooms/{id}/polls(rooms:read): The room's polls, newest first, with results (and who chose what, for polls that weren't anonymous).POST /api/v1/rooms/{id}/polls(rooms:write): Open a poll in the room's call, as its host. 2 to 6 options.POST /api/v1/rooms/{id}/polls/{pollId}/close(rooms:write): Close an open poll as its host, with its results; reveal: true also shows them to everyone in the call. Send an Idempotency-Key header to make a retry return the first answer.POST /api/v1/rooms/{id}/join-links(rooms:write): A one-time guest link to the room's join page, valid for 60 seconds to 24 hours: it can prefill the guest's name and let them skip the lobby. Used once; shown once (no Idempotency-Key). Locked or ended rooms still refuse it. Guest links only.GET /api/v1/rooms/{id}/lobby(rooms:write): Who is waiting in the lobby (id, the name they typed, when they asked), oldest first, and the note on the waiting screen.POST /api/v1/rooms/{id}/lobby/{requestId}(rooms:write): Admit or turn away one waiting person. 409 when it was already answered or has expired. Send an Idempotency-Key header to make a retry return the first answer.POST /api/v1/rooms/{id}/lobby/admit-all(rooms:write): Admit the waiting requests you list (ids from GET .../lobby) that are still waiting; someone who arrived since isn't let in unseen. Returns how many were admitted. Send an Idempotency-Key header to make a retry return the first answer.POST /api/v1/rooms/{id}/control(rooms:write): Lock or unlock the room, end the call for everyone (agents leave, the lobby is cleared, the link stops working), or reopen it. Send an Idempotency-Key header to make a retry return the first answer.POST /api/v1/rooms/{id}/participants(rooms:write): Mute everyone but the hosts: {"action": "mute_all"}. Agents are left alone. Returns how many were muted. Send an Idempotency-Key header to make a retry return the first answer.POST /api/v1/rooms/{id}/participants/{identity}(rooms:write): Mute one person's microphone or remove them from the call, by identity (GET .../attendance lists who is present). 404 when they have left. Send an Idempotency-Key header to make a retry return the first answer.GET /api/v1/rooms/{id}/outputs(outputs:read): What the room's agents sent back: summaries, transcripts, webinar Q&A logs.GET /api/v1/outputs(outputs:read): Notes and reports from all your rooms, newest first (limit 1 to 100, default 50).GET /api/v1/outputs/{id}(outputs:read): One note or report by its id, as the list gives it: what a notes.ready webhook's data.output.id reads. ?format=md (text/markdown), srt (application/x-subrip), vtt (text/vtt) or txt (text/plain) answers with that file, as the notes page downloads it; subtitles and text need a transcript (409 without). JSON by default.GET /api/v1/search(outputs:read): Search your notes, best first, at most 30.GET /api/v1/recipes: The ready-made agents: fields to answer and the keys each needs.GET /api/v1/capabilities(agents:write): Your connected capabilities (MCP servers), for an agent's capability_ids.GET /api/v1/webhooks(webhooks:read): The webhook endpoints of the token's workspace, with whether each is enabled. (webhooks:write reads too.)POST /api/v1/webhooks(webhooks:write): Add an endpoint. Its signing secret is in the answer, once.PATCH /api/v1/webhooks/{id}(webhooks:write): Change an endpoint's url or events in place, or re-enable it (enabled: true) after it was disabled for failing 20 deliveries in a row.DELETE /api/v1/webhooks/{id}(webhooks:write): Delete an endpoint and its queued deliveries.POST /api/v1/webhooks/{id}/roll(webhooks:write): Roll the signing secret: the new one is in the answer, once, and the old one keeps signing beside it for 24 hours (two v1 values in the signature header).GET /api/v1/webhooks/{id}/deliveries(webhooks:read): An endpoint's deliveries, newest first (limit 1 to 100, default 25), with what was sent and what your server answered. Kept 30 days.POST /api/v1/webhooks/{id}/deliveries/{deliveryId}/redeliver(webhooks:write): Send a delivered or failed event again: a new delivery of the same body (same event id) to the same endpoint.
Every body's fields are in the OpenAPI 3.1 description at /api/v1/openapi.json.
Creating a scheduled room with its settings in one call:
curl -X POST https://programmable.media/api/v1/rooms \
-H "Authorization: Bearer pm_YOUR_TOKEN" -H "Content-Type: application/json" \
-d '{"title": "Launch webinar", "description": "Q&A after the demo", "lobby": true, "consent": "always",
"schedule": {"start": "2026-12-03T17:00", "timeZone": "Europe/London", "durationMinutes": 60}}'Adding an agent:
curl -X POST https://programmable.media/api/v1/rooms/ROOM_ID/agents \
-H "Authorization: Bearer pm_YOUR_TOKEN" -H "Content-Type: application/json" \
-d '{"recipe": "meeting-notes", "answers": {}, "overrides": {"max_minutes": 60}}'recipe is a recipe id. answers fills its fields, by key. overrides may set mode, realtime, llm, stt, tts, voice, language, instructions, max_minutes (1 to 240), avatar and cohost. capability_ids (up to 5) lets the agent use tools you connected under Settings > Capabilities.
Lists take ?limit= (default 100, at most 500; fewer for a few lists) and answer with next_cursor: pass it back as ?cursor= for the next page, until it is null.
Errors come back as {"error": "...", "code": "..."}: a message for a person, and a stable code to branch on (invalid_input, unauthorized, forbidden, forbidden_scope, not_found, conflict, payment_required, rate_limited, unavailable, internal_error). 400 is a bad request (invalid_input), 401 a missing, unknown or expired token, 403 a missing scope (forbidden_scope) or a role in the room that can't (forbidden), 404 a room or agent that isn't yours, 409 something an end-to-end encrypted room can't have, and 429 past 120 requests a minute per token (wait for Retry-After, in seconds). Every answer to a valid token says where it stands: X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds).
Calls that make something (POST /rooms, /rooms/{id}/agents, /rooms/{id}/planned, /rooms/{id}/polls and /events) take an Idempotency-Key header (1-100 letters, digits and . _ : -). A retry with the same key and body gets the first answer again with "duplicate": true, so a request that timed out never adds a second agent on your AI key. Keys are remembered for 7 days.
End-to-end encrypted rooms are made in the app, because the key is made in your browser and never reaches us. The API shows them with "e2ee": true; their join_url has no key, and adding an agent to one is refused.
MCP server
https://programmable.media/api/mcp speaks the Model Context Protocol over Streamable HTTP (protocol versions 2025-11-25, 2025-06-18, 2025-03-26), with the same token. Each request gets one JSON reply; there are no sessions or event streams. To add it to Claude Code:
Add it to Claude Code
Put your token in place of pm_YOUR_TOKEN.
claude mcp add --transport http programmable-media https://programmable.media/api/mcp \ --header "Authorization: Bearer pm_YOUR_TOKEN"
Tools (each needs the same scope as its REST route):
create_room: Create a video room, optionally with a start time (schedule) and settings (description, lobby, consent, logo_url, community), in one call. Returns its id, join link and settings. Needs the rooms:write scope.create_ai_event: Run an AI webinar in one call: a room with its start time, a webinar host (agenda with optional polls, Q&A minutes) and AI attendees, all planned for the start, optionally tied to a programmable.talk event (talk: {event, capabilityId} from list_capabilities). Every agent is marked AI; it runs on your own AI keys. Also needs rooms:write. Needs the agents:write scope.list_rooms: List your rooms, newest first, with their join links. Needs the rooms:read scope.get_room: Get one room with its settings, schedule and the agents in it now. Needs the rooms:read scope.update_room: Change a room's settings: title, description, logo_url, lobby, audience, save_chat, consent, community. Only the fields you send change. Needs the rooms:write scope.delete_room: Delete a room for good: its call ends, its agents leave, and its notes, recordings list and schedule go with it. Only its creator or a workspace admin. Send confirm: true. Needs the rooms:write scope.schedule_room: Set a room's start time (and optionally its description), or clear it with clear: true. Planned agents move with the start; clearing removes those that haven't run. Needs the rooms:write scope.add_agent: Add an AI agent to a room from a recipe (see list_recipes). It joins the call at once and runs on your own AI keys; it fails if a key it needs is missing. Needs the agents:write scope.list_agents: List the agents asked into a room, including removed ones. Needs the rooms:read scope.remove_agent: Remove an agent from a room's call. Needs the agents:write scope.plan_agent: Plan an agent for a scheduled room's next start (recipe + answers, as the room page's Plan an agent). It joins by itself when the room starts, on the planner's AI keys. For a Talk webinar: plan webinar-host with answers.talk_event and your Talk capability first, then ai-attendees. Needs the agents:write scope.list_planned_agents: List the agents planned for a room's start, with when each runs and how its last run went. Needs the rooms:read scope.remove_planned_agent: Remove a planned agent before it runs. Needs the agents:write scope.list_capabilities: List your connected capabilities (MCP servers such as programmable.talk) for an agent's capability_ids. Needs the agents:write scope.start_recording: Start recording the room's call (to your bucket or YouTube channel) or its live stream. Uses your own storage or stream settings. Needs the recordings:write scope.stop_recording: Stop the room's recording or live stream. Needs the recordings:write scope.list_recordings: List a room's recordings and live streams, newest first: kind, status, when, where each went, and whether get_recording_link can give you its file. Needs the recordings:read scope.get_recording_link: Get a download link (valid for an hour) for a finished recording in your own storage bucket. Only for recordings you started. Needs the recordings:read scope.get_attendance: Who came to a room's calls and for how long, newest call first. Needs the rooms:read scope.create_poll: Open a poll in the room's call as its host (it closes the one before). 2 to 6 options. Needs the rooms:write scope.close_poll: Close a room's open poll as its host and get its results; reveal: true also shows them to everyone in the call. Needs the rooms:write scope.create_join_link: Make a one-time guest link to a room's join page, valid for expires_in seconds (60 to 86400): it can prefill the guest's name and let them skip the lobby. Give it to one person; it works once. Needs the rooms:write scope.list_lobby: List who is waiting in a room's lobby (request id and the name they typed), oldest first, and the note on the waiting screen. Needs the rooms:write scope.answer_lobby: Admit or turn away one person waiting in a room's lobby (request_id from list_lobby). Needs the rooms:write scope.admit_all: Admit the lobby requests you list (ids from list_lobby) that are still waiting. Someone who arrived since isn't let in unseen. Needs the rooms:write scope.control_room: Lock or unlock a room, end its call for everyone (agents leave, the lobby is cleared, the join link stops working), or reopen it. Needs the rooms:write scope.moderate_participant: Mute one person's microphone or remove them from a room's call, by identity (get_attendance lists who is present). Needs the rooms:write scope.mute_all: Mute every person's microphone in a room's call except the hosts'; agents are left alone. Needs the rooms:write scope.list_recipes: List the ready-made agents (recipes): what each does, the fields to answer and the keys it needs.get_notes: Get what a room's agents produced, newest first: note-takers' summaries, action items and webinar Q&A logs. Transcripts are left out (with their line count) unless include_transcript is true. Needs the outputs:read scope.list_outputs: List the notes and reports from all your rooms, newest first (summary text, room and links; read one in full with get_output). Needs the outputs:read scope.get_output: Get one note or report by its id (from list_outputs, search_notes or a notes.ready webhook). Needs the outputs:read scope.list_polls: List a room's polls, newest first, with their results (and who chose what, for polls that weren't anonymous). Needs the rooms:read scope.search_notes: Search the notes of every room you can see (summaries, transcripts, webinar questions), best first. Quotes for a phrase, -word to leave one out. Needs the outputs:read scope.
delete_room only runs with confirm: true. Every tool has a title and annotations (read-only, destructive, idempotent). A result is in structuredContent with a one-line summary as its text (clients on protocol 2025-03-26, which has no structuredContent, get the JSON as text). get_notes leaves transcripts out unless include_transcript is true. A failed call is a result with isError: its structuredContent is {"error": "...", "code": "not_found"} and its text ends with (code: not_found), with the same codes as the REST API.
Webhooks
Under Developers > Webhooks, add an https endpoint on the public internet and pick its events. We send each event as a JSON POST. The address must use the standard https port; it must not resolve to a private, loopback or reserved address (we check when you save it and again on every send), and we don't follow redirects.
room.created: A room was made in the workspace (in the app, over the API, from a calendar or a schedule).room.started: A call started in one of your rooms.room.ended: A call ended (everyone left).participant.joined: A person joined a call (agents, recorders and stream inputs aren't people).participant.left: A person left a call.agent.joined: An agent joined a call.agent.failed: An agent stopped because something went wrong, with the reason.notes.ready: A note-taker's notes or a webinar's questions arrived.recording.finished: A recording finished or failed.lobby.request: Someone is waiting in a room's lobby to be let in.poll.closed: A poll in a call closed, with its results.recording.started: A recording started, with where it is being saved.recording.stopped: A host stopped a recording, with where the file is in your storage.stream.started: A live stream out started.transcript.edited: A host renamed a speaker or changed a line in a transcript.summary.regenerated: A host wrote a summary again on their own AI key.
The same list as data, with a JSON Schema for each event's data: /docs/api/events.json.
Every event has the same envelope. id names the event: it is the same each time the same event is sent, and at every endpoint that gets it, so you can ignore repeats:
{
"id": "evt_5f0c2a9e1b7d4c3a8e6f1d2b",
"type": "participant.joined",
"created_at": "2026-11-09T10:00:04.512Z",
"data": {
"room": { "id": "ROOM_ID", "title": "Weekly sync" },
"call_id": "CALL_ID",
"participant": { "identity": "guest-0a1b2c3d4e5f", "name": "Ana", "kind": "guest" },
"joined_at": "2026-11-09T10:00:03.000Z"
}
}data by event: room.created carries room and created_at. room.started and room.ended carry room, call_id, started_at (and ended_at and attendees, the number of people, when it ends). participant.joined and participant.left carry participant with its kind (host, guest or phone; a phone caller's number is never sent), and joined_at and left_at. agent.joined and agent.failed carry agent (id, recipe, type) and, when it failed, error. notes.ready carries output (id, kind, recipe): read it with GET /api/v1/outputs/{id}. recording.finished carries recording with status finished or failed. "Send test event" sends ping.
lobby.request carries request (id, the name the guest typed, requested_at). poll.closed carries poll (id, question, multiple, anonymous) and results: each option's label and votes, voters and ai_voters, never who voted. recording.started and recording.stopped carry recording with its location: { "type": "bucket", "bucket", "key" } in your own storage, or { "type": "youtube", "broadcast_id" }. No keys or signed links are ever sent. stream.started carries stream with the destination server's host name, never the stream key. transcript.edited carries output and change (kind speaker or line, and its target), and summary.regenerated carries output, version, provider and model: read the new text with GET /api/v1/outputs/{id}.
Each request has the headers Programmable-Event (the type), Programmable-Delivery (this delivery's id, the same on each retry of it) and Programmable-Signature: t=<unix seconds>,v1=<hex>, where the hex is the HMAC-SHA256 of <t>.<raw body> with your endpoint's signing secret (shown once, when you add the endpoint). Check it against the raw body, before parsing, and refuse a t more than 5 minutes old. The same three are also sent under the Programmable suite's names, with the same values: X-Programmable-Event, X-Programmable-Id and X-Programmable-Signature. In Node:
import { createHmac, timingSafeEqual } from "node:crypto";
// Accepts the event when any v1 value matches: after a secret is rolled there are two for a day.
function verify(secret, rawBody, header) {
const pairs = header.split(",").map((p) => p.trim().split("="));
const t = Number(pairs.find(([k]) => k === "t")?.[1]);
if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false;
const want = Buffer.from(createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex"));
return pairs.some(([k, v]) => k === "v1" && v?.length === want.length && timingSafeEqual(Buffer.from(v), want));
}Answer with any 2xx within 10 seconds. Anything else, a redirect, or no answer is a failure, and we try again after 1 min, 5 min, 30 min, 2 h, 8 h: at most 6 attempts in all (a test event is tried once). Developers > Logs shows each delivery; it is kept for 30 days.
Rolling the secret. "Roll secret" on the endpoint (or POST /api/v1/webhooks/{id}/roll) makes a new secret and shows it once. For the next 24 hours each event carries two signatures in the same header, t=<t>,v1=<new>,v1=<old>: the new secret's first, the old one's last. Accept an event when any v1 matches (as the sample above does), deploy the new secret, and the old one simply stops being sent. Rolling again within the 24 hours drops the oldest.
Editing, redelivering, and disabled endpoints. An endpoint's address and events can be changed in place (Edit, or PATCH /api/v1/webhooks/{id}; a new address is checked as a new endpoint's is). Any finished delivery can be sent again from Developers > Logs (or POST /api/v1/webhooks/{id}/deliveries/{deliveryId}/redeliver): a new delivery with its own Programmable-Delivery id and the same body, so the event's id is unchanged and a receiver that ignores repeats still can. After 20 deliveries in a row fail for good (each after all its attempts), the endpoint is disabled: nothing new is queued for it, its owner is told (bell and email, under Settings > Notifications), and a test event still goes through so you can check a fix. Re-enable it on the endpoint (or PATCH with {"enabled": true}).
One-time join links
POST /api/v1/rooms/{id}/join-links with {"name": "Ana", "expires_in": 3600, "skip_lobby": true} returns a url to the room's normal join page for one guest: the name is filled in (they can change it) and, with skip_lobby, they go straight in. It works once, until expires_at (60 seconds to 24 hours), and is shown only in that answer. A locked or ended room still refuses it. Links are for guests only: hosts join signed in, as themselves.
Embedding a room
On a room's page, list the https sites allowed to embed it, then paste the <iframe> it gives you. Only those sites can frame the call; every other site, and any room with no sites listed, is refused by the browser.
Add &name=Ana to the iframe's address to fill in the guest's name (they can change it). The snippet's allow is camera; microphone; display-capture; fullscreen; autoplay; clipboard-write.
The embedded call tells your page what happens with postMessage, only ever to the sites listed for the room (never "*"): each message is { "type": "programmable-media:<event>", "room": "<join code>" }, where the event is ready (the page has loaded), joined, left (with reason: left, ended, removed, elsewhere or lost) and ended (a host ended the call). Check the sender before you trust a message:
window.addEventListener("message", (e) => {
if (e.origin !== "https://programmable.media") return; // only the call itself
if (typeof e.data?.type !== "string" || !e.data.type.startsWith("programmable-media:")) return;
const event = e.data.type.slice("programmable-media:".length);
if (event === "left") console.log("left the call:", e.data.reason);
if (event === "ended") showThanks();
});