{"catalog_version":1,"app":"programmable.media","docs":"https://programmable.media/docs/api#webhooks","openapi":"https://programmable.media/api/v1/openapi.json","mcp":{"url":"https://programmable.media/api/mcp","transport":"streamable-http"},"auth":{"header":"Authorization: Bearer pm_…","key_prefix":"pm_","scopes":{"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."}},"webhooks":{"envelope":{"id":"evt_… names the event: the same on every retry and at every endpoint that gets it.","type":"The event's name.","created_at":"ISO 8601, UTC: when the event was queued. The same on every retry.","data":"By event; see events."},"headers":{"signature":["X-Programmable-Signature","Programmable-Signature"],"delivery_id":["X-Programmable-Id","Programmable-Delivery"],"event":["X-Programmable-Event","Programmable-Event"],"note":"Each pair carries the same value. The delivery id is one per endpoint per event, the same on each retry."},"signature":{"format":"t=<unix seconds>,v1=<hex> (two v1 values for 24 hours after the secret is rolled: accept either)","algorithm":"HMAC-SHA256 of \"<t>.<raw body>\", keyed with the whole signing secret as text (whsec_ included).","tolerance_seconds":300},"signing_secret":{"prefix":"whsec_","minted_by":"programmable.media","shown":"Once, in the answer that adds the endpoint."},"retries":{"attempts":6,"delays_seconds":[60,300,1800,7200,28800],"timeout_seconds":10,"success":"Any 2xx. Redirects aren't followed."},"subscribe":[{"what":"Add an endpoint (up to 20 per account); its signing secret is in the answer","methods":["POST"],"path":"/api/v1/webhooks","body":"{url, events[]}"},{"what":"The endpoints of the token's workspace","methods":["GET"],"path":"/api/v1/webhooks"},{"what":"Change an endpoint's url or events, or re-enable it","methods":["PATCH"],"path":"/api/v1/webhooks/{id}","body":"{url?, events?, enabled?}"},{"what":"Roll its signing secret (the old one signs beside it for 24 hours)","methods":["POST"],"path":"/api/v1/webhooks/{id}/roll"},{"what":"Its deliveries, and send one again","methods":["GET","POST"],"path":"/api/v1/webhooks/{id}/deliveries[/{deliveryId}/redeliver]"},{"what":"Remove an endpoint","methods":["DELETE"],"path":"/api/v1/webhooks/{id}"}],"needs":"A token with the webhooks:write scope (webhooks:read to list). Endpoints are https on port 443, at a public address.","test_event":"ping"},"events":[{"type":"room.created","description":"A room was made in the workspace (in the app, over the API, from a calendar or a schedule).","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"created_at":{"type":"string","format":"date-time"}},"required":["room","created_at"]},"name":"room.created","summary":"A room was made in the workspace (in the app, over the API, from a calendar or a schedule).","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"created_at":{"type":"string","format":"date-time"}},"required":["room","created_at"]}},{"type":"room.started","description":"A call started in one of your rooms.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"call_id":{"type":"string","format":"uuid","description":"The call's id, as GET /rooms/{id}/attendance gives it."},"started_at":{"type":"string","format":"date-time"}},"required":["room","call_id","started_at"]},"name":"room.started","summary":"A call started in one of your rooms.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"call_id":{"type":"string","format":"uuid","description":"The call's id, as GET /rooms/{id}/attendance gives it."},"started_at":{"type":"string","format":"date-time"}},"required":["room","call_id","started_at"]}},{"type":"room.ended","description":"A call ended (everyone left).","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"call_id":{"type":"string","format":"uuid","description":"The call's id, as GET /rooms/{id}/attendance gives it."},"started_at":{"type":["string","null"],"format":"date-time"},"ended_at":{"type":"string","format":"date-time"},"attendees":{"type":"integer","description":"How many people came (agents aren't people)."}},"required":["room","call_id","started_at","ended_at","attendees"]},"name":"room.ended","summary":"A call ended (everyone left).","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"call_id":{"type":"string","format":"uuid","description":"The call's id, as GET /rooms/{id}/attendance gives it."},"started_at":{"type":["string","null"],"format":"date-time"},"ended_at":{"type":"string","format":"date-time"},"attendees":{"type":"integer","description":"How many people came (agents aren't people)."}},"required":["room","call_id","started_at","ended_at","attendees"]}},{"type":"participant.joined","description":"A person joined a call (agents, recorders and stream inputs aren't people).","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"call_id":{"type":"string","format":"uuid","description":"The call's id, as GET /rooms/{id}/attendance gives it."},"participant":{"type":"object","properties":{"identity":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["host","guest","phone"],"description":"A phone caller's number is never sent."}},"required":["identity","name","kind"]},"joined_at":{"type":"string","format":"date-time"}},"required":["room","call_id","participant","joined_at"]},"name":"participant.joined","summary":"A person joined a call (agents, recorders and stream inputs aren't people).","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"call_id":{"type":"string","format":"uuid","description":"The call's id, as GET /rooms/{id}/attendance gives it."},"participant":{"type":"object","properties":{"identity":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["host","guest","phone"],"description":"A phone caller's number is never sent."}},"required":["identity","name","kind"]},"joined_at":{"type":"string","format":"date-time"}},"required":["room","call_id","participant","joined_at"]}},{"type":"participant.left","description":"A person left a call.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"call_id":{"type":"string","format":"uuid","description":"The call's id, as GET /rooms/{id}/attendance gives it."},"participant":{"type":"object","properties":{"identity":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["host","guest","phone"],"description":"A phone caller's number is never sent."}},"required":["identity","name","kind"]},"joined_at":{"type":["string","null"],"format":"date-time"},"left_at":{"type":"string","format":"date-time"}},"required":["room","call_id","participant","joined_at","left_at"]},"name":"participant.left","summary":"A person left a call.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"call_id":{"type":"string","format":"uuid","description":"The call's id, as GET /rooms/{id}/attendance gives it."},"participant":{"type":"object","properties":{"identity":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["host","guest","phone"],"description":"A phone caller's number is never sent."}},"required":["identity","name","kind"]},"joined_at":{"type":["string","null"],"format":"date-time"},"left_at":{"type":"string","format":"date-time"}},"required":["room","call_id","participant","joined_at","left_at"]}},{"type":"agent.joined","description":"An agent joined a call.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"agent":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The agent's id in the room."},"recipe":{"type":"string"},"type":{"type":"string"}},"required":["id","recipe","type"]},"joined_at":{"type":"string","format":"date-time"}},"required":["room","agent","joined_at"]},"name":"agent.joined","summary":"An agent joined a call.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"agent":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The agent's id in the room."},"recipe":{"type":"string"},"type":{"type":"string"}},"required":["id","recipe","type"]},"joined_at":{"type":"string","format":"date-time"}},"required":["room","agent","joined_at"]}},{"type":"agent.failed","description":"An agent stopped because something went wrong, with the reason.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"agent":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The agent's id in the room."},"recipe":{"type":"string"},"type":{"type":"string"}},"required":["id","recipe","type"]},"error":{"type":"string","description":"A short reason, without keys."}},"required":["room","agent","error"]},"name":"agent.failed","summary":"An agent stopped because something went wrong, with the reason.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"agent":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The agent's id in the room."},"recipe":{"type":"string"},"type":{"type":"string"}},"required":["id","recipe","type"]},"error":{"type":"string","description":"A short reason, without keys."}},"required":["room","agent","error"]}},{"type":"notes.ready","description":"A note-taker's notes or a webinar's questions arrived.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"output":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Read it with GET /api/v1/outputs/{id}."},"kind":{"type":"string","enum":["notetaker","webinar"]},"recipe":{"type":"string"}},"required":["id","kind","recipe"]}},"required":["room","output"]},"name":"notes.ready","summary":"A note-taker's notes or a webinar's questions arrived.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"output":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Read it with GET /api/v1/outputs/{id}."},"kind":{"type":"string","enum":["notetaker","webinar"]},"recipe":{"type":"string"}},"required":["id","kind","recipe"]}},"required":["room","output"]}},{"type":"recording.finished","description":"A recording finished or failed.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"recording":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["finished","failed"]},"error":{"type":["string","null"]}},"required":["id","status"]}},"required":["room","recording"]},"name":"recording.finished","summary":"A recording finished or failed.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"recording":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["finished","failed"]},"error":{"type":["string","null"]}},"required":["id","status"]}},"required":["room","recording"]}},{"type":"lobby.request","description":"Someone is waiting in a room's lobby to be let in.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"request":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","description":"The name the guest typed."},"requested_at":{"type":"string","format":"date-time"}},"required":["id","name","requested_at"]}},"required":["room","request"]},"name":"lobby.request","summary":"Someone is waiting in a room's lobby to be let in.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"request":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","description":"The name the guest typed."},"requested_at":{"type":"string","format":"date-time"}},"required":["id","name","requested_at"]}},"required":["room","request"]}},{"type":"poll.closed","description":"A poll in a call closed, with its results.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"poll":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"question":{"type":"string"},"multiple":{"type":"boolean"},"anonymous":{"type":"boolean"}},"required":["id","question","multiple","anonymous"]},"results":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"votes":{"type":"integer"}},"required":["label","votes"]}},"voters":{"type":"integer"},"ai_voters":{"type":"integer","description":"How many of the voters were AI attendees."}},"required":["options","voters","ai_voters"]},"closed_at":{"type":"string","format":"date-time"}},"required":["room","poll","results","closed_at"]},"name":"poll.closed","summary":"A poll in a call closed, with its results.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"poll":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"question":{"type":"string"},"multiple":{"type":"boolean"},"anonymous":{"type":"boolean"}},"required":["id","question","multiple","anonymous"]},"results":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"votes":{"type":"integer"}},"required":["label","votes"]}},"voters":{"type":"integer"},"ai_voters":{"type":"integer","description":"How many of the voters were AI attendees."}},"required":["options","voters","ai_voters"]},"closed_at":{"type":"string","format":"date-time"}},"required":["room","poll","results","closed_at"]}},{"type":"recording.started","description":"A recording started, with where it is being saved.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"started_at":{"type":"string","format":"date-time"},"recording":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"location":{"description":"Where the recording is, in its starter's own storage or on YouTube. Never a key or a signed link.","anyOf":[{"type":"object","properties":{"type":{"const":"bucket"},"bucket":{"type":"string"},"key":{"type":"string"}},"required":["type","bucket","key"]},{"type":"object","properties":{"type":{"const":"youtube"},"broadcast_id":{"type":["string","null"]}},"required":["type","broadcast_id"]},{"type":"null"}]}},"required":["id","location"]}},"required":["room","started_at","recording"]},"name":"recording.started","summary":"A recording started, with where it is being saved.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"started_at":{"type":"string","format":"date-time"},"recording":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"location":{"description":"Where the recording is, in its starter's own storage or on YouTube. Never a key or a signed link.","anyOf":[{"type":"object","properties":{"type":{"const":"bucket"},"bucket":{"type":"string"},"key":{"type":"string"}},"required":["type","bucket","key"]},{"type":"object","properties":{"type":{"const":"youtube"},"broadcast_id":{"type":["string","null"]}},"required":["type","broadcast_id"]},{"type":"null"}]}},"required":["id","location"]}},"required":["room","started_at","recording"]}},{"type":"recording.stopped","description":"A host stopped a recording, with where the file is in your storage.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"recording":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"location":{"description":"Where the recording is, in its starter's own storage or on YouTube. Never a key or a signed link.","anyOf":[{"type":"object","properties":{"type":{"const":"bucket"},"bucket":{"type":"string"},"key":{"type":"string"}},"required":["type","bucket","key"]},{"type":"object","properties":{"type":{"const":"youtube"},"broadcast_id":{"type":["string","null"]}},"required":["type","broadcast_id"]},{"type":"null"}]}},"required":["id","location"]},"stopped_at":{"type":"string","format":"date-time"}},"required":["room","recording","stopped_at"]},"name":"recording.stopped","summary":"A host stopped a recording, with where the file is in your storage.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"recording":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"location":{"description":"Where the recording is, in its starter's own storage or on YouTube. Never a key or a signed link.","anyOf":[{"type":"object","properties":{"type":{"const":"bucket"},"bucket":{"type":"string"},"key":{"type":"string"}},"required":["type","bucket","key"]},{"type":"object","properties":{"type":{"const":"youtube"},"broadcast_id":{"type":["string","null"]}},"required":["type","broadcast_id"]},{"type":"null"}]}},"required":["id","location"]},"stopped_at":{"type":"string","format":"date-time"}},"required":["room","recording","stopped_at"]}},{"type":"stream.started","description":"A live stream out started.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"started_at":{"type":"string","format":"date-time"},"stream":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"destination":{"type":["string","null"],"description":"The destination server's host name, never the stream key."}},"required":["id","destination"]}},"required":["room","started_at","stream"]},"name":"stream.started","summary":"A live stream out started.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"started_at":{"type":"string","format":"date-time"},"stream":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"destination":{"type":["string","null"],"description":"The destination server's host name, never the stream key."}},"required":["id","destination"]}},"required":["room","started_at","stream"]}},{"type":"transcript.edited","description":"A host renamed a speaker or changed a line in a transcript.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"output":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Read it with GET /api/v1/outputs/{id}."},"kind":{"type":"string"}},"required":["id","kind"]},"change":{"type":"object","properties":{"kind":{"type":"string","enum":["speaker","line"]},"target":{"type":"string","description":"What was changed: the speaker or the line."}},"required":["kind","target"]}},"required":["room","output","change"]},"name":"transcript.edited","summary":"A host renamed a speaker or changed a line in a transcript.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"output":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Read it with GET /api/v1/outputs/{id}."},"kind":{"type":"string"}},"required":["id","kind"]},"change":{"type":"object","properties":{"kind":{"type":"string","enum":["speaker","line"]},"target":{"type":"string","description":"What was changed: the speaker or the line."}},"required":["kind","target"]}},"required":["room","output","change"]}},{"type":"summary.regenerated","description":"A host wrote a summary again on their own AI key.","data_schema":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"output":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Read it with GET /api/v1/outputs/{id}."},"kind":{"type":"string"}},"required":["id","kind"]},"version":{"type":"string","format":"uuid","description":"This version's id."},"provider":{"type":"string"},"model":{"type":"string"}},"required":["room","output","version","provider","model"]},"name":"summary.regenerated","summary":"A host wrote a summary again on their own AI key.","data":{"type":"object","properties":{"room":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"}},"required":["id","title"]},"output":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Read it with GET /api/v1/outputs/{id}."},"kind":{"type":"string"}},"required":["id","kind"]},"version":{"type":"string","format":"uuid","description":"This version's id."},"provider":{"type":"string"},"model":{"type":"string"}},"required":["room","output","version","provider","model"]}}]}