Use Programmable Media from Claude or your code
Everything you do with rooms and agents in the app can be done from your own code through the REST API, or from Claude and other MCP clients through Media's MCP server. Both use the same access token, and both run agents on your own AI keys, as the app does.
This guide covers making a token, connecting Claude Code, a first REST call, and webhooks. The API reference has every route, tool and event.
Make an access token
- Sign in and open Developers. Create a token: it starts with
pm_and is shown once. - Pick its scopes:
rooms:read,rooms:write,agents:write,outputs:read,recordings:read,recordings:write,webhooks:read,webhooks:write, oradminfor everything. - Pick when it expires: 30, 90 or 365 days, or never.
The token acts as you in the workspace that was open when you made it. Make one per app or machine, so you can revoke one without breaking the rest. A request its scopes don't cover is refused with 403 and forbidden_scope.
Agents need your AI keys under Settings > AI keys. Adding an agent through the API fails with a message naming the missing key, as it does in the app.
Connect Claude Code to the MCP server
The MCP server is at https://programmable.media/api/mcp. It speaks the Model Context Protocol over Streamable HTTP, with the same token as a bearer header. To add it to Claude Code:
claude mcp add --transport http programmable-media https://programmable.media/api/mcp \ --header "Authorization: Bearer pm_YOUR_TOKEN"
Then ask in plain words: "Create a room called Weekly sync for tomorrow at 10:00 London time and plan the meeting notes agent for it", or "Search my notes for what we decided about pricing".
The tools include create_room, schedule_room, add_agent, plan_agent, list_recipes, list_capabilities, start_recording, create_poll, get_notes, search_notes, get_attendance and create_ai_event. Each needs the same scope as its REST route; delete_room runs only with confirm: true.
Call the REST API
The base address is https://programmable.media/api/v1, JSON in and out, with Authorization: Bearer pm_... on every request. The OpenAPI 3.1 description is 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", "lobby": true, "consent": "always",
"schedule": {"start": "2026-12-03T17:00", "timeZone": "Europe/London", "durationMinutes": 60}}'Adding an agent now, from a recipe id:
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, such as meeting-notes or webinar-host. answers fills the recipe's fields. overrides can set the models, voice, language, instructions and max_minutes (1 to 240). capability_ids attaches up to five tools you connected; see giving agents your tools over MCP. To have an agent join at a scheduled room's start, use POST /rooms/{id}/planned instead.
Read what agents sent back with GET /rooms/{id}/outputs (summaries, transcripts, webinar Q&A logs), or across rooms with GET /outputs and GET /search.
Limits and errors
- Errors are
{"error": "...", "code": "..."}: a message for a person and a stable code to branch on. - Each token may make 120 requests a minute; past that, 429 with
Retry-After. - Lists are paged with
?limit=andnext_cursor. POST /api/v1/eventsaccepts anIdempotency-Keyheader, so a retried request doesn't make a second webinar.- End-to-end encrypted rooms are made in the app, because their key is made in your browser. The API shows them, and refuses to add an agent to one.
Get events with webhooks
Under Developers > Webhooks, add an https endpoint and pick its events: rooms starting and ending, people joining and leaving, agents joining or failing, notes.ready, recordings, lobby requests, closed polls, transcript edits and more. Each event is a signed JSON POST (HMAC-SHA256 with your endpoint's secret), retried on failure, with an id that stays the same across retries so you can ignore repeats.
A common pattern: on notes.ready, read the notes with the API and file them in your own system.
What people build with it
- A booking flow that creates a room for each appointment and plans a note-taker for its start.
- An events app that sets up a whole AI webinar in one call: the AI webinar guide shows the steps.
- A weekly digest built from
GET /outputs, or a search box over your notes. - Claude as an assistant that schedules your calls and answers "what did we agree last week?"
The room itself can be embedded on your own site: on a room's page, list the https sites allowed to embed it, then paste the <iframe> it gives you.
Questions
- Does the MCP server keep sessions?
- No. Each request gets one JSON reply; there are no sessions or event streams.
- Can a token be limited to reading notes?
- Yes. Give it only the outputs:read scope, and an expiry.
- Where is the full list of routes?
- On the API reference page, /docs/api, and in the OpenAPI description at /api/v1/openapi.json.