{"openapi":"3.1.0","info":{"title":"runofsho API","version":"1.0.0","description":"runofsho is API-first: the official web app, output screens and PHP site use exactly this API and the generated SDKs.\n\n**Envelope.** Success: `{ ok: true, data, meta }`. Error: `{ ok: false, error: { code, message, details? } }` with a machine-readable `code`.\nEvery response carries `meta.server_time`.\n\n**Auth.** `Authorization: Bearer <token>` with an API key (`rd_live_…` / `rd_test_…`), a short-lived session JWT, or an output-link token. Credentials are never accepted in URLs.\nScopes: `read` < `operate` < `manage` < `admin`; a key is team-wide or limited to one room.\n\n**Safe retries.** Send `Idempotency-Key` on every change. Send `expected_version` / `expected_timer_id` on playback commands to get `409 STALE_STATE` instead of acting on a stale screen.\n\n**Time.** Playback is stored as timestamps (`start`, `finish`, `pause`, ms since epoch). Clients compute the countdown and correct their clock with `GET /v1/time`.\n\n**Plans.** Limits come from the team's plan (`GET /v1/me/entitlements`). Going over one returns `402 PLAN_LIMIT` with `{ resource, limit, current, upgrade_url }`.\n\n**Real-time.** socket.io namespace `/v1` (two-way) and SSE streams; see the [AsyncAPI document](/asyncapi.json). **Changelog:** [/docs/changelog](/docs/changelog).","contact":{"name":"runofsho support","email":"support@runofsho.com"}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key (rd_live_… / rd_test_…), session JWT, output-link token or guest-pass token."}},"schemas":{"ActiveQuestion":{"type":"object","required":["question","to"],"properties":{"question":{"$ref":"#/components/schemas/Question"},"to":{"type":"string","enum":["all","presenter"],"description":"all: every output screen of the room. presenter: the speaker and confidence views only. This is a drawing hint; the question is in the room state either way."}},"title":"ActiveQuestion"},"Analytics":{"type":"object","required":["from","to","tolerance_ms","totals","speakers","segments","rooms","events","truncated"],"properties":{"from":{"anyOf":[{"type":"integer","description":"Start of the period (ms since Unix epoch)"},{"type":"null"}]},"to":{"anyOf":[{"type":"integer","description":"End of the period (ms since Unix epoch)"},{"type":"null"}]},"tolerance_ms":{"type":"integer","description":"How far over plan a run may end and still count as on time."},"totals":{"type":"object","required":["runs","on_time_pct","planned_ms","actual_ms","overrun_ms","underrun_ms","drift_ms","peak_connections"],"properties":{"runs":{"type":"integer","description":"Finished timer runs."},"on_time_pct":{"anyOf":[{"type":"number","description":"Share of runs that ended on time, 0 to 100 with one decimal. null without runs."},{"type":"null"}]},"planned_ms":{"type":"integer"},"actual_ms":{"type":"integer"},"overrun_ms":{"type":"integer","description":"Time over plan, summed over the runs that ran long."},"underrun_ms":{"type":"integer","description":"Time under plan, summed over the runs that ended early."},"drift_ms":{"type":"integer","description":"actual_ms minus planned_ms. Positive: behind plan."},"peak_connections":{"anyOf":[{"type":"integer","description":"Highest number of live connections in any one room. null when none were recorded."},{"type":"null"}]}}},"speakers":{"type":"array","items":{"type":"object","required":["speaker","runs","on_time_pct","planned_ms","actual_ms","overrun_ms","underrun_ms","drift_ms"],"properties":{"speaker":{"anyOf":[{"type":"string","description":"null groups the rows without a speaker."},{"type":"null"}]},"runs":{"type":"integer","description":"Finished timer runs."},"on_time_pct":{"anyOf":[{"type":"number","description":"Share of runs that ended on time, 0 to 100 with one decimal. null without runs."},{"type":"null"}]},"planned_ms":{"type":"integer"},"actual_ms":{"type":"integer"},"overrun_ms":{"type":"integer","description":"Time over plan, summed over the runs that ran long."},"underrun_ms":{"type":"integer","description":"Time under plan, summed over the runs that ended early."},"drift_ms":{"type":"integer","description":"actual_ms minus planned_ms. Positive: behind plan."}}},"description":"Worst overrun first."},"segments":{"type":"array","items":{"type":"object","required":["label","runs","on_time_pct","planned_ms","actual_ms","overrun_ms","underrun_ms","drift_ms"],"properties":{"label":{"anyOf":[{"type":"string","description":"A row label used as the segment type. null groups the rows without labels."},{"type":"null"}]},"runs":{"type":"integer","description":"Finished timer runs."},"on_time_pct":{"anyOf":[{"type":"number","description":"Share of runs that ended on time, 0 to 100 with one decimal. null without runs."},{"type":"null"}]},"planned_ms":{"type":"integer"},"actual_ms":{"type":"integer"},"overrun_ms":{"type":"integer","description":"Time over plan, summed over the runs that ran long."},"underrun_ms":{"type":"integer","description":"Time under plan, summed over the runs that ended early."},"drift_ms":{"type":"integer","description":"actual_ms minus planned_ms. Positive: behind plan."}}},"description":"Worst overrun first."},"rooms":{"type":"array","items":{"type":"object","required":["room_id","name","runs","on_time_pct","planned_ms","actual_ms","overrun_ms","underrun_ms","drift_ms","peak_connections"],"properties":{"room_id":{"type":"string"},"name":{"type":"string"},"runs":{"type":"integer","description":"Finished timer runs."},"on_time_pct":{"anyOf":[{"type":"number","description":"Share of runs that ended on time, 0 to 100 with one decimal. null without runs."},{"type":"null"}]},"planned_ms":{"type":"integer"},"actual_ms":{"type":"integer"},"overrun_ms":{"type":"integer","description":"Time over plan, summed over the runs that ran long."},"underrun_ms":{"type":"integer","description":"Time under plan, summed over the runs that ended early."},"drift_ms":{"type":"integer","description":"actual_ms minus planned_ms. Positive: behind plan."},"peak_connections":{"anyOf":[{"type":"integer"},{"type":"null"}]}}},"description":"Largest drift first."},"events":{"type":"array","items":{"type":"object","required":["event_id","name","runs","on_time_pct","planned_ms","actual_ms","overrun_ms","underrun_ms","drift_ms"],"properties":{"event_id":{"type":"string"},"name":{"type":"string"},"runs":{"type":"integer","description":"Finished timer runs."},"on_time_pct":{"anyOf":[{"type":"number","description":"Share of runs that ended on time, 0 to 100 with one decimal. null without runs."},{"type":"null"}]},"planned_ms":{"type":"integer"},"actual_ms":{"type":"integer"},"overrun_ms":{"type":"integer","description":"Time over plan, summed over the runs that ran long."},"underrun_ms":{"type":"integer","description":"Time under plan, summed over the runs that ended early."},"drift_ms":{"type":"integer","description":"actual_ms minus planned_ms. Positive: behind plan."}}}},"truncated":{"type":"boolean","description":"True when the period holds more runs than one answer covers (50,000). Narrow the dates."}},"title":"Analytics","description":"Planned against actual, from the run record."},"ApiKey":{"type":"object","required":["id","name","prefix","room_id","workspace_id","scopes","compat_enabled","last_used_at","revoked_at","created_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string","description":"First characters of the key, for identification."},"room_id":{"anyOf":[{"type":"string","description":"When set, the key only works for this room."},{"type":"null"}]},"workspace_id":{"anyOf":[{"type":"string","description":"When set, the key only reaches this client workspace: its events, rundowns and rooms."},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string","enum":["read","operate","manage","admin","compat"]}},"compat_enabled":{"type":"boolean","description":"Whether this key may use the GET compatibility layer (/v1/compat/…). Needs the compat scope."},"last_used_at":{"anyOf":[{"type":"integer","description":"Last used (ms since Unix epoch)"},{"type":"null"}]},"revoked_at":{"anyOf":[{"type":"integer","description":"Revoked (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"}},"title":"ApiKey"},"AutomationFiredEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"automation.fired"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["automation_id","name","run_id","trigger","timer_id","status","results"],"properties":{"automation_id":{"type":"string"},"name":{"type":"string"},"run_id":{"type":"string"},"trigger":{"type":"string","description":"The trigger type, or \"manual\"."},"timer_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string","const":"succeeded"},{"type":"string","const":"failed"}],"description":"failed: at least one action failed."},"results":{"type":"array","items":{"type":"object","required":["type","ok","detail"],"properties":{"type":{"type":"string","description":"The action type, in the order the rule lists them."},"ok":{"type":"boolean"},"detail":{"anyOf":[{"type":"string","description":"Why it failed, or a reference such as the delivery id."},{"type":"null"}]}}}}}}},"title":"AutomationFiredEvent","description":"An automation rule ran its actions. The events of those actions (timer.started, message.shown, …) arrive separately, before this one."},"Billing":{"type":"object","required":["enabled","email","has_customer","trial_available","subscription","grants"],"properties":{"enabled":{"type":"boolean","description":"Whether this server can take payments."},"email":{"anyOf":[{"type":"string","description":"Where receipts and reminders go."},{"type":"null"}]},"has_customer":{"type":"boolean"},"trial_available":{"type":"boolean","description":"The team never had a subscription, so Checkout can start with the free trial."},"subscription":{"anyOf":[{"type":"object","required":["status","plan","plan_name","lookup_key","interval","price_cents","addons","current_period_end","cancel_at","trial_end","grace_ends_at"],"properties":{"status":{"type":"string","enum":["active","trialing","past_due"]},"plan":{"type":"string","enum":["pro","studio","enterprise"]},"plan_name":{"type":"string"},"lookup_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"interval":{"type":"string","enum":["month","year"]},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}]},"addons":{"type":"object","required":["connection_packs","extra_seats","api_plus"],"properties":{"connection_packs":{"type":"integer"},"extra_seats":{"type":"integer"},"api_plus":{"type":"boolean","description":"Metered API usage with a higher rate limit."}}},"current_period_end":{"anyOf":[{"type":"integer","description":"End of the paid period (ms since Unix epoch)"},{"type":"null"}]},"cancel_at":{"anyOf":[{"type":"integer","description":"When it is set to end (ms since Unix epoch)"},{"type":"null"}]},"trial_end":{"anyOf":[{"type":"integer","description":"End of the trial (ms since Unix epoch)"},{"type":"null"}]},"grace_ends_at":{"anyOf":[{"type":"integer","description":"past_due only: when the team drops to Free unless the payment goes through (ms since Unix epoch)"},{"type":"null"}]}}},{"type":"null"}]},"grants":{"type":"array","items":{"type":"object","required":["id","source","plan","addons","starts_at","expires_at"],"properties":{"id":{"type":"string"},"source":{"type":"string","enum":["stripe_subscription","event_pass","trial","comp","invoice"]},"plan":{"type":"string","enum":["free","pro","studio","enterprise"]},"addons":{"type":"object","required":["connection_packs","extra_seats","api_plus"],"properties":{"connection_packs":{"type":"integer"},"extra_seats":{"type":"integer"},"api_plus":{"type":"boolean","description":"Metered API usage with a higher rate limit."}}},"starts_at":{"type":"integer","description":"When it began (ms since Unix epoch)"},"expires_at":{"anyOf":[{"type":"integer","description":"When it ends; null when it has no end (ms since Unix epoch)"},{"type":"null"}]}}},"description":"Every grant in force. The plan is the best of them."}},"title":"Billing"},"BillingPlans":{"type":"object","required":["currency","checkout_enabled","trial_days","plans","event_passes","addons","api_plus"],"properties":{"currency":{"type":"string"},"checkout_enabled":{"type":"boolean","description":"False when this server has no Stripe key: show prices, hide the buy buttons."},"trial_days":{"type":"integer","description":"Length of the free trial of a subscription (card required)."},"plans":{"type":"array","items":{"type":"object","required":["id","name","description","highlights","prices","limits","features"],"properties":{"id":{"type":"string","enum":["free","pro","studio","enterprise"]},"name":{"type":"string"},"description":{"type":"string"},"highlights":{"type":"array","items":{"type":"string"}},"prices":{"type":"array","items":{"type":"object","required":["lookup_key","interval","price_cents","currency","available"],"properties":{"lookup_key":{"type":"string","description":"Stable name of this price. The same key names the Stripe Price."},"interval":{"type":"string","enum":["none","month","year","once"]},"price_cents":{"type":"integer"},"currency":{"type":"string"},"available":{"type":"boolean","description":"False until the price exists in Stripe: it can be shown, not bought."}}},"description":"Empty for Enterprise (custom). Free has one price of 0."},"limits":{"type":"object","required":["rooms","items_per_rundown","connections_per_room","seats","api_requests_per_minute","questions_per_room"],"properties":{"rooms":{"anyOf":[{"type":"integer","description":"Rooms. Null means unlimited."},{"type":"null"}]},"items_per_rundown":{"anyOf":[{"type":"integer","description":"Timers per rundown. Null means unlimited."},{"type":"null"}]},"connections_per_room":{"type":"integer"},"seats":{"type":"integer"},"api_requests_per_minute":{"type":"integer"},"questions_per_room":{"anyOf":[{"type":"integer","description":"Audience questions per room. Null means unlimited."},{"type":"null"}]}}},"features":{"type":"object","required":["import","live_guest_passes","department_roles","workspaces","webhooks","automations","audit_log","chat","chimes","branding","prompter","elements","export","output_passwords","output_layouts","checkpoints","reports"],"properties":{"import":{"type":"boolean","description":"Import from CSV, Excel or Google Sheets (a dry run is always allowed)."},"live_guest_passes":{"type":"boolean","description":"Guest passes that update in real time. Refresh-only passes are on every plan."},"department_roles":{"type":"boolean","description":"Guest passes with the department or editor role, which may edit cells."},"workspaces":{"type":"boolean","description":"Client workspaces and API keys limited to one."},"webhooks":{"type":"boolean","description":"Outbound webhooks."},"automations":{"type":"boolean","description":"Automation rules for rooms."},"audit_log":{"type":"boolean","description":"Reading the room audit log. It is recorded on every plan."},"chat":{"type":"boolean","description":"Presenter chat."},"chimes":{"type":"boolean","description":"Audio chimes."},"branding":{"type":"boolean","description":"Viewer branding."},"prompter":{"type":"boolean","description":"The prompter."},"elements":{"type":"boolean","description":"The global elements library."},"export":{"type":"boolean","description":"Export rundowns to PDF, Word and CSV, including the PDF button on guest links."},"output_passwords":{"type":"boolean","description":"Password-protected output links."},"output_layouts":{"type":"boolean","description":"Custom output layouts (the layout builder)."},"checkpoints":{"type":"boolean","description":"Rundown checkpoints: named snapshots with diff and restore."},"reports":{"type":"boolean","description":"Reports: the sponsor-delivery report and its exports."}}}}}},"event_passes":{"type":"array","items":{"type":"object","required":["tier","name","description","duration_days","price"],"properties":{"tier":{"type":"string","enum":["pro","studio"]},"name":{"type":"string"},"description":{"type":"string"},"duration_days":{"type":"integer"},"price":{"type":"object","required":["lookup_key","interval","price_cents","currency","available"],"properties":{"lookup_key":{"type":"string","description":"Stable name of this price. The same key names the Stripe Price."},"interval":{"type":"string","enum":["none","month","year","once"]},"price_cents":{"type":"integer"},"currency":{"type":"string"},"available":{"type":"boolean","description":"False until the price exists in Stripe: it can be shown, not bought."}}}}}},"addons":{"type":"array","items":{"type":"object","required":["id","name","description","price"],"properties":{"id":{"type":"string","enum":["connection_packs","extra_seats"]},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"object","required":["lookup_key","interval","price_cents","currency","available"],"properties":{"lookup_key":{"type":"string","description":"Stable name of this price. The same key names the Stripe Price."},"interval":{"type":"string","enum":["none","month","year","once"]},"price_cents":{"type":"integer"},"currency":{"type":"string"},"available":{"type":"boolean","description":"False until the price exists in Stripe: it can be shown, not bought."}}}}}},"api_plus":{"anyOf":[{"type":"object","required":["name","description","price","per_requests","included_requests","requests_per_minute"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"object","required":["lookup_key","interval","price_cents","currency","available"],"properties":{"lookup_key":{"type":"string","description":"Stable name of this price. The same key names the Stripe Price."},"interval":{"type":"string","enum":["none","month","year","once"]},"price_cents":{"type":"integer"},"currency":{"type":"string"},"available":{"type":"boolean","description":"False until the price exists in Stripe: it can be shown, not bought."}}},"per_requests":{"type":"integer","description":"The price is for this many API requests."},"included_requests":{"type":"integer","description":"Requests in each billing month that are not charged. The price applies to what goes over."},"requests_per_minute":{"type":"integer","description":"The rate limit per API key while API Plus is on."}},"description":"The metered add-on for heavy integrations. Added to a monthly Pro or Studio subscription; there is no fixed fee."},{"type":"null"}]}},"title":"BillingPlans","description":"Everything the pricing page and the upgrade screens show. Prices and limits come from the plans table."},"BillingUsage":{"type":"object","required":["period_start","period_end","requests","billable_requests","requests_per_minute","api_plus","days"],"properties":{"period_start":{"type":"integer","description":"Start of the period (ms since Unix epoch)"},"period_end":{"type":"integer","description":"End of the period (ms since Unix epoch)"},"requests":{"type":"integer","description":"API requests in the period."},"billable_requests":{"type":"integer","description":"Of those, the ones made while API Plus was on."},"requests_per_minute":{"type":"integer","description":"The rate limit per API key right now. People working in the app, screens and guest links are not held to it."},"api_plus":{"type":"object","required":["enabled","available","per_requests","price_cents","currency","requests_per_minute","included_requests","estimated_cents"],"properties":{"enabled":{"type":"boolean"},"available":{"type":"boolean","description":"Whether it can be turned on now: the team has a monthly subscription and the price exists in Stripe."},"per_requests":{"type":"integer"},"price_cents":{"type":"integer","description":"Price per per_requests requests."},"currency":{"type":"string"},"requests_per_minute":{"type":"integer","description":"The rate limit with API Plus on."},"included_requests":{"type":"integer","description":"Billable requests in each billing month that are not charged."},"estimated_cents":{"type":"integer","description":"billable_requests beyond included_requests, at that price. An estimate."}}},"days":{"type":"array","items":{"type":"object","required":["day","requests","billable_requests"],"properties":{"day":{"type":"string","description":"UTC date, YYYY-MM-DD."},"requests":{"type":"integer"},"billable_requests":{"type":"integer"}}},"description":"The last 30 days, oldest first."}},"title":"BillingUsage"},"Branding":{"type":"object","required":["scope","settings","effective","updated_at"],"properties":{"scope":{"type":"string","enum":["team","room"]},"settings":{"$ref":"#/components/schemas/BrandingSettings"},"effective":{"$ref":"#/components/schemas/EffectiveBranding"},"updated_at":{"anyOf":[{"type":"integer","description":"Last saved (ms since Unix epoch)"},{"type":"null"}]}},"title":"Branding"},"BrandingSettings":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Colour as #rrggbb."},{"type":"null"}]},"text":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Colour as #rrggbb."},{"type":"null"}]},"accent":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Colour as #rrggbb."},{"type":"null"}]},"yellow":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Colour as #rrggbb."},{"type":"null"}]},"red":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Colour as #rrggbb."},{"type":"null"}]}}},"font":{"anyOf":[{"type":"string","enum":["inter","space-grotesk","jetbrains-mono","system","serif"]},{"type":"null"}]},"background":{"anyOf":[{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","enum":["color","image","video"]},"url":{"anyOf":[{"type":"string","maxLength":1000,"pattern":"^https://","description":"An https URL."},{"type":"null"}]}},"description":"color uses colors.background; image and video need a url."},{"type":"null"}]},"logo_url":{"anyOf":[{"type":"string","maxLength":1000,"pattern":"^https://","description":"An https URL."},{"type":"null"}]},"show":{"type":"object","properties":{"title":{"type":"boolean"},"speaker":{"type":"boolean"},"progress":{"type":"boolean"},"clock":{"type":"boolean"},"next":{"type":"boolean"},"logo":{"type":"boolean"}}}},"title":"BrandingSettings","additionalProperties":false,"description":"How output screens look. Everything is optional: a missing or null value is inherited from the level above (output link, then room, then team, then the built-in look). This is separate from the palettes of the operator screens."},"BrandingUpdatedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"branding.updated"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["scope","effective"],"properties":{"scope":{"anyOf":[{"type":"string","const":"team"},{"type":"string","const":"room"}]},"effective":{"$ref":"#/components/schemas/EffectiveBranding"}}}},"title":"BrandingUpdatedEvent","description":"The team's or the room's viewer branding changed. Carries the room's branding after team and room are applied; a screen whose output link has branding of its own should refetch GET /v1/rooms/{roomId}/branding."},"CanaryRun":{"type":"object","required":["id","started_at","duration_ms","ok","slow","steps","error"],"properties":{"id":{"type":"string"},"started_at":{"type":"integer","description":"When the run began (ms since Unix epoch)"},"duration_ms":{"type":"integer"},"ok":{"type":"boolean"},"slow":{"type":"boolean","description":"Passed, but took longer than the server's CANARY_SLOW_MS."},"steps":{"type":"array","items":{"type":"object","required":["name","ok","ms"],"properties":{"name":{"type":"string","maxLength":80,"description":"Steps starting with \"api\" and \"realtime\" feed those components on the status page."},"ok":{"type":"boolean"},"ms":{"type":"number","minimum":0},"error":{"type":"string"}}}},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"title":"CanaryRun","description":"One run of the synthetic show that exercises the public API and real-time events."},"Cell":{"type":"object","required":["value","style","rev","updated_at"],"properties":{"value":{"anyOf":[{"type":"string","maxLength":50000},{"type":"integer"},{"type":"null"}]},"style":{"anyOf":[{"$ref":"#/components/schemas/CellStyle"},{"type":"null"}]},"rev":{"type":"integer","description":"Increments on every edit of this cell; send it in expected_cell_revs."},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Cell"},"CellStyle":{"type":"object","properties":{"bold":{"type":"boolean"},"italic":{"type":"boolean"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"background":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}},"title":"CellStyle"},"ChatMessage":{"type":"object","required":["id","room_id","from","text","quick_reply_id","read_at","created_at"],"properties":{"id":{"type":"string"},"room_id":{"type":"string"},"from":{"type":"string","enum":["operator","presenter"]},"text":{"type":"string"},"quick_reply_id":{"anyOf":[{"type":"string","description":"Set when the message was a one-tap quick reply."},{"type":"null"}]},"read_at":{"anyOf":[{"type":"integer","description":"When the other side read it (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Sent (ms since Unix epoch)"}},"title":"ChatMessage"},"ChatMessageEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"chat.message"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["message","unread"],"properties":{"message":{"anyOf":[{"$ref":"#/components/schemas/ChatMessage"},{"type":"null"}]},"unread":{"$ref":"#/components/schemas/ChatUnread"}}}},"title":"ChatMessageEvent","description":"Someone wrote in the room chat. Operators and screens whose output link allows replies get the message; every other screen gets message: null, so chat text never reaches a lobby screen."},"ChatReadEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"chat.read"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["reader","read_at","unread"],"properties":{"reader":{"anyOf":[{"type":"string","const":"operator"},{"type":"string","const":"presenter"}]},"read_at":{"type":"integer","description":"When (ms since Unix epoch)"},"unread":{"$ref":"#/components/schemas/ChatUnread"}}}},"title":"ChatReadEvent","description":"One side has read the chat."},"ChatUnread":{"type":"object","required":["operator","presenter"],"properties":{"operator":{"type":"integer","description":"Messages from the presenter that the operators have not read."},"presenter":{"type":"integer","description":"Messages from the operators that the presenter has not read."}},"title":"ChatUnread"},"Checkpoint":{"type":"object","required":["id","rundown_id","name","auto","rundown_version","rows","created_by","created_at"],"properties":{"id":{"type":"string"},"rundown_id":{"type":"string"},"name":{"type":"string"},"auto":{"type":"boolean","description":"Made by the server just before a restore, so the restore can be taken back."},"rundown_version":{"type":"integer","description":"The rundown version the snapshot was taken at."},"rows":{"type":"integer","description":"Rows in the snapshot."},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"integer","description":"Taken (ms since Unix epoch)"}},"title":"Checkpoint","description":"A named snapshot of a whole rundown: rows, cells, columns, groups, name and start."},"CheckpointChange":{"type":"object","required":["op","item_id","column_id","group_id","label","before","after"],"properties":{"op":{"type":"string","description":"The same operations as the change history: item.created, item.updated, item.archived, cell.updated, items.reordered, column.*, group.*, rundown.updated."},"item_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"column_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"type":"string","description":"The row, column or group in words, for showing the change to a person."},"before":{"description":"What the checkpoint holds."},"after":{"description":"What the rundown holds now."}},"title":"CheckpointChange"},"CheckpointCreatedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"checkpoint.created"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["checkpoint"],"properties":{"checkpoint":{"$ref":"#/components/schemas/Checkpoint"}}}},"title":"CheckpointCreatedEvent","description":"A checkpoint of the rundown was taken. Carries the rundown's current version and changes nothing in it."},"CheckpointDiff":{"type":"object","required":["checkpoint","identical","summary","changes","truncated"],"properties":{"checkpoint":{"$ref":"#/components/schemas/Checkpoint"},"identical":{"type":"boolean"},"summary":{"type":"object","required":["rows_added","rows_removed","rows_changed","cells_changed","columns_changed","groups_changed","reordered","rundown_changed"],"properties":{"rows_added":{"type":"integer","description":"Rows in the rundown now that the checkpoint does not have. A restore removes them (they go to the archive)."},"rows_removed":{"type":"integer","description":"Rows of the checkpoint that are gone now. A restore brings them back."},"rows_changed":{"type":"integer"},"cells_changed":{"type":"integer"},"columns_changed":{"type":"integer"},"groups_changed":{"type":"integer"},"reordered":{"type":"boolean"},"rundown_changed":{"type":"boolean"}}},"changes":{"type":"array","items":{"$ref":"#/components/schemas/CheckpointChange"},"description":"What happened since the checkpoint, at most 500 entries."},"truncated":{"type":"boolean"}},"title":"CheckpointDiff","description":"What changed in the rundown since a checkpoint was taken."},"CheckpointRestoredEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"checkpoint.restored"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["checkpoint","saved"],"properties":{"checkpoint":{"$ref":"#/components/schemas/Checkpoint"},"saved":{"$ref":"#/components/schemas/Checkpoint"}}}},"title":"CheckpointRestoredEvent","description":"The rundown was put back to a checkpoint. The changed rows, columns and groups arrive in the usual events with the same version; saved is the checkpoint taken just before, which undoes the restore."},"Chime":{"type":"object","required":["id","name","builtin","tones"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"builtin":{"type":"boolean"},"tones":{"type":"array","items":{"type":"object","required":["hz","ms","at_ms","wave"],"properties":{"hz":{"type":"number","description":"Pitch."},"ms":{"type":"integer","description":"How long the note rings."},"at_ms":{"type":"integer","description":"When the note starts, from the start of the chime."},"wave":{"type":"string","enum":["sine","triangle","square"]}}},"description":"The notes of the sound. Built-in chimes are a few notes, so a client can play them without downloading anything."}},"title":"Chime"},"ChimePlayEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"chime.play"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["chime","reason","volume","timer_id","message_id"],"properties":{"chime":{"$ref":"#/components/schemas/Chime"},"reason":{"anyOf":[{"type":"string","const":"yellow"},{"type":"string","const":"red"},{"type":"string","const":"zero"},{"type":"string","const":"message"}]},"volume":{"type":"number","minimum":0,"maximum":1},"timer_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"title":"ChimePlayEvent","description":"Play a sound now. Sent with the event that caused it (same commit), so every screen plays it in sync; each screen decides for itself whether to make sound."},"ChimeSettings":{"type":"object","required":["yellow","red","zero","message","volume"],"properties":{"yellow":{"anyOf":[{"type":"string","maxLength":64,"description":"A chime id from GET /v1/chimes."},{"type":"null"}]},"red":{"anyOf":[{"type":"string","maxLength":64,"description":"A chime id from GET /v1/chimes."},{"type":"null"}]},"zero":{"anyOf":[{"type":"string","maxLength":64,"description":"A chime id from GET /v1/chimes."},{"type":"null"}]},"message":{"anyOf":[{"type":"string","maxLength":64,"description":"A chime id from GET /v1/chimes."},{"type":"null"}]},"volume":{"type":"number","minimum":0,"maximum":1}},"title":"ChimeSettings","description":"Which sound a room plays at the yellow and red wrap-up points, at zero and when a message appears. Null plays nothing."},"Column":{"type":"object","required":["id","rundown_id","position","type","name","department","width","options","archived_at","created_at"],"properties":{"id":{"type":"string"},"rundown_id":{"type":"string"},"position":{"type":"integer","description":"Zero-based position among all columns of the rundown, archived ones included."},"type":{"type":"string","enum":["text","rich_text","duration","start_time","over_under","select","private_notes","timestamp"],"description":"text and rich_text hold strings (rich_text is Markdown); duration holds milliseconds; start_time holds \"HH:MM[:SS]\"; select holds one of options.choices; over_under is computed by the server and private_notes shows each person's own note, so neither stores cell values; timestamp (proof of performance) holds the moment a row aired in ms since Unix epoch and is written only by POST …/items/{itemRef}/timestamp, never by a cell edit."},"name":{"type":"string"},"department":{"anyOf":[{"type":"string","description":"Department this column belongs to, e.g. \"audio\". Phones show one department at a time."},{"type":"null"}]},"width":{"type":"integer","description":"Width in pixels."},"options":{"type":"object","properties":{"choices":{"type":"array","items":{"type":"object","required":["value"],"properties":{"value":{"type":"string","minLength":1,"maxLength":60},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}}},"maxItems":60,"description":"Allowed values of a select column."},"auto_stamp":{"type":"boolean","description":"timestamp columns only. Stamp the cell by itself when the show caller takes the row live, if it is still empty."}}},"archived_at":{"anyOf":[{"type":"integer","description":"Archived; archived columns keep their cells and can be restored (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"}},"title":"Column","description":"A column of the rundown grid. Item number, title, planned start and duration are item fields, not columns."},"ColumnCreate":{"type":"object","required":["type","name"],"properties":{"type":{"type":"string","enum":["text","rich_text","duration","start_time","over_under","select","private_notes","timestamp"],"description":"text and rich_text hold strings (rich_text is Markdown); duration holds milliseconds; start_time holds \"HH:MM[:SS]\"; select holds one of options.choices; over_under is computed by the server and private_notes shows each person's own note, so neither stores cell values; timestamp (proof of performance) holds the moment a row aired in ms since Unix epoch and is written only by POST …/items/{itemRef}/timestamp, never by a cell edit."},"name":{"type":"string","minLength":1,"maxLength":100},"department":{"anyOf":[{"type":"string","minLength":1,"maxLength":50},{"type":"null"}]},"width":{"type":"integer","minimum":60,"maximum":800},"options":{"type":"object","properties":{"choices":{"type":"array","items":{"type":"object","required":["value"],"properties":{"value":{"type":"string","minLength":1,"maxLength":60},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}}},"maxItems":60,"description":"Allowed values of a select column."},"auto_stamp":{"type":"boolean","description":"timestamp columns only. Stamp the cell by itself when the show caller takes the row live, if it is still empty."}}},"position":{"type":"integer","minimum":0,"description":"Zero-based insert position. Omit to append."}},"title":"ColumnCreate"},"ColumnsChangedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"columns.changed"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["columns"],"properties":{"columns":{"type":"array","items":{"$ref":"#/components/schemas/Column"}}}}},"title":"ColumnsChangedEvent","description":"Columns were added, changed, reordered, archived, restored or deleted. Carries every column in order."},"ColumnUpdate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"department":{"anyOf":[{"type":"string","minLength":1,"maxLength":50},{"type":"null"}]},"width":{"type":"integer","minimum":60,"maximum":800},"options":{"type":"object","properties":{"choices":{"type":"array","items":{"type":"object","required":["value"],"properties":{"value":{"type":"string","minLength":1,"maxLength":60},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}}},"maxItems":60,"description":"Allowed values of a select column."},"auto_stamp":{"type":"boolean","description":"timestamp columns only. Stamp the cell by itself when the show caller takes the row live, if it is still empty."}}}},"title":"ColumnUpdate","description":"A column's type cannot change; add a new column instead."},"CompatResult":{"type":"object","required":["action","room_id","version","message","running","timer_id","timer_name","remaining_ms","blackout","on_air","message_id","service","holding"],"properties":{"action":{"type":"string"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after the command."},"message":{"type":"string","description":"One line for a button label or a log, e.g. \"Keynote is running\"."},"running":{"type":"boolean"},"timer_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"timer_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"remaining_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"blackout":{"type":"boolean"},"on_air":{"type":"boolean"},"message_id":{"anyOf":[{"type":"string","description":"The message on screen, if any."},{"type":"null"}]},"service":{"anyOf":[{"type":"string","description":"Label of the service time the room is running, when the rundown has service times."},{"type":"null"}]},"holding":{"type":"boolean","description":"Whether the screens show the holding screen."}},"title":"CompatResult","description":"A flat summary of the room after a compat command, easy to read from vMix or Companion."},"Connection":{"type":"object","required":["id","room_id","transport","kind","name","view","link_id","counts_toward_limit","connected_at","latency_ms"],"properties":{"id":{"type":"string"},"room_id":{"type":"string"},"transport":{"type":"string","enum":["socket","sse"]},"kind":{"type":"string","enum":["key","jwt","output","trial"],"description":"The kind of credential the device connected with."},"name":{"anyOf":[{"type":"string","description":"Device name: the output link's identifier, or the name the client gave when it subscribed."},{"type":"null"}]},"view":{"anyOf":[{"type":"string","description":"Output view, for output links."},{"type":"null"}]},"link_id":{"anyOf":[{"type":"string","description":"The output link the device opened, so you can see who is using a link before turning it off. Null for other credentials."},{"type":"null"}]},"counts_toward_limit":{"type":"boolean","description":"Viewers (read-only access) count toward the plan's connections-per-room limit. Operators and Q&A moderators do not."},"connected_at":{"type":"integer","description":"Connected since (ms since Unix epoch)"},"latency_ms":{"anyOf":[{"type":"integer","description":"Round-trip time to the device, measured every 15 s over the socket. Null for SSE streams."},{"type":"null"}]}},"title":"Connection","description":"A device that is connected to a room right now."},"ConnectionClosedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"connection.closed"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}},"title":"ConnectionClosedEvent","description":"Sent to one device just before the server closes its connection (an operator disconnected it). Transient. Clients should stop reconnecting and show the message."},"ConnectionsChangedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"connections.changed"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["total","viewers"],"properties":{"total":{"type":"integer","description":"All live connections, operators included."},"viewers":{"type":"integer","description":"Connections that count toward the plan limit."}}}},"title":"ConnectionsChangedEvent","description":"A device connected to or left the room. Transient: it is not part of the versioned history (version is always 0) and is never replayed."},"ControlAction":{"anyOf":[{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","const":"playback"},"action":{"type":"string","enum":["start","stop","toggle","reset","next","previous","select","jump","add-time","subtract-time","start-fresh"]},"args":{"type":"object","patternProperties":{"^.*$":{}},"description":"The same body as the playback endpoint of that name."}},"title":"PlaybackAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","const":"message"},"action":{"type":"string","enum":["show","show_preset","hide"]},"message_id":{"type":"string","description":"For show; optional for hide (hides only if this one is on screen)."},"preset_id":{"type":"string","description":"For show_preset."},"focus":{"type":"boolean"}},"title":"MessageAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","const":"display"},"action":{"type":"string","enum":["flash","stop_flash","blackout","on_air"]},"count":{"type":"integer","minimum":1,"maximum":999,"description":"For flash. Default 3."},"enabled":{"type":"boolean","description":"For blackout and on_air."}},"title":"DisplayAction"}],"title":"ControlAction","description":"What a button does: the playback, message and display actions of automations. For display blackout and on_air, leave \"enabled\" out to make the button a toggle."},"ControlBinding":{"type":"object","required":["source","input","action"],"properties":{"source":{"type":"string","enum":["streamdeck","midi","osc"],"description":"streamdeck: a key of an Elgato Stream Deck or pedal. midi: a note, controller or program change. osc: an OSC address."},"input":{"type":"string","minLength":1,"maxLength":128,"description":"streamdeck: \"key:<n>\" (0 is the top-left key). midi: \"note:<channel>:<number>\", \"cc:<channel>:<number>\" or \"pc:<channel>:<number>\", channel 1 to 16 or * for any. osc: the address, e.g. \"/runofsho/next\"."},"label":{"type":"string","maxLength":24,"description":"Shown on the key. Left out, the action names itself."},"action":{"$ref":"#/components/schemas/ControlAction"}},"title":"ControlBinding"},"ControlMap":{"type":"object","required":["room_id","bindings","is_default","updated_at"],"properties":{"room_id":{"type":"string"},"bindings":{"type":"array","items":{"$ref":"#/components/schemas/ControlBinding"}},"is_default":{"type":"boolean","description":"True until the room saves a map of its own: these are the built-in bindings."},"updated_at":{"anyOf":[{"type":"integer","description":"Last saved (ms since Unix epoch)"},{"type":"null"}]}},"title":"ControlMap","description":"Which hardware input does what in a room. One map serves every Stream Deck, MIDI controller and OSC sender pointed at the room."},"ControlsUpdatedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"controls.updated"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["is_default","bindings"],"properties":{"is_default":{"type":"boolean"},"bindings":{"type":"integer","description":"How many bindings the map now has."}}}},"title":"ControlsUpdatedEvent","description":"The room's hardware control map was saved or reset. Controllers with a Stream Deck or MIDI device attached reload GET /v1/rooms/{roomId}/controls."},"ControlTriggerResult":{"type":"object","required":["matched","binding","state"],"properties":{"matched":{"type":"boolean","description":"False when no binding has this input; nothing happened."},"binding":{"anyOf":[{"$ref":"#/components/schemas/ControlBinding"},{"type":"null"}]},"state":{"$ref":"#/components/schemas/RoomState"}},"title":"ControlTriggerResult"},"DeliveryReport":{"type":"object","required":["rundown","generated_at","label","columns","summary","rows"],"properties":{"rundown":{"type":"object","required":["id","name","start_at","timezone"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"start_at":{"anyOf":[{"type":"integer","description":"Planned show start (ms since Unix epoch)"},{"type":"null"}]},"timezone":{"type":"string"}}},"generated_at":{"type":"integer","description":"When the report was made (ms since Unix epoch)"},"label":{"anyOf":[{"type":"string","description":"The label the report was filtered by."},{"type":"null"}]},"columns":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"description":"The timestamp columns of the rundown."},"summary":{"type":"object","required":["rows","delivered","missing"],"properties":{"rows":{"type":"integer"},"delivered":{"type":"integer"},"missing":{"type":"integer"}}},"rows":{"type":"array","items":{"type":"object","required":["item_id","number","name","speaker","group","labels","planned_start","planned_duration_ms","actual_start","actual_end","actual_ms","stamps","delivered"],"properties":{"item_id":{"type":"string"},"number":{"type":"string"},"name":{"type":"string"},"speaker":{"type":"string"},"group":{"anyOf":[{"type":"string","description":"Title of the group the row is in."},{"type":"null"}]},"labels":{"type":"array","items":{"type":"string"}},"planned_start":{"anyOf":[{"type":"integer","description":"Planned start (ms since Unix epoch)"},{"type":"null"}]},"planned_duration_ms":{"type":"integer"},"actual_start":{"anyOf":[{"type":"integer","description":"When the show caller took the row live (ms since Unix epoch)"},{"type":"null"}]},"actual_end":{"anyOf":[{"type":"integer","description":"When the show caller left it (ms since Unix epoch)"},{"type":"null"}]},"actual_ms":{"anyOf":[{"type":"integer","description":"How long the row really ran."},{"type":"null"}]},"stamps":{"type":"array","items":{"type":"object","required":["column_id","column_name","stamped_at","stamped_by","source"],"properties":{"column_id":{"type":"string"},"column_name":{"type":"string"},"stamped_at":{"type":"integer","description":"Air time (ms since Unix epoch)"},"stamped_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"string","enum":["manual","auto"]}}}},"delivered":{"type":"boolean","description":"The row has at least one stamp."}}}}},"title":"DeliveryReport","description":"Sponsor delivery: which rows aired, exactly when, and for how long. Built from the timestamp columns and the show caller's actual times."},"DisplayBlackoutEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"display.blackout"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}}},"title":"DisplayBlackoutEvent","description":"Blackout was turned on or off."},"DisplayFlashEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"display.flash"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["count"],"properties":{"count":{"type":"integer","minimum":0,"maximum":999}}}},"title":"DisplayFlashEvent","description":"Flash the output screens. count 0 stops flashing."},"DisplayOnAirEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"display.on_air"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}}},"title":"DisplayOnAirEvent","description":"On-air was turned on or off."},"DuplicatedEvent":{"type":"object","required":["event","rundowns"],"properties":{"event":{"$ref":"#/components/schemas/Event"},"rundowns":{"type":"array","items":{"$ref":"#/components/schemas/Rundown"}}},"title":"DuplicatedEvent"},"EffectiveBranding":{"type":"object","required":["colors","font","background","logo_url","show","watermark"],"properties":{"colors":{"type":"object","required":["background","text","accent","yellow","red"],"properties":{"background":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Colour as #rrggbb."},{"type":"null"}]},"text":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Colour as #rrggbb."},{"type":"null"}]},"accent":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Colour as #rrggbb."},{"type":"null"}]},"yellow":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Colour as #rrggbb."},{"type":"null"}]},"red":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Colour as #rrggbb."},{"type":"null"}]}}},"font":{"anyOf":[{"type":"string","enum":["inter","space-grotesk","jetbrains-mono","system","serif"]},{"type":"null"}]},"background":{"anyOf":[{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","enum":["color","image","video"]},"url":{"anyOf":[{"type":"string","maxLength":1000,"pattern":"^https://","description":"An https URL."},{"type":"null"}]}},"description":"color uses colors.background; image and video need a url."},{"type":"null"}]},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"show":{"type":"object","required":["title","speaker","progress","clock","next","logo"],"properties":{"title":{"type":"boolean"},"speaker":{"type":"boolean"},"progress":{"type":"boolean"},"clock":{"type":"boolean"},"next":{"type":"boolean"},"logo":{"type":"boolean"}}},"watermark":{"type":"boolean","description":"True when the team's plan has no viewer branding (Free and trial rooms): output screens show a small runofsho mark, and saved branding, including the room's own logo, is kept but not shown. False on Pro, Studio, Enterprise and Event Passes."}},"title":"EffectiveBranding","description":"Branding after every level is applied. Null means the built-in look."},"Element":{"type":"object","required":["id","name","folder","tags","current_version","payload","used_by","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string","description":"The name in the library. The row's own name is payload.name."},"folder":{"type":"string","description":"Empty for the top level."},"tags":{"type":"array","items":{"type":"string"}},"current_version":{"type":"integer","description":"The newest version. Rows carrying an older one have an update available."},"payload":{"$ref":"#/components/schemas/ElementPayload"},"used_by":{"type":"integer","description":"How many rows are linked to this element."},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Element","description":"A reusable row in the team's library."},"ElementCell":{"type":"object","required":["column","type","value"],"properties":{"column":{"type":"string","minLength":1,"maxLength":120,"description":"The name of the column this value belongs to. On insert it goes to the rundown column with the same name, or the one given in column_mapping."},"type":{"type":"string","enum":["text","rich_text","duration","start_time","select"]},"value":{"anyOf":[{"anyOf":[{"type":"string","maxLength":100000},{"type":"number"}]},{"type":"null"}]}},"title":"ElementCell"},"ElementConflict":{"type":"object","required":["rundown_id","item_id","item_name","fields","reason"],"properties":{"rundown_id":{"type":"string"},"item_id":{"type":"string"},"item_name":{"type":"string"},"fields":{"type":"array","items":{"type":"string"},"description":"Fields left as they are in the rundown. Empty when the row was skipped whole."},"reason":{"type":"string","enum":["overridden","locked"]}},"title":"ElementConflict"},"ElementPayload":{"type":"object","required":["kind","name","speaker","notes","duration_ms","row_color","wrap_up_yellow_s","wrap_up_red_s","cells"],"properties":{"kind":{"type":"string","enum":["item","header","note"]},"name":{"type":"string","minLength":1,"maxLength":300},"speaker":{"type":"string","maxLength":200},"notes":{"type":"string","maxLength":20000},"duration_ms":{"type":"integer","minimum":0,"maximum":86400000},"row_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"wrap_up_yellow_s":{"type":"integer","minimum":0,"maximum":86400},"wrap_up_red_s":{"type":"integer","minimum":0,"maximum":86400},"cells":{"type":"array","items":{"$ref":"#/components/schemas/ElementCell"},"maxItems":50}},"title":"ElementPayload","description":"What an element puts into a row: the row's own fields and its cells by column name."},"ElementPublishedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"element.published"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["element_id","element_name","version","updated","conflicts"],"properties":{"element_id":{"type":"string"},"element_name":{"type":"string"},"version":{"type":"integer"},"updated":{"type":"array","items":{"type":"string"},"description":"Ids of the rows brought to this version."},"conflicts":{"type":"array","items":{"type":"object","required":["item_id","fields","reason"],"properties":{"item_id":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"reason":{"type":"string","enum":["overridden","locked"]}}}}}}},"title":"ElementPublishedEvent","description":"A library element was published to rows of this rundown. The changed rows arrive in items.changed with the same version; this says which element and version, and which rows kept local edits."},"ElementPublishResult":{"type":"object","required":["element_id","version","updated","conflicts","up_to_date","dry_run"],"properties":{"element_id":{"type":"string"},"version":{"type":"integer"},"updated":{"type":"array","items":{"type":"object","required":["rundown_id","item_id","fields"],"properties":{"rundown_id":{"type":"string"},"item_id":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}}}},"description":"Rows brought to this version, with the fields that changed."},"conflicts":{"type":"array","items":{"$ref":"#/components/schemas/ElementConflict"}},"up_to_date":{"type":"integer","description":"Linked rows that already carried this version."},"dry_run":{"type":"boolean"}},"title":"ElementPublishResult"},"ElementUse":{"type":"object","required":["rundown_id","rundown_name","item_id","item_name","version","locked","overrides"],"properties":{"rundown_id":{"type":"string"},"rundown_name":{"type":"string"},"item_id":{"type":"string"},"item_name":{"type":"string"},"version":{"type":"integer","description":"The element version this row carries."},"locked":{"type":"boolean"},"overrides":{"type":"array","items":{"type":"string"},"description":"Fields edited in the rundown since the row took its version, for example \"name\" or \"cells.Audio\"."}},"title":"ElementUse"},"ElementVersion":{"type":"object","required":["element_id","version","payload","note","published_at","published_by"],"properties":{"element_id":{"type":"string"},"version":{"type":"integer"},"payload":{"$ref":"#/components/schemas/ElementPayload"},"note":{"type":"string"},"published_at":{"type":"integer","description":"When this version was saved (ms since Unix epoch)"},"published_by":{"anyOf":[{"type":"string"},{"type":"null"}]}},"title":"ElementVersion"},"Entitlements":{"type":"object","required":["plan","plan_name","limits","features","usage","locked","plan_expires_at","api_plus","sources","upgrade_url"],"properties":{"plan":{"type":"string","enum":["free","pro","studio","enterprise"]},"plan_name":{"type":"string"},"limits":{"type":"object","required":["rooms","items_per_rundown","connections_per_room","seats","api_requests_per_minute","questions_per_room"],"properties":{"rooms":{"anyOf":[{"type":"integer","description":"Rooms. Null means unlimited."},{"type":"null"}]},"items_per_rundown":{"anyOf":[{"type":"integer","description":"Timers per rundown. Null means unlimited."},{"type":"null"}]},"connections_per_room":{"type":"integer","description":"Connected viewer screens per room."},"seats":{"type":"integer","description":"Team members. Guests are not counted."},"api_requests_per_minute":{"type":"integer","description":"API requests per minute per API key. Sessions of signed-in people, output links, guest links and trial rooms have a fixed limit of their own that does not depend on the plan."},"questions_per_room":{"anyOf":[{"type":"integer","description":"Audience questions a room can hold at once. Null means unlimited."},{"type":"null"}]}}},"features":{"type":"object","required":["import","live_guest_passes","department_roles","workspaces","webhooks","automations","audit_log","chat","chimes","branding","prompter","elements","export","output_passwords","output_layouts","checkpoints","reports"],"properties":{"import":{"type":"boolean","description":"Import from CSV, Excel or Google Sheets (a dry run is always allowed)."},"live_guest_passes":{"type":"boolean","description":"Guest passes that update in real time. Refresh-only passes are on every plan."},"department_roles":{"type":"boolean","description":"Guest passes with the department or editor role, which may edit cells."},"workspaces":{"type":"boolean","description":"Client workspaces and API keys limited to one."},"webhooks":{"type":"boolean","description":"Outbound webhooks."},"automations":{"type":"boolean","description":"Automation rules for rooms."},"audit_log":{"type":"boolean","description":"Reading the room audit log. It is recorded on every plan."},"chat":{"type":"boolean","description":"Presenter chat."},"chimes":{"type":"boolean","description":"Audio chimes."},"branding":{"type":"boolean","description":"Viewer branding."},"prompter":{"type":"boolean","description":"The prompter."},"elements":{"type":"boolean","description":"The global elements library."},"export":{"type":"boolean","description":"Export rundowns to PDF, Word and CSV, including the PDF button on guest links."},"output_passwords":{"type":"boolean","description":"Password-protected output links."},"output_layouts":{"type":"boolean","description":"Custom output layouts (the layout builder)."},"checkpoints":{"type":"boolean","description":"Rundown checkpoints: named snapshots with diff and restore."},"reports":{"type":"boolean","description":"Reports: the sponsor-delivery report and its exports."}}},"usage":{"type":"object","required":["rooms","items_max"],"properties":{"rooms":{"type":"integer"},"items_max":{"type":"integer","description":"Timers in the team's largest rundown."}}},"locked":{"type":"object","required":["rooms"],"properties":{"rooms":{"type":"array","items":{"type":"string"},"description":"Rooms over the plan limit. They can be viewed but not operated; nothing is deleted."}}},"plan_expires_at":{"anyOf":[{"type":"integer","description":"When the current plan ends, when it has an end: an Event Pass, or a subscription in its grace period (ms since Unix epoch)"},{"type":"null"}]},"api_plus":{"type":"boolean","description":"The metered API Plus add-on is on: limits.api_requests_per_minute is raised and API requests are billed by use (GET /v1/billing/usage)."},"sources":{"type":"array","items":{"type":"string","enum":["stripe_subscription","event_pass","trial","comp","invoice"]},"description":"Where the current plan comes from. invoice: a term billed by invoice."},"upgrade_url":{"type":"string"}},"title":"Entitlements","description":"The team's plan, its limits, current usage and anything locked by the plan."},"EntitlementsUpdatedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"entitlements.updated"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["plan","plan_name","plan_expires_at"],"properties":{"plan":{"type":"string","enum":["free","pro","studio","enterprise"]},"plan_name":{"type":"string"},"plan_expires_at":{"anyOf":[{"type":"integer","description":"When the plan ends, when it has an end (ms since Unix epoch)"},{"type":"null"}]}}}},"title":"EntitlementsUpdatedEvent","description":"The team's plan changed (a payment, an upgrade, a cancellation, a comp). Sent to every room of the team. Refetch GET /v1/me/entitlements for limits and usage. Transient: version is 0 and it is never replayed."},"Error":{"type":"object","required":["ok","error"],"properties":{"ok":{"type":"boolean","const":false},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["VALIDATION_FAILED","UNAUTHENTICATED","PLAN_LIMIT","FORBIDDEN_SCOPE","NOT_FOUND","ROOM_NOT_FOUND","TIMER_NOT_FOUND","MESSAGE_NOT_FOUND","PRESET_NOT_FOUND","ELEMENT_NOT_FOUND","TEMPLATE_NOT_FOUND","EXPORT_NOT_FOUND","EXPORT_PRESET_NOT_FOUND","CONNECTION_NOT_FOUND","RUNDOWN_NOT_FOUND","COLUMN_NOT_FOUND","GROUP_NOT_FOUND","EVENT_NOT_FOUND","API_KEY_NOT_FOUND","STALE_STATE","IDEMPOTENCY_CONFLICT","ALREADY_SUBSCRIBED","CONFLICT","ITEM_LOCKED","INVALID_TRANSITION","RATE_LIMITED","BILLING_UNAVAILABLE","INTERNAL"],"description":"Machine-readable error code."},"message":{"type":"string"},"details":{"type":"object","patternProperties":{"^.*$":{}}}}}},"title":"Error","description":"Error envelope returned with every non-2xx status."},"Event":{"type":"object","required":["id","name","timezone","start_date","end_date","workspace_id","archived_at","created_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"timezone":{"type":"string"},"start_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","examples":["2026-11-21"]},{"type":"null"}]},"end_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","examples":["2026-11-21"]},{"type":"null"}]},"workspace_id":{"anyOf":[{"type":"string","description":"The client workspace this event belongs to; null for the team's own events."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"integer","description":"When the event was archived. Archived events are read-only (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"}},"title":"Event","description":"An event (project) that contains rundowns."},"ExportCompletedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"export.completed"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["job_id","format","status","file_name","error","created_by"],"properties":{"job_id":{"type":"string"},"format":{"type":"string","enum":["pdf","docx","csv"]},"status":{"type":"string","enum":["completed","failed"]},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"title":"ExportCompletedEvent","description":"An export of this rundown finished or failed. Fetch the job for its download link; links are never sent in events. Carries the rundown's current version and changes nothing in it. Exports made from guest links are not announced."},"ExportJob":{"type":"object","required":["id","rundown_id","format","options","status","file_name","size_bytes","error","download_url","download_expires_at","expires_at","created_at","completed_at"],"properties":{"id":{"type":"string"},"rundown_id":{"type":"string"},"format":{"type":"string","enum":["pdf","docx","csv"],"description":"pdf: the rundown as a printable table. docx: a Word script, one section per row. csv: the table as comma-separated values."},"options":{"$ref":"#/components/schemas/ExportOptions"},"status":{"type":"string","enum":["queued","processing","completed","failed"]},"file_name":{"anyOf":[{"type":"string","description":"Suggested file name, set when the file is ready."},{"type":"null"}]},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}]},"error":{"anyOf":[{"type":"string","description":"Why the export failed."},{"type":"null"}]},"download_url":{"anyOf":[{"type":"string","description":"Signed link to the file, present once status is completed. It needs no Authorization header and stops working at download_expires_at; fetch the job again for a fresh one."},{"type":"null"}]},"download_expires_at":{"anyOf":[{"type":"integer","description":"When download_url stops working (ms since Unix epoch)"},{"type":"null"}]},"expires_at":{"type":"integer","description":"When the file is deleted (ms since Unix epoch)"},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"completed_at":{"anyOf":[{"type":"integer","description":"Finished, successfully or not (ms since Unix epoch)"},{"type":"null"}]}},"title":"ExportJob","description":"One export of a rundown. Exports are made in the background: create one, then wait for export.completed or poll the job."},"ExportOptions":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string","maxLength":64},"maxItems":60,"description":"What to print and in which order: the built-in fields number, start, end, duration, name, speaker, notes, and column ids. Defaults to number, start, duration, name, speaker and every column of the rundown. Private notes are never exported. Ignored by docx."},"orientation":{"type":"string","enum":["portrait","landscape"],"description":"pdf only. Default landscape."},"paper":{"type":"string","enum":["letter","a4","legal","tabloid","a3"],"description":"pdf and docx. Default letter."},"page_breaks":{"type":"string","enum":["none","groups"],"description":"groups starts a new page at every group and header row. Default none."},"repeat_headers":{"type":"boolean","description":"pdf only. Print the column headings again at the top of every page. Default true."},"include_floating":{"type":"boolean","description":"Include floating rows. Default false."},"script_column_id":{"type":"string","description":"docx only. The rich text column to print as the script. Defaults to the first one."},"font_size":{"type":"integer","minimum":6,"maximum":14,"description":"pdf only. Body text size in points. Default 9."},"content":{"type":"string","enum":["rundown","delivery","timing"],"description":"What to export. rundown (default): the rundown itself. delivery: the sponsor-delivery report. timing: the planned-vs-actual report. Both reports export as pdf or csv and need a plan with reports; columns and script_column_id are ignored."},"label":{"type":"string","maxLength":60,"description":"delivery only. Report on the rows carrying this label, stamped or not."}},"title":"ExportOptions","additionalProperties":false},"ExportPreset":{"type":"object","required":["id","name","format","options","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"format":{"type":"string","enum":["pdf","docx","csv"],"description":"pdf: the rundown as a printable table. docx: a Word script, one section per row. csv: the table as comma-separated values."},"options":{"$ref":"#/components/schemas/ExportOptions"},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"ExportPreset","description":"A saved set of export options, shared by the team. Column ids in a preset that a rundown does not have are skipped."},"Group":{"type":"object","required":["id","rundown_id","title","target_duration_ms","collapsed_default","color","created_at"],"properties":{"id":{"type":"string"},"rundown_id":{"type":"string"},"title":{"type":"string"},"target_duration_ms":{"anyOf":[{"type":"integer","minimum":0,"description":"Planned length of the whole group; timing reports over/under against it."},{"type":"null"}]},"collapsed_default":{"type":"boolean"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"}},"title":"Group","description":"A titled block of rows with rolled-up timing. Items point at it with group_id."},"GroupCreate":{"type":"object","required":["title"],"properties":{"title":{"type":"string","minLength":1,"maxLength":200},"item_ids":{"type":"array","items":{"type":"string"},"maxItems":500,"description":"Items to put in the group. They leave any group they were in."},"target_duration_ms":{"anyOf":[{"type":"integer","minimum":0,"maximum":604800000},{"type":"null"}]},"collapsed_default":{"type":"boolean"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}},"title":"GroupCreate"},"GroupsChangedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"groups.changed"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["groups"],"properties":{"groups":{"type":"array","items":{"$ref":"#/components/schemas/Group"}}}}},"title":"GroupsChangedEvent","description":"Groups were added, changed or deleted. Carries every group."},"GroupTiming":{"type":"object","required":["group_id","item_count","planned_start","planned_end","duration_ms","target_duration_ms","over_under_ms"],"properties":{"group_id":{"type":"string"},"item_count":{"type":"integer"},"planned_start":{"anyOf":[{"type":"integer","description":"Start of the first row (ms since Unix epoch)"},{"type":"null"}]},"planned_end":{"anyOf":[{"type":"integer","description":"End of the last row (ms since Unix epoch)"},{"type":"null"}]},"duration_ms":{"type":"integer","description":"Sum of the durations that count (not floating, not muted)."},"target_duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"over_under_ms":{"anyOf":[{"type":"integer","description":"duration_ms minus target_duration_ms: positive is over."},{"type":"null"}]}},"title":"GroupTiming"},"GroupUpdate":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"item_ids":{"type":"array","items":{"type":"string"},"maxItems":500,"description":"Items to put in the group. They leave any group they were in."},"target_duration_ms":{"anyOf":[{"type":"integer","minimum":0,"maximum":604800000},{"type":"null"}]},"collapsed_default":{"type":"boolean"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}},"title":"GroupUpdate","description":"item_ids, when sent, replaces the group's membership."},"GuestClosedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"guest.closed"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}},"title":"GuestClosedEvent","description":"Guest passes only. The pass was turned off, expired, got a new password or stopped being live; the server closes the connection after this. Transient: version is 0."},"GuestUpdatedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"guest.updated"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["pass","rundown","columns","display_order","groups","items","live_item_id","live_started_at","version","server_time"],"properties":{"pass":{"type":"object","required":["name","role","edit_column_ids","live","can_export","fields","expires_at"],"properties":{"name":{"type":"string"},"role":{"type":"string","enum":["guest","crew","department","editor"],"description":"guest: reads the chosen columns. crew: reads every column that can be shared, including ones added later. department: reads the chosen columns and edits the cells of edit_column_ids (the audio team edits only Audio). editor: reads and edits every column that can be shared. Nobody on a pass can change timing, add or remove rows or columns, or track; those need an API key with the operate or manage scope."},"edit_column_ids":{"type":"array","items":{"type":"string"},"description":"Columns whose cells this pass may edit with PATCH /v1/guest/rundown/items/{itemId}. Empty for read-only passes."},"live":{"type":"boolean"},"can_export":{"type":"boolean","description":"The guest may download a PDF of this view (POST /v1/guest/exports). Depends on the team's plan."},"fields":{"type":"array","items":{"type":"string","enum":["start","duration","speaker","notes"],"description":"Built-in fields a guest pass can show. Item number and title are always shown."}},"expires_at":{"anyOf":[{"type":"integer","description":"When the link stops working (ms since Unix epoch)"},{"type":"null"}]}}},"rundown":{"type":"object","required":["id","name","start_at","timezone"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"start_at":{"anyOf":[{"type":"integer","description":"Planned show start (ms since Unix epoch)"},{"type":"null"}]},"timezone":{"type":"string"}}},"columns":{"type":"array","items":{"type":"object","required":["id","name","type","width","options"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["text","rich_text","duration","start_time","over_under","select","private_notes","timestamp"],"description":"text and rich_text hold strings (rich_text is Markdown); duration holds milliseconds; start_time holds \"HH:MM[:SS]\"; select holds one of options.choices; over_under is computed by the server and private_notes shows each person's own note, so neither stores cell values; timestamp (proof of performance) holds the moment a row aired in ms since Unix epoch and is written only by POST …/items/{itemRef}/timestamp, never by a cell edit."},"width":{"type":"integer"},"options":{"type":"object","properties":{"choices":{"type":"array","items":{"type":"object","required":["value"],"properties":{"value":{"type":"string","minLength":1,"maxLength":60},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}}},"maxItems":60,"description":"Allowed values of a select column."},"auto_stamp":{"type":"boolean","description":"timestamp columns only. Stamp the cell by itself when the show caller takes the row live, if it is still empty."}}}}},"description":"Only the columns the pass includes, in the rundown's order."},"display_order":{"type":"array","items":{"type":"string"},"description":"Everything this pass shows after number and title, in the order to show it, left to right: built-in field names (\"start\", \"duration\", \"speaker\", \"notes\") and the ids of \"columns\". It is complete: draw exactly these, in this order. The sender sets it with display_order on the pass; without one it is start, duration, speaker, the columns as in the rundown, notes."},"groups":{"type":"array","items":{"type":"object","required":["id","title","color"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}}}},"items":{"type":"array","items":{"type":"object","required":["id","position","item_number","kind","name","group_id","row_color","floating","cells"],"properties":{"id":{"type":"string"},"position":{"type":"integer"},"item_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string","enum":["item","header","note"]},"name":{"type":"string"},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"row_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"floating":{"type":"boolean"},"speaker":{"type":"string","description":"Present only when the pass includes \"speaker\"."},"notes":{"type":"string","description":"Present only when the pass includes \"notes\"."},"duration_ms":{"type":"integer","description":"Present only when the pass includes \"duration\"."},"planned_start":{"anyOf":[{"type":"integer","description":"Planned start. Present only when the pass includes \"start\" (ms since Unix epoch)"},{"type":"null"}]},"expected_start":{"anyOf":[{"type":"integer","description":"When the row is expected to start. Before the show: the planned start. While it runs: when rows already left really started, when the row on stage went live, and for the rows after it the time the rows ahead still need. Present only when the pass includes \"start\" (ms since Unix epoch)"},{"type":"null"}]},"locked":{"type":"boolean","description":"Present on passes that may edit: the team locked this row, so its cells cannot be changed."},"cells":{"type":"object","patternProperties":{"^.*$":{"type":"object","required":["value","style"],"properties":{"value":{"anyOf":[{"type":"string","maxLength":50000},{"type":"integer"},{"type":"null"}]},"style":{"anyOf":[{"$ref":"#/components/schemas/CellStyle"},{"type":"null"}]},"rev":{"type":"integer","description":"Present on cells the pass may edit: send it back as expected_cell_revs to avoid overwriting someone else's edit."}}}},"description":"Values of the columns the pass includes, by column id. Other columns are never sent."}},"title":"GuestItem"}},"live_item_id":{"anyOf":[{"type":"string","description":"The row on stage: the one a room running this rundown is timing, or else the one the show caller is tracking."},{"type":"null"}]},"live_started_at":{"anyOf":[{"type":"integer","description":"When that row went live (ms since Unix epoch)"},{"type":"null"}]},"version":{"type":"integer","description":"Rundown version this view was built from."},"server_time":{"type":"integer","description":"Server clock (ms since Unix epoch)"}},"title":"GuestRundown","description":"What a guest sees: built from the rundown on the server, containing only what the pass allows."}},"title":"GuestUpdatedEvent","description":"Guest passes only. The whole guest view, sent on subscribe and again after every change to the rundown (changes close together arrive as one). It is rebuilt on the server from what the pass allows, so hidden columns are never on the wire."},"Health":{"type":"object","required":["generated_at","rooms","scheduler","events","webhooks","rate_limit","canary"],"properties":{"generated_at":{"type":"integer","description":"When these numbers were read (ms since Unix epoch)"},"rooms":{"type":"array","items":{"type":"object","required":["room_id","name","devices","viewers","operators","viewer_limit","slowest_latency_ms"],"properties":{"room_id":{"type":"string"},"name":{"type":"string"},"devices":{"type":"integer","description":"Every live socket and SSE stream."},"viewers":{"type":"integer","description":"Devices that count toward the plan limit."},"operators":{"type":"integer"},"viewer_limit":{"type":"integer"},"slowest_latency_ms":{"anyOf":[{"type":"integer","description":"Round trip of the slowest device, where measured."},{"type":"null"}]}}}},"scheduler":{"type":"object","required":["samples","p50_ms","p95_ms","max_ms","late","target_p95_ms"],"properties":{"samples":{"type":"integer"},"p50_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"p95_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"max_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"late":{"type":"integer","description":"Samples later than the target."},"target_p95_ms":{"type":"integer"}},"description":"Delay between a timer event being due and being fired, over the last 1000 events on this server (all teams)."},"events":{"type":"object","required":["last_minute","last_hour","per_minute"],"properties":{"last_minute":{"type":"integer"},"last_hour":{"type":"integer"},"per_minute":{"type":"array","items":{"type":"integer"},"description":"Sixty values, oldest first; the last is the current minute."}},"description":"Real-time events of this team's rooms and rundowns."},"webhooks":{"type":"object","required":["endpoints","disabled","pending","failed_24h","succeeded_24h","failing"],"properties":{"endpoints":{"type":"integer"},"disabled":{"type":"integer"},"pending":{"type":"integer"},"failed_24h":{"type":"integer"},"succeeded_24h":{"type":"integer"},"failing":{"type":"array","items":{"type":"object","required":["id","url","failing_since","last_failure_at","disabled","last_error"],"properties":{"id":{"type":"string"},"url":{"type":"string"},"failing_since":{"anyOf":[{"type":"integer","description":"Start of the current run of failures (ms since Unix epoch)"},{"type":"null"}]},"last_failure_at":{"anyOf":[{"type":"integer","description":"Last failed attempt (ms since Unix epoch)"},{"type":"null"}]},"disabled":{"type":"boolean"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"rate_limit":{"type":"object","required":["limit_per_minute","command_limit_per_minute","credentials"],"properties":{"limit_per_minute":{"type":"integer"},"command_limit_per_minute":{"type":"integer","description":"Playback, message and display commands have their own, higher limit."},"credentials":{"type":"array","items":{"type":"object","required":["id","kind","name","last_minute","peak_minute","last_hour","limited_last_hour"],"properties":{"id":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"last_minute":{"type":"integer"},"peak_minute":{"type":"integer","description":"Busiest minute of the last hour."},"last_hour":{"type":"integer"},"limited_last_hour":{"type":"integer","description":"Requests refused with 429 in the last hour."}}},"description":"The twenty busiest credentials of the last hour."}}},"canary":{"type":"object","required":["state","last_run","last_success_at","interval_ms"],"properties":{"state":{"type":"string","enum":["passing","failing","slow","stale","unknown"]},"last_run":{"anyOf":[{"$ref":"#/components/schemas/CanaryRun"},{"type":"null"}]},"last_success_at":{"anyOf":[{"type":"integer","description":"Start of the last run that passed (ms since Unix epoch)"},{"type":"null"}]},"interval_ms":{"type":"integer","description":"How often a run is expected."}}}},"title":"Health"},"HistoryEntry":{"type":"object","required":["id","version","at","actor_id","actor_name","op","item_id","column_id","group_id","before","after","restorable"],"properties":{"id":{"type":"string"},"version":{"type":"integer","description":"Rundown version this change produced. Changes made in one request share it."},"at":{"type":"integer","description":"When (ms since Unix epoch)"},"actor_id":{"anyOf":[{"type":"string","description":"Credential that made the change: user:<sub> or key:<id>."},{"type":"null"}]},"actor_name":{"anyOf":[{"type":"string","description":"What that credential was called when it made the change: the signed-in person's name, or the name of the API key or guest link. Null for older entries and unnamed credentials."},{"type":"null"}]},"op":{"type":"string","enum":["item.created","item.updated","item.archived","item.restored","cell.updated","items.reordered","column.created","column.updated","column.archived","column.restored","column.deleted","columns.reordered","group.created","group.updated","group.deleted","rundown.updated"]},"item_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"column_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"before":{"description":"What was there: for cell.updated { value, style }; for item.updated only the fields that changed; for item.archived the whole row."},"after":{"description":"What it became, in the same shape as before."},"restorable":{"type":"boolean","description":"Whether POST …/history/{changeId}/restore can put the earlier value back."}},"title":"HistoryEntry"},"InsertedElement":{"type":"object","required":["item","unmapped"],"properties":{"item":{"$ref":"#/components/schemas/Item"},"unmapped":{"type":"array","items":{"type":"string"},"description":"Element columns that had no matching column in this rundown, so their values were left out."}},"title":"InsertedElement"},"Invoice":{"type":"object","required":["id","number","status","total_cents","currency","created_at","hosted_url","pdf_url","amount_due_cents","due_at","po_number"],"properties":{"id":{"type":"string"},"number":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"total_cents":{"type":"integer"},"currency":{"type":"string"},"created_at":{"type":"integer","description":"When it was issued (ms since Unix epoch)"},"hosted_url":{"anyOf":[{"type":"string","description":"Stripe-hosted page of the invoice. An open invoice is paid there, by card or bank transfer."},{"type":"null"}]},"pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"amount_due_cents":{"type":"integer","description":"What is still to pay."},"due_at":{"anyOf":[{"type":"integer","description":"When payment is due. Null for invoices charged to a card at once. (ms since Unix epoch)"},{"type":"null"}]},"po_number":{"anyOf":[{"type":"string","description":"The purchase order number printed on the invoice, when one was given."},{"type":"null"}]}},"title":"Invoice"},"Item":{"type":"object","required":["id","rundown_id","position","item_number","external_id","kind","name","speaker","notes","labels","duration_ms","appearance","type","finish_time","wrap_up_yellow_s","wrap_up_red_s","trigger","start_time","group_id","anchor_start","muted","floating","locked","row_color","services","in_service","element","cells","rev","archived_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"rundown_id":{"type":"string"},"position":{"type":"integer","description":"Zero-based position in the rundown."},"item_number":{"anyOf":[{"type":"string","description":"Manual cue number such as \"4A\". When null, clients show position + 1."},{"type":"null"}]},"external_id":{"anyOf":[{"type":"string","description":"Your own identifier; unique per rundown. Usable as a timer reference."},{"type":"null"}]},"kind":{"type":"string","enum":["item","header","note"]},"name":{"type":"string"},"speaker":{"type":"string"},"notes":{"type":"string"},"labels":{"type":"array","items":{"type":"object","required":["name","color"],"properties":{"name":{"type":"string","maxLength":60},"color":{"type":"string","maxLength":32}}}},"duration_ms":{"type":"integer","minimum":0},"appearance":{"type":"string","enum":["COUNTDOWN","COUNTUP","TOD","COUNTDOWN_TOD","COUNTUP_TOD","HIDDEN"]},"type":{"type":"string","enum":["DURATION","FINISH_TIME","PLANNED_END"],"description":"How the countdown is set when the timer starts. DURATION: runs its full length from the moment it starts. FINISH_TIME: counts down to finish_time, a time of day. PLANNED_END: counts down to the end the rundown plans for this row, so a late start is made up (but never below half its length); behaves like DURATION while the rundown has no start time."},"finish_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Wall-clock time \"HH:MM\" or \"HH:MM:SS\" in the room timezone.","examples":["12:30"]},{"type":"null"}]},"wrap_up_yellow_s":{"type":"integer","minimum":0,"description":"Seconds before the end at which the timer turns yellow."},"wrap_up_red_s":{"type":"integer","minimum":0,"description":"Seconds before the end at which the timer turns red."},"trigger":{"type":"string","enum":["MANUAL","LINKED","SCHEDULED"]},"start_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Wall-clock time \"HH:MM\" or \"HH:MM:SS\" in the room timezone.","examples":["12:30"]},{"type":"null"}]},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"anchor_start":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Hard start: wall-clock time on the rundown's show day at which this row starts no matter how long the rows before it are.","examples":["12:30"]},{"type":"null"}]},"muted":{"type":"boolean","description":"A muted duration does not push the rows after it."},"floating":{"type":"boolean","description":"Floating rows stay in the rundown but are left out of timing, and Next / Previous skip them."},"locked":{"type":"boolean","description":"Locked rows reject edits and deletion until unlocked."},"row_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"services":{"anyOf":[{"type":"array","items":{"type":"string"},"description":"Ids of the service times this row runs in. Null runs in every service."},{"type":"null"}]},"in_service":{"type":"boolean","description":"False when the rundown's active service time is not one of services: the row is then skipped like a floating row (left out of timing, passed over by Next, Previous and linked starts, never started by its schedule) until a service it belongs to comes round. Always true for rundowns without service times."},"element":{"anyOf":[{"type":"object","required":["id","version"],"properties":{"id":{"type":"string"},"version":{"type":"integer"}},"description":"The library element this row is linked to and the version it carries. Compare version with the element's current_version to see whether an update is available."},{"type":"null"}]},"cells":{"type":"object","patternProperties":{"^.*$":{"$ref":"#/components/schemas/Cell"}},"description":"Cell values by column id; cells never written are absent. Filled in rundown responses and rundown events. Always empty in room state and room events (timers.changed, current_timer), so output screens never receive a department's notes."},"rev":{"type":"integer","description":"Increments on every edit of the item's own fields (not its cells); send as expected_rev to avoid overwriting someone else's change."},"archived_at":{"anyOf":[{"type":"integer","description":"When the row was deleted. Always null except in GET …/archived and in history. (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Item","description":"A rundown item. Every item is also a timer."},"ItemBulk":{"type":"object","properties":{"create":{"type":"array","items":{"$ref":"#/components/schemas/ItemCreate"},"maxItems":500},"update":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":300},"speaker":{"type":"string","maxLength":200},"notes":{"type":"string","maxLength":20000},"labels":{"type":"array","items":{"type":"object","required":["name","color"],"properties":{"name":{"type":"string","maxLength":60},"color":{"type":"string","maxLength":32}}},"maxItems":20},"duration_ms":{"type":"integer","minimum":0,"maximum":86400000},"duration":{"type":"string","pattern":"^\\d+(\\.\\d+)?(ms|s|m|h)$","description":"Duration with a unit, e.g. \"90s\", \"5m\", \"1h\".","examples":["5m"]},"appearance":{"type":"string","enum":["COUNTDOWN","COUNTUP","TOD","COUNTDOWN_TOD","COUNTUP_TOD","HIDDEN"]},"type":{"type":"string","enum":["DURATION","FINISH_TIME","PLANNED_END"],"description":"How the countdown is set when the timer starts. DURATION: runs its full length from the moment it starts. FINISH_TIME: counts down to finish_time, a time of day. PLANNED_END: counts down to the end the rundown plans for this row, so a late start is made up (but never below half its length); behaves like DURATION while the rundown has no start time."},"finish_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Wall-clock time \"HH:MM\" or \"HH:MM:SS\" in the room timezone.","examples":["12:30"]},{"type":"null"}]},"wrap_up_yellow_s":{"type":"integer","minimum":0,"maximum":86400,"description":"Defaults to 60 on create."},"wrap_up_red_s":{"type":"integer","minimum":0,"maximum":86400,"description":"Defaults to 15 on create."},"trigger":{"type":"string","enum":["MANUAL","LINKED","SCHEDULED"]},"start_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Wall-clock time \"HH:MM\" or \"HH:MM:SS\" in the room timezone.","examples":["12:30"]},{"type":"null"}]},"external_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"item_number":{"anyOf":[{"type":"string","minLength":1,"maxLength":16},{"type":"null"}]},"kind":{"type":"string","enum":["item","header","note"]},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"anchor_start":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Wall-clock time \"HH:MM\" or \"HH:MM:SS\" in the room timezone.","examples":["12:30"]},{"type":"null"}]},"muted":{"type":"boolean"},"floating":{"type":"boolean"},"row_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"services":{"anyOf":[{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":10,"description":"The service times (ids from the rundown's services) this row runs in, e.g. a baptism at 11:00 only. null runs it in every service."},{"type":"null"}]},"cells":{"type":"object","patternProperties":{"^.*$":{"anyOf":[{"anyOf":[{"type":"string","maxLength":50000},{"type":"integer"},{"type":"null"}]},{"type":"string","pattern":"^\\d+(\\.\\d+)?(ms|s|m|h)$","description":"Duration with a unit, e.g. \"90s\", \"5m\", \"1h\".","examples":["5m"]}]}},"description":"Cell values by column id; null clears a cell. Duration cells take milliseconds or \"5m\"."},"cell_styles":{"type":"object","patternProperties":{"^.*$":{"anyOf":[{"$ref":"#/components/schemas/CellStyle"},{"type":"null"}]}},"description":"Cell formatting by column id; null removes it."},"expected_rev":{"type":"integer","description":"Fails with 409 STALE_STATE when the item's own fields have been edited since this rev."},"expected_cell_revs":{"type":"object","patternProperties":{"^.*$":{"type":"integer","minimum":0}},"description":"Per-cell check by column id (0 = the cell is expected to be empty). A mismatch fails with 409 STALE_STATE and nothing is saved."}}},"maxItems":500},"delete":{"type":"array","items":{"type":"string"},"maxItems":500,"description":"Item ids to delete."},"dry_run":{"type":"boolean","description":"Validate and report the result without saving anything."}},"title":"ItemBulk","description":"Create, update and delete in a single transaction: everything applies or nothing does."},"ItemCreate":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":300},"speaker":{"type":"string","maxLength":200},"notes":{"type":"string","maxLength":20000},"labels":{"type":"array","items":{"type":"object","required":["name","color"],"properties":{"name":{"type":"string","maxLength":60},"color":{"type":"string","maxLength":32}}},"maxItems":20},"duration_ms":{"type":"integer","minimum":0,"maximum":86400000},"duration":{"type":"string","pattern":"^\\d+(\\.\\d+)?(ms|s|m|h)$","description":"Duration with a unit, e.g. \"90s\", \"5m\", \"1h\".","examples":["5m"]},"appearance":{"type":"string","enum":["COUNTDOWN","COUNTUP","TOD","COUNTDOWN_TOD","COUNTUP_TOD","HIDDEN"]},"type":{"type":"string","enum":["DURATION","FINISH_TIME","PLANNED_END"],"description":"How the countdown is set when the timer starts. DURATION: runs its full length from the moment it starts. FINISH_TIME: counts down to finish_time, a time of day. PLANNED_END: counts down to the end the rundown plans for this row, so a late start is made up (but never below half its length); behaves like DURATION while the rundown has no start time."},"finish_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Wall-clock time \"HH:MM\" or \"HH:MM:SS\" in the room timezone.","examples":["12:30"]},{"type":"null"}]},"wrap_up_yellow_s":{"type":"integer","minimum":0,"maximum":86400,"description":"Defaults to 60 on create."},"wrap_up_red_s":{"type":"integer","minimum":0,"maximum":86400,"description":"Defaults to 15 on create."},"trigger":{"type":"string","enum":["MANUAL","LINKED","SCHEDULED"]},"start_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Wall-clock time \"HH:MM\" or \"HH:MM:SS\" in the room timezone.","examples":["12:30"]},{"type":"null"}]},"external_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"item_number":{"anyOf":[{"type":"string","minLength":1,"maxLength":16},{"type":"null"}]},"kind":{"type":"string","enum":["item","header","note"]},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"anchor_start":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Wall-clock time \"HH:MM\" or \"HH:MM:SS\" in the room timezone.","examples":["12:30"]},{"type":"null"}]},"muted":{"type":"boolean"},"floating":{"type":"boolean"},"row_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"services":{"anyOf":[{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":10,"description":"The service times (ids from the rundown's services) this row runs in, e.g. a baptism at 11:00 only. null runs it in every service."},{"type":"null"}]},"cells":{"type":"object","patternProperties":{"^.*$":{"anyOf":[{"anyOf":[{"type":"string","maxLength":50000},{"type":"integer"},{"type":"null"}]},{"type":"string","pattern":"^\\d+(\\.\\d+)?(ms|s|m|h)$","description":"Duration with a unit, e.g. \"90s\", \"5m\", \"1h\".","examples":["5m"]}]}},"description":"Cell values by column id; null clears a cell. Duration cells take milliseconds or \"5m\"."},"cell_styles":{"type":"object","patternProperties":{"^.*$":{"anyOf":[{"$ref":"#/components/schemas/CellStyle"},{"type":"null"}]}},"description":"Cell formatting by column id; null removes it."},"position":{"type":"integer","minimum":0,"description":"Zero-based insert position. Omit to append."}},"title":"ItemCreate","description":"Give the length as duration_ms or as duration (\"5m\"). Defaults to 5 minutes."},"ItemsChangedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"items.changed"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["created","updated","deleted"],"properties":{"created":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"updated":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"deleted":{"type":"array","items":{"type":"string"}},"order":{"type":"array","items":{"type":"string"},"description":"Item ids in their new order, when the order changed."}}}},"title":"ItemsChangedEvent","description":"Rows were created, updated (fields or cells), deleted or reordered. Carries the changed rows in full."},"ItemTiming":{"type":"object","required":["item_id","planned_start","planned_end","offset_ms","duration_ms","anchor","anchor_gap_ms","muted","floating","in_service","actual_start","actual_end","over_under_ms"],"properties":{"item_id":{"type":"string"},"planned_start":{"anyOf":[{"type":"integer","description":"Planned start; null for floating rows and while the rundown has neither a start time nor a hard start above this row (ms since Unix epoch)"},{"type":"null"}]},"planned_end":{"anyOf":[{"type":"integer","description":"Planned end (ms since Unix epoch)"},{"type":"null"}]},"offset_ms":{"anyOf":[{"type":"integer","description":"Time from the first row to the start of this row, ignoring hard starts. Null for floating rows."},{"type":"null"}]},"duration_ms":{"type":"integer","description":"Duration used for timing: 0 for headers and notes."},"anchor":{"anyOf":[{"type":"integer","description":"The row's hard start, resolved to a moment (ms since Unix epoch)"},{"type":"null"}]},"anchor_gap_ms":{"anyOf":[{"type":"integer","description":"Spare time before the hard start (positive) or how far the rows above run into it (negative)."},{"type":"null"}]},"muted":{"type":"boolean"},"floating":{"type":"boolean"},"in_service":{"type":"boolean","description":"False when the row is not in the active service time; it is then timed like a floating row."},"actual_start":{"anyOf":[{"type":"integer","description":"When the show caller took this row live in the current show (ms since Unix epoch)"},{"type":"null"}]},"actual_end":{"anyOf":[{"type":"integer","description":"When the show caller left it; null while it is live (ms since Unix epoch)"},{"type":"null"}]},"over_under_ms":{"anyOf":[{"type":"integer","description":"Actual minus planned length once the row has finished: positive ran long."},{"type":"null"}]}},"title":"ItemTiming"},"ItemUpdate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"speaker":{"type":"string","maxLength":200},"notes":{"type":"string","maxLength":20000},"labels":{"type":"array","items":{"type":"object","required":["name","color"],"properties":{"name":{"type":"string","maxLength":60},"color":{"type":"string","maxLength":32}}},"maxItems":20},"duration_ms":{"type":"integer","minimum":0,"maximum":86400000},"duration":{"type":"string","pattern":"^\\d+(\\.\\d+)?(ms|s|m|h)$","description":"Duration with a unit, e.g. \"90s\", \"5m\", \"1h\".","examples":["5m"]},"appearance":{"type":"string","enum":["COUNTDOWN","COUNTUP","TOD","COUNTDOWN_TOD","COUNTUP_TOD","HIDDEN"]},"type":{"type":"string","enum":["DURATION","FINISH_TIME","PLANNED_END"],"description":"How the countdown is set when the timer starts. DURATION: runs its full length from the moment it starts. FINISH_TIME: counts down to finish_time, a time of day. PLANNED_END: counts down to the end the rundown plans for this row, so a late start is made up (but never below half its length); behaves like DURATION while the rundown has no start time."},"finish_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Wall-clock time \"HH:MM\" or \"HH:MM:SS\" in the room timezone.","examples":["12:30"]},{"type":"null"}]},"wrap_up_yellow_s":{"type":"integer","minimum":0,"maximum":86400,"description":"Defaults to 60 on create."},"wrap_up_red_s":{"type":"integer","minimum":0,"maximum":86400,"description":"Defaults to 15 on create."},"trigger":{"type":"string","enum":["MANUAL","LINKED","SCHEDULED"]},"start_time":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Wall-clock time \"HH:MM\" or \"HH:MM:SS\" in the room timezone.","examples":["12:30"]},{"type":"null"}]},"external_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"item_number":{"anyOf":[{"type":"string","minLength":1,"maxLength":16},{"type":"null"}]},"kind":{"type":"string","enum":["item","header","note"]},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"anchor_start":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"Wall-clock time \"HH:MM\" or \"HH:MM:SS\" in the room timezone.","examples":["12:30"]},{"type":"null"}]},"muted":{"type":"boolean"},"floating":{"type":"boolean"},"row_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"services":{"anyOf":[{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":10,"description":"The service times (ids from the rundown's services) this row runs in, e.g. a baptism at 11:00 only. null runs it in every service."},{"type":"null"}]},"cells":{"type":"object","patternProperties":{"^.*$":{"anyOf":[{"anyOf":[{"type":"string","maxLength":50000},{"type":"integer"},{"type":"null"}]},{"type":"string","pattern":"^\\d+(\\.\\d+)?(ms|s|m|h)$","description":"Duration with a unit, e.g. \"90s\", \"5m\", \"1h\".","examples":["5m"]}]}},"description":"Cell values by column id; null clears a cell. Duration cells take milliseconds or \"5m\"."},"cell_styles":{"type":"object","patternProperties":{"^.*$":{"anyOf":[{"$ref":"#/components/schemas/CellStyle"},{"type":"null"}]}},"description":"Cell formatting by column id; null removes it."},"expected_rev":{"type":"integer","description":"Fails with 409 STALE_STATE when the item's own fields have been edited since this rev."},"expected_cell_revs":{"type":"object","patternProperties":{"^.*$":{"type":"integer","minimum":0}},"description":"Per-cell check by column id (0 = the cell is expected to be empty). A mismatch fails with 409 STALE_STATE and nothing is saved."}},"title":"ItemUpdate"},"LayoutBody":{"type":"object","required":["elements"],"properties":{"background":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Screen background. null keeps the branding's."},{"type":"null"}]},"elements":{"type":"array","items":{"$ref":"#/components/schemas/LayoutElement"},"maxItems":12,"description":"Each element at most once. Elements left out are not shown."}},"title":"LayoutBody","additionalProperties":false},"LayoutElement":{"type":"object","required":["element","x","y","w","h"],"properties":{"element":{"type":"string","enum":["timer","title","message","clock","logo","progress","next"],"description":"timer: the countdown. title: the current item and speaker. message: the operator's message. clock: time of day. logo: the branding logo. progress: the progress bar. next: the next item."},"x":{"type":"number","minimum":0,"maximum":100,"description":"Left edge, in percent of the screen width."},"y":{"type":"number","minimum":0,"maximum":100,"description":"Top edge, in percent of the screen height."},"w":{"type":"number","minimum":2,"maximum":100,"description":"Width in percent of the screen width."},"h":{"type":"number","minimum":2,"maximum":100,"description":"Height in percent of the screen height."},"style":{"type":"object","properties":{"align":{"type":"string","enum":["left","center","right"]},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Text colour. The timer keeps its warning colours unless this is set."},{"type":"null"}]},"scale":{"type":"number","minimum":0.25,"maximum":4,"description":"Text size, as a multiple of the size that fills the box. 1 by default."}},"additionalProperties":false}},"title":"LayoutElement","additionalProperties":false},"LayoutUpdatedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"layout.updated"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["layout_id","link_id"],"properties":{"layout_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"link_id":{"anyOf":[{"type":"string","description":"Set when one link changed its layout; null when the layout itself changed."},{"type":"null"}]}}}},"title":"LayoutUpdatedEvent","description":"An output layout used by a link of this room changed, or a link was pointed at another layout. Screens refetch GET /v1/me and their layout."},"McpSession":{"type":"object","required":["token","expires_at","team_id","scopes","name","client_id"],"properties":{"token":{"type":"string","description":"An API token. Send it as \"Authorization: Bearer <token>\"."},"expires_at":{"type":"integer","description":"When `token` stops working (ms since epoch). Trade the access token again after that."},"team_id":{"type":"string","description":"The one team the person chose when connecting the assistant."},"scopes":{"type":"array","items":{"anyOf":[{"type":"string","const":"read"},{"type":"string","const":"edit"}]},"description":"What the person allowed: read, and edit for the planning tools."},"name":{"type":"string","description":"How the history and the audit log name the assistant, e.g. \"Claude via MCP (Mike)\"."},"client_id":{"type":"string","description":"The OAuth client the assistant registered as."}},"title":"McpSession"},"Me":{"type":"object","required":["kind","team_id","name","picture","team_scope","rooms","workspace","trial","output"],"properties":{"kind":{"type":"string","enum":["key","jwt","output","trial","guest"]},"team_id":{"type":"string"},"name":{"anyOf":[{"type":"string","description":"The signed-in person's name, or the name of the API key or guest link. Null for other credentials."},{"type":"null"}]},"picture":{"anyOf":[{"type":"string","format":"uri","description":"The signed-in person's profile photo, a square picture to show instead of their initials. Null when they have none and for every other credential."},{"type":"null"}]},"team_scope":{"anyOf":[{"type":"string","enum":["read","operate","manage","admin"]},{"type":"null"}]},"rooms":{"type":"array","items":{"type":"object","required":["id","scope"],"properties":{"id":{"type":"string"},"scope":{"type":"string","enum":["read","operate","manage","admin"]}}},"description":"Rooms this credential is limited to, when it is not team-wide."},"workspace":{"anyOf":[{"type":"object","required":["id","name","scope"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"scope":{"type":"string","enum":["read","operate","manage","admin"]}},"description":"Present for keys limited to one client workspace: they reach that workspace's events, rundowns and rooms with this scope, and nothing team-wide."},{"type":"null"}]},"trial":{"anyOf":[{"type":"object","required":["room_id","expires_at"],"properties":{"room_id":{"type":"string"},"expires_at":{"type":"integer","description":"When the unclaimed trial room is deleted (ms since Unix epoch)"}},"description":"Present for trial tokens: the room this token opens and when it expires."},{"type":"null"}]},"output":{"anyOf":[{"$ref":"#/components/schemas/OutputLink"},{"type":"null"}]}},"title":"Me","description":"What the current credential is and may do."},"Message":{"type":"object","required":["id","room_id","position","text","color","bold","uppercase","preset_id","created_at"],"properties":{"id":{"type":"string"},"room_id":{"type":"string"},"position":{"type":"integer"},"text":{"type":"string"},"color":{"type":"string","enum":["white","green","red"]},"bold":{"type":"boolean"},"uppercase":{"type":"boolean"},"preset_id":{"anyOf":[{"type":"string","description":"Set when the message was sent from a team preset."},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"}},"title":"Message"},"MessageHiddenEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"message.hidden"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["message_id"],"properties":{"message_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"title":"MessageHiddenEvent","description":"The active message was hidden."},"MessagePreset":{"type":"object","required":["id","position","label","text","color","chime","created_at"],"properties":{"id":{"type":"string"},"position":{"type":"integer"},"label":{"type":"string","description":"Short button label, e.g. \"Wrap up\"."},"text":{"type":"string","description":"What the speaker sees."},"color":{"type":"string","enum":["white","green","red"]},"chime":{"anyOf":[{"type":"string","description":"Chime id from GET /v1/chimes to play with the message. Null uses the room's message chime."},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"}},"title":"MessagePreset","description":"A team-level one-tap message."},"MessagesChangedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"messages.changed"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["created","updated","deleted"],"properties":{"created":{"type":"array","items":{"$ref":"#/components/schemas/Message"}},"updated":{"type":"array","items":{"$ref":"#/components/schemas/Message"}},"deleted":{"type":"array","items":{"type":"string"}}}}},"title":"MessagesChangedEvent","description":"The room's message list changed."},"MessageShownEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"message.shown"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["message","focus"],"properties":{"message":{"$ref":"#/components/schemas/Message"},"focus":{"type":"boolean"}}}},"title":"MessageShownEvent","description":"A message is now on screen."},"OutputChimes":{"type":"object","required":["yellow","red","zero","message","volume","muted"],"properties":{"yellow":{"type":"boolean"},"red":{"type":"boolean"},"zero":{"type":"boolean"},"message":{"type":"boolean"},"volume":{"type":"number","minimum":0,"maximum":1,"description":"Multiplies the room volume."},"muted":{"type":"boolean"}},"title":"OutputChimes","description":"What this one screen does with the room's chimes, e.g. the confidence monitor sounds and the lobby screen stays silent."},"OutputLayout":{"type":"object","required":["id","name","layout","links","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"layout":{"$ref":"#/components/schemas/LayoutBody"},"links":{"type":"integer","description":"Output links that use this layout."},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Last changed (ms since Unix epoch)"}},"title":"OutputLayout","description":"Where each element sits on an output screen, in percent of the screen, so it fits any size."},"OutputLink":{"type":"object","required":["id","room_id","view","identifier","mirror","delay_s","tz","hide_controls","allow_reply","chimes","branding","layout_id","has_password","can_copy","created_at"],"properties":{"id":{"type":"string"},"room_id":{"type":"string"},"view":{"type":"string","enum":["speaker","confidence","lobby","overlay","prompter","tally"]},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}]},"mirror":{"type":"string","enum":["none","horizontal","vertical"]},"delay_s":{"type":"integer","minimum":0,"maximum":3600},"tz":{"anyOf":[{"type":"string"},{"type":"null"}]},"hide_controls":{"type":"boolean"},"allow_reply":{"type":"boolean","description":"The screen shows quick replies and a chat drawer, and its token may post to the room chat as the presenter."},"chimes":{"anyOf":[{"$ref":"#/components/schemas/OutputChimes"},{"type":"null"}]},"branding":{"anyOf":[{"$ref":"#/components/schemas/BrandingSettings"},{"type":"null"}]},"layout_id":{"anyOf":[{"type":"string","description":"The output layout this screen draws with. null is the standard screen for the view."},{"type":"null"}]},"has_password":{"type":"boolean","description":"The screen asks for a password before it shows anything. The link's own token then opens nothing; see POST /v1/public/output-links/unlock."},"can_copy":{"type":"boolean","description":"GET /v1/rooms/{roomId}/output-links/{linkId}/url can show this link again. False for links made before links could be copied again; POST …/reissue gives one a new address that can."},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"}},"title":"OutputLink"},"Playback":{"type":"object","required":["timer_id","running","start","finish","pause","undo_depth"],"properties":{"timer_id":{"anyOf":[{"type":"string","description":"The selected timer."},{"type":"null"}]},"running":{"type":"boolean"},"start":{"anyOf":[{"type":"integer","description":"When the current run started, shifted by any time spent paused (ms since Unix epoch)"},{"type":"null"}]},"finish":{"anyOf":[{"type":"integer","description":"When the timer reaches zero (ms since Unix epoch)"},{"type":"null"}]},"pause":{"anyOf":[{"type":"integer","description":"When the timer was paused; null while running (ms since Unix epoch)"},{"type":"null"}]},"undo_depth":{"type":"integer","description":"How many playback commands POST /playback/undo can take back right now (0 to 50)."}},"title":"Playback","description":"Playback is stored as timestamps. Running: remaining = finish - now. Paused: remaining = finish - pause. Total duration: finish - start."},"PlaybackUpdatedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"playback.updated"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["playback","current_timer","next_timer"],"properties":{"playback":{"$ref":"#/components/schemas/Playback"},"current_timer":{"anyOf":[{"$ref":"#/components/schemas/Item"},{"type":"null"}]},"next_timer":{"anyOf":[{"$ref":"#/components/schemas/Item"},{"type":"null"}]}}}},"title":"PlaybackUpdatedEvent","description":"Playback timestamps changed. Always the last event of a playback command."},"Preferences":{"type":"object","required":["theme","layout"],"properties":{"theme":{"anyOf":[{"type":"string","enum":["control","studio","producer"]},{"type":"null"}]},"layout":{"anyOf":[{"type":"string","enum":["a","b","c"]},{"type":"null"}]}},"title":"Preferences","description":"Controller appearance for this credential. Null means \"use the default\"."},"PresenceUpdatedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"presence.updated"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["users"],"properties":{"users":{"type":"array","items":{"$ref":"#/components/schemas/PresenceUser"}}}}},"title":"PresenceUpdatedEvent","description":"Someone opened or left the rundown, or moved to another cell. Carries everyone present. Transient: version is always 0 and it is never replayed."},"PresenceUser":{"type":"object","required":["connection_id","principal_id","name","picture","color","item_id","column_id","since"],"properties":{"connection_id":{"type":"string","description":"One per open connection; a person with two tabs appears twice."},"principal_id":{"type":"string"},"name":{"type":"string"},"picture":{"anyOf":[{"type":"string","format":"uri","description":"Profile photo of a signed-in person, to show instead of their initials. Null for everyone else."},{"type":"null"}]},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},"item_id":{"anyOf":[{"type":"string","description":"Row of the cell this person is on."},{"type":"null"}]},"column_id":{"anyOf":[{"type":"string","description":"Column of that cell: a column id, or a built-in field such as \"name\" or \"duration\"."},{"type":"null"}]},"since":{"type":"integer","description":"When they opened the rundown (ms since Unix epoch)"}},"title":"PresenceUser"},"PrompterControl":{"type":"object","required":["playing","speed","item_id","offset","at","position","action","seq","by","updated_at"],"properties":{"playing":{"type":"boolean"},"speed":{"type":"number","description":"Scroll speed in standard lines per minute (see \"lines\" on the script rows). It is a pace through the text, not through pixels, so a big and a small screen have the same words at the reading line. Negative scrolls backwards."},"item_id":{"anyOf":[{"type":"string","description":"The row at the reading line at the moment \"at\". Null until the first command: the top of the script."},{"type":"null"}]},"offset":{"type":"number","minimum":0,"description":"How far into that row the reading line was at \"at\", in standard lines (0: the row's cue line)."},"at":{"anyOf":[{"type":"integer","description":"The server time item_id and offset are true for. While playing, the place moves on from there by speed × time passed, row after row, and stops at either end of the script (ms since Unix epoch)"},{"type":"null"}]},"position":{"anyOf":[{"type":"number","minimum":0,"maximum":1,"description":"The same place as a fraction of the whole script (0 top, 1 end), at \"at\"."},{"type":"null"}]},"action":{"anyOf":[{"type":"string","enum":["play","pause","speed","jump","scroll_to","nudge"],"description":"The last command."},{"type":"null"}]},"seq":{"type":"integer","description":"Counts commands."},"by":{"anyOf":[{"type":"string","description":"Who sent the last command."},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"integer","description":"Last command (ms since Unix epoch)"},{"type":"null"}]}},"title":"PrompterControl","description":"The shared remote-control state every prompter display of a rundown follows. It is a timeline, not a stream of ticks: from item_id, offset, at, speed and playing, every display works out which words belong at the reading line right now (on the server clock), whatever its width or text size."},"PrompterControlEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"prompter.control"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"$ref":"#/components/schemas/PrompterControl"}},"title":"PrompterControlEvent","description":"Prompter subscribers only. A remote-control command: play, pause, speed, jump or scroll_to. Carries the whole control state. Transient: version is 0."},"PrompterScript":{"type":"object","required":["rundown","column","columns","wpm","items","words","read_ms","lines","control","version","server_time"],"properties":{"rundown":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"column":{"anyOf":[{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}},{"type":"null"}]},"columns":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"description":"Every rich text column, for choosing another one with ?column_id=."},"wpm":{"type":"integer","description":"Speaking speed used for read_ms."},"items":{"type":"array","items":{"type":"object","required":["id","kind","item_number","name","speaker","duration_ms","script","words","read_ms","lines"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["item","header","note"]},"item_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"speaker":{"anyOf":[{"type":"string"},{"type":"null"}]},"duration_ms":{"type":"integer"},"script":{"type":"string","description":"Markdown. Empty when the row has no script."},"words":{"type":"integer"},"read_ms":{"type":"integer","description":"Estimated time to read the script aloud."},"lines":{"type":"number","description":"Length of the row in standard lines: 1 for its cue line plus one per 32 characters of script. The unit of speed and offset in the control state. A display spreads these over its own line breaks."}}}},"words":{"type":"integer"},"read_ms":{"type":"integer"},"lines":{"type":"number","description":"Length of the whole script in standard lines."},"control":{"$ref":"#/components/schemas/PrompterControl"},"version":{"type":"integer","description":"Rundown version this was built from."},"server_time":{"type":"integer","description":"Server clock (ms since Unix epoch)"}},"title":"PrompterScript","description":"The script stream: the rows of a rundown in order, without floating rows, each with the text of the script column."},"PrompterScriptEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"prompter.script"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"$ref":"#/components/schemas/PrompterScript"}},"title":"PrompterScriptEvent","description":"Prompter subscribers only. The whole script stream, sent on subscribe and again after every change to the rundown (changes close together arrive as one). Transient: version is 0."},"QaSettings":{"type":"object","required":["open","intro","ask_name","submit_url"],"properties":{"open":{"type":"boolean","description":"Whether the public page takes questions. Off until someone turns it on."},"intro":{"anyOf":[{"type":"string","description":"A line shown above the form."},{"type":"null"}]},"ask_name":{"type":"boolean","description":"Whether the form offers a name field. The name is always optional."},"submit_url":{"type":"string","description":"The public page. No credential is needed to open it."}},"title":"QaSettings"},"Question":{"type":"object","required":["id","room_id","text","name","status","shown_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"room_id":{"type":"string"},"text":{"type":"string"},"name":{"anyOf":[{"type":"string","description":"Who asked, when they said."},{"type":"null"}]},"status":{"type":"string","enum":["pending","approved","rejected","answered"]},"shown_at":{"anyOf":[{"type":"integer","description":"When it was last put on screen (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Asked (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Last changed (ms since Unix epoch)"}},"title":"Question","description":"An audience question. Nothing reaches a screen until a moderator shows it."},"QuestionCounts":{"type":"object","required":["pending","approved","rejected","answered"],"properties":{"pending":{"type":"integer"},"approved":{"type":"integer"},"rejected":{"type":"integer"},"answered":{"type":"integer"}},"title":"QuestionCounts"},"QuestionHiddenEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"question.hidden"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["question_id"],"properties":{"question_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"title":"QuestionHiddenEvent","description":"The question on screen was taken down."},"QuestionShownEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"question.shown"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"$ref":"#/components/schemas/ActiveQuestion"}},"title":"QuestionShownEvent","description":"An approved question is now on screen."},"QuestionSubmittedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"question.submitted"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["question","counts"],"properties":{"question":{"anyOf":[{"$ref":"#/components/schemas/Question"},{"type":"null"}]},"counts":{"$ref":"#/components/schemas/QuestionCounts"}}}},"title":"QuestionSubmittedEvent","description":"Someone in the audience sent a question. Operators and moderators get it; every screen gets question: null with the counts, so unmoderated text never reaches an output."},"QuestionUpdatedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"question.updated"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["question","question_id","deleted","counts"],"properties":{"question":{"anyOf":[{"$ref":"#/components/schemas/Question"},{"type":"null"}]},"question_id":{"type":"string"},"deleted":{"type":"boolean"},"counts":{"$ref":"#/components/schemas/QuestionCounts"}}}},"title":"QuestionUpdatedEvent","description":"A question was approved, rejected, marked answered or deleted (deleted: true). Screens get question: null, as with question.submitted."},"Room":{"type":"object","required":["id","name","timezone","show_date","logo_url","active_rundown_id","workspace_id","blackout","on_air","settings","position","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"timezone":{"type":"string"},"show_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","examples":["2026-11-21"]},{"type":"null"}]},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"active_rundown_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"workspace_id":{"anyOf":[{"type":"string","description":"The client workspace this room belongs to; null for the team's own rooms."},{"type":"null"}]},"blackout":{"type":"boolean"},"on_air":{"type":"boolean"},"settings":{"type":"object","patternProperties":{"^.*$":{}}},"position":{"type":"integer","description":"Where the room sits in the team's list. GET /v1/rooms is in this order; change it with POST /v1/rooms/reorder."},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Room"},"RoomState":{"type":"object","required":["version","server_time","room","playback","current_timer","next_timer","active_message","focus","active_question","remaining_ms","phase","drift_ms","service","next_service","holding"],"properties":{"version":{"type":"integer","description":"Room version. Every event increments it by one."},"server_time":{"type":"integer","description":"Server clock (ms since Unix epoch)"},"room":{"$ref":"#/components/schemas/Room"},"playback":{"$ref":"#/components/schemas/Playback"},"current_timer":{"anyOf":[{"$ref":"#/components/schemas/Item"},{"type":"null"}]},"next_timer":{"anyOf":[{"$ref":"#/components/schemas/Item"},{"type":"null"}]},"active_message":{"anyOf":[{"$ref":"#/components/schemas/Message"},{"type":"null"}]},"focus":{"type":"boolean","description":"True when the active message is shown fullscreen."},"active_question":{"anyOf":[{"$ref":"#/components/schemas/ActiveQuestion"},{"type":"null"}]},"remaining_ms":{"anyOf":[{"type":"integer","description":"Remaining time at server_time; negative in overrun."},{"type":"null"}]},"phase":{"type":"string","enum":["green","yellow","red","overrun","paused","idle"]},"drift_ms":{"type":"integer","description":"How far the room is behind (+) or ahead (-) of plan in the current run session."},"service":{"anyOf":[{"$ref":"#/components/schemas/ServiceTime"},{"type":"null"}]},"next_service":{"anyOf":[{"$ref":"#/components/schemas/ServiceTime"},{"type":"null"}]},"holding":{"type":"boolean","description":"Screens show the holding screen: the service, a countdown to when it starts and the room's holding message, in place of the timer. Ends by itself when a timer starts."}},"title":"RoomState","description":"Everything a display needs, in one call. service is the service time of the loaded rundown this room is running (null when it has none) and next_service the one after it."},"RoomUpdatedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"room.updated"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["room"],"properties":{"room":{"$ref":"#/components/schemas/Room"}}}},"title":"RoomUpdatedEvent","description":"Room settings changed."},"Run":{"type":"object","required":["id","item_id","started_at","ended_at","planned_ms","actual_ms","paused_ms_total"],"properties":{"id":{"type":"string"},"item_id":{"type":"string"},"started_at":{"type":"integer","description":"When this run of the timer started (ms since Unix epoch)"},"ended_at":{"anyOf":[{"type":"integer","description":"When the run ended; null while the timer is loaded (ms since Unix epoch)"},{"type":"null"}]},"planned_ms":{"type":"integer","description":"Planned duration when the run started."},"actual_ms":{"anyOf":[{"type":"integer","description":"Time actually spent running (pauses excluded); null until the run ends."},{"type":"null"}]},"paused_ms_total":{"type":"integer","description":"Total time spent paused."}},"title":"Run","description":"One actual run of a timer: the planned-versus-actual record behind drift, reports and timelines."},"Rundown":{"type":"object","required":["id","event_id","name","start_at","timezone","services","active_service_id","version","created_at","updated_at"],"properties":{"id":{"type":"string"},"event_id":{"type":"string"},"name":{"type":"string"},"start_at":{"anyOf":[{"type":"integer","description":"Planned show start (ms since Unix epoch)"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"services":{"type":"array","items":{"$ref":"#/components/schemas/ServiceTime"},"description":"Service times in the order they happen. Empty for a show that runs once. Set with PUT /v1/rundowns/{rundownId}/services."},"active_service_id":{"anyOf":[{"type":"string","description":"The service time the rundown is set up for: its timing, hard starts and the rows that run follow it. Moves on with POST /v1/rooms/{roomId}/playback/next-service. Null without service times."},{"type":"null"}]},"version":{"type":"integer","description":"Increments on every change to the rundown or its items."},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Rundown"},"RundownSnapshotEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"rundown.snapshot"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"$ref":"#/components/schemas/RundownState"}},"title":"RundownSnapshotEvent","description":"Full rundown state. Sent on subscribe."},"RundownState":{"type":"object","required":["rundown","columns","groups","items","timing","tracking","version","server_time"],"properties":{"rundown":{"$ref":"#/components/schemas/Rundown"},"columns":{"type":"array","items":{"$ref":"#/components/schemas/Column"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/Group"}},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"timing":{"$ref":"#/components/schemas/Timing"},"tracking":{"$ref":"#/components/schemas/Tracking"},"version":{"type":"integer"},"server_time":{"type":"integer","description":"Server clock (ms since Unix epoch)"}},"title":"RundownState","description":"Everything a rundown grid needs, in one call."},"RundownUpdatedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"rundown.updated"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["rundown"],"properties":{"rundown":{"$ref":"#/components/schemas/Rundown"}}}},"title":"RundownUpdatedEvent","description":"The rundown's name, start or timezone changed."},"ServiceReport":{"type":"object","required":["rundown","generated_at","tolerance_ms","runs","rows","history"],"properties":{"rundown":{"type":"object","required":["id","name","start_at","timezone"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"start_at":{"anyOf":[{"type":"integer","description":"Planned show start (ms since Unix epoch)"},{"type":"null"}]},"timezone":{"type":"string"}}},"generated_at":{"type":"integer","description":"When the report was made (ms since Unix epoch)"},"tolerance_ms":{"type":"integer","description":"A row is on time when it ran no more than this far over its planned length."},"runs":{"type":"array","items":{"type":"object","required":["session_id","service_id","label","started_at","ended_at","summary"],"properties":{"session_id":{"type":"string","description":"The show caller's session for this run. Pass it as ?session_id= to GET …/reports/timing for that run alone."},"service_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"type":"string","description":"The service time's label, or \"Show\" for a run without one."},"started_at":{"type":"integer","description":"When the first row of this run went live (ms since Unix epoch)"},"ended_at":{"anyOf":[{"type":"integer","description":"When the last row of this run was left; null while live (ms since Unix epoch)"},{"type":"null"}]},"summary":{"type":"object","required":["rows","ran","on_time","over","under","not_run","drift_ms","end_drift_ms"],"properties":{"rows":{"type":"integer","description":"Timed rows of that service."},"ran":{"type":"integer"},"on_time":{"type":"integer"},"over":{"type":"integer"},"under":{"type":"integer"},"not_run":{"type":"integer"},"drift_ms":{"type":"integer","description":"Actual minus planned over the rows that ran: positive is behind plan."},"end_drift_ms":{"anyOf":[{"type":"integer","description":"How late (positive) or early the last row that ran ended against its planned end."},{"type":"null"}]}}}},"title":"ServiceRunSummary"},"description":"The runs compared, in the order they happened: by default the latest run of each service time."},"rows":{"type":"array","items":{"type":"object","required":["item_id","number","name","speaker","group","planned_duration_ms","services","runs"],"properties":{"item_id":{"type":"string"},"number":{"type":"string"},"name":{"type":"string"},"speaker":{"type":"string"},"group":{"anyOf":[{"type":"string","description":"Title of the group the row is in."},{"type":"null"}]},"planned_duration_ms":{"type":"integer"},"services":{"anyOf":[{"type":"array","items":{"type":"string"},"description":"The service times this row runs in; null for all."},{"type":"null"}]},"runs":{"type":"array","items":{"type":"object","required":["session_id","planned_start","actual_start","actual_ms","over_under_ms","start_drift_ms","status"],"properties":{"session_id":{"type":"string"},"planned_start":{"anyOf":[{"type":"integer","description":"Planned start for that service (ms since Unix epoch)"},{"type":"null"}]},"actual_start":{"anyOf":[{"type":"integer","description":"When the show caller took the row live (ms since Unix epoch)"},{"type":"null"}]},"actual_ms":{"anyOf":[{"type":"integer","description":"How long the row really ran."},{"type":"null"}]},"over_under_ms":{"anyOf":[{"type":"integer","description":"actual_ms minus planned_duration_ms: positive ran long."},{"type":"null"}]},"start_drift_ms":{"anyOf":[{"type":"integer","description":"actual_start minus planned_start: positive started late."},{"type":"null"}]},"status":{"type":"string","enum":["on_time","over","under","live","not_run","not_in_service"]}}},"description":"One entry per run, in the same order as the top-level runs."}}}},"history":{"type":"array","items":{"$ref":"#/components/schemas/ServiceRun"},"description":"Every run recorded for this rundown, newest first (up to 50), to pick others with ?sessions=."}},"title":"ServiceReport","description":"Planned against actual for several runs of one rundown side by side, such as the 9:00 and 11:00 services. Built from the show caller's tracking; a room linked to the show caller (the default) records it as it runs."},"ServiceRun":{"type":"object","required":["session_id","service_id","label","started_at","ended_at"],"properties":{"session_id":{"type":"string","description":"The show caller's session for this run. Pass it as ?session_id= to GET …/reports/timing for that run alone."},"service_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"label":{"type":"string","description":"The service time's label, or \"Show\" for a run without one."},"started_at":{"type":"integer","description":"When the first row of this run went live (ms since Unix epoch)"},"ended_at":{"anyOf":[{"type":"integer","description":"When the last row of this run was left; null while live (ms since Unix epoch)"},{"type":"null"}]}},"title":"ServiceRun"},"ServiceTime":{"type":"object","required":["id","label","starts_at","offset_ms"],"properties":{"id":{"type":"string"},"label":{"type":"string","description":"What people call it, e.g. \"9:00 AM\" or \"Saturday evening\"."},"starts_at":{"type":"integer","description":"When this service starts (ms since Unix epoch)"},"offset_ms":{"type":"integer","description":"How long after the rundown's start_at this service starts. Every time in the rundown moves by it while this service is the active one."}},"title":"ServiceTime","description":"One time the rundown runs. A church with services at 9:00 and 11:00 has one rundown with two service times; the room, its links and its screens stay the same."},"ServiceUpdatedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"service.updated"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["service","next_service","holding"],"properties":{"service":{"anyOf":[{"$ref":"#/components/schemas/ServiceTime"},{"type":"null"}]},"next_service":{"anyOf":[{"$ref":"#/components/schemas/ServiceTime"},{"type":"null"}]},"holding":{"type":"boolean"}}}},"title":"ServiceUpdatedEvent","description":"The service time the room is running, the one after it, or the holding screen changed: the room was reset for a service, the rundown's service times were edited, or the holding screen was turned on or off (it turns off by itself when a timer starts)."},"SpeakerPortal":{"type":"object","required":["speaker","rundown","show","slots","next","server_time"],"properties":{"speaker":{"type":"string"},"rundown":{"type":"object","required":["id","name","start_at","timezone"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"start_at":{"anyOf":[{"type":"integer","description":"Planned show start (ms since Unix epoch)"},{"type":"null"}]},"timezone":{"type":"string"}}},"show":{"type":"object","required":["running","over_under_ms","now"],"properties":{"running":{"type":"boolean","description":"The show caller is tracking this rundown right now."},"over_under_ms":{"anyOf":[{"type":"integer","description":"How late (positive) or early the row on stage started against its planned start. Null while the show is not running or has no start time."},{"type":"null"}]},"now":{"anyOf":[{"type":"object","required":["name","started_at","duration_ms"],"properties":{"name":{"type":"string"},"started_at":{"anyOf":[{"type":"integer","description":"When it went live (ms since Unix epoch)"},{"type":"null"}]},"duration_ms":{"type":"integer"}},"description":"The row on stage now."},{"type":"null"}]}}},"slots":{"type":"array","items":{"type":"object","required":["item_id","number","name","group","duration_ms","planned_start","expected_start","status","rows_before"],"properties":{"item_id":{"type":"string"},"number":{"type":"string"},"name":{"type":"string"},"group":{"anyOf":[{"type":"string"},{"type":"null"}]},"duration_ms":{"type":"integer"},"planned_start":{"anyOf":[{"type":"integer","description":"Planned start (ms since Unix epoch)"},{"type":"null"}]},"expected_start":{"anyOf":[{"type":"integer","description":"When the row is expected to start. While the show is not running: the planned start. While it runs: now plus the time the rows ahead still need (ms since Unix epoch)"},{"type":"null"}]},"status":{"type":"string","enum":["upcoming","live","done"]},"rows_before":{"type":"integer","description":"Timed rows still to run before this one."}}},"description":"The rows this speaker is on, in running order."},"next":{"anyOf":[{"type":"object","required":["item_id","starts_in_ms","live"],"properties":{"item_id":{"type":"string"},"starts_in_ms":{"anyOf":[{"type":"integer","description":"expected_start minus server_time; negative when the slot is overdue. Null when the rundown has no start time."},{"type":"null"}]},"live":{"type":"boolean","description":"This speaker is on stage now."}},"description":"The slot to show first: the live one, else the next upcoming one. Null when all are done."},{"type":"null"}]},"server_time":{"type":"integer","description":"Server clock (ms since Unix epoch)"}},"title":"SpeakerPortal","description":"What a speaker link shows: when this speaker is on, and how the show is running. It carries row titles and times only, never notes or columns."},"Stamp":{"type":"object","required":["item_id","column_id","stamped_at","stamped_by","source","item"],"properties":{"item_id":{"type":"string"},"column_id":{"type":"string"},"stamped_at":{"type":"integer","description":"The server clock at the moment of the stamp (ms since Unix epoch)"},"stamped_by":{"anyOf":[{"type":"string","description":"Credential that stamped it."},{"type":"null"}]},"source":{"type":"string","enum":["manual","auto"],"description":"auto: the column stamps by itself when the row goes live."},"item":{"$ref":"#/components/schemas/Item"}},"title":"Stamp","description":"A proof-of-performance stamp: when a row actually aired."},"StateSnapshotEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"state.snapshot"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"$ref":"#/components/schemas/RoomState"}},"title":"StateSnapshotEvent","description":"Full room state. Sent on subscribe and whenever the server cannot replay missed events."},"Status":{"type":"object","required":["status","checked_at","message","components","canary","days","incidents"],"properties":{"status":{"type":"string","enum":["operational","degraded","outage","unknown"]},"checked_at":{"type":"integer","description":"When this was worked out (ms since Unix epoch)"},"message":{"type":"string"},"components":{"type":"array","items":{"type":"object","required":["id","name","status","detail"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["operational","degraded","outage","unknown"]},"detail":{"type":"string"}}}},"canary":{"type":"object","required":["state","last_run","last_success_at","interval_ms"],"properties":{"state":{"type":"string","enum":["passing","failing","slow","stale","unknown"]},"last_run":{"anyOf":[{"$ref":"#/components/schemas/CanaryRun"},{"type":"null"}]},"last_success_at":{"anyOf":[{"type":"integer","description":"Start of the last run that passed (ms since Unix epoch)"},{"type":"null"}]},"interval_ms":{"type":"integer","description":"How often a run is expected."}}},"days":{"type":"array","items":{"type":"object","required":["date","runs","failed","uptime"],"properties":{"date":{"type":"string","description":"UTC day, YYYY-MM-DD."},"runs":{"type":"integer"},"failed":{"type":"integer"},"uptime":{"anyOf":[{"type":"number","description":"Percent of runs that passed; null on a day without runs."},{"type":"null"}]}}},"description":"The last thirty days, oldest first."},"incidents":{"type":"array","items":{"type":"object","required":["started_at","ended_at","failed_runs","error"],"properties":{"started_at":{"type":"integer","description":"First failed run (ms since Unix epoch)"},"ended_at":{"anyOf":[{"type":"integer","description":"First run that passed again; null while it lasts (ms since Unix epoch)"},{"type":"null"}]},"failed_runs":{"type":"integer"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"description":"Runs of failed checks in the last thirty days, newest first (up to ten)."}},"title":"Status"},"Template":{"type":"object","required":["id","name","category","description","built_in","item_count","column_names","duration_ms","created_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string","description":"Built-in starters use conference, worship, sports, broadcast, gala, corporate and livestream. Team templates may use any label, or none."},"description":{"type":"string"},"built_in":{"type":"boolean","description":"Built-in starters are the same for every team and cannot be changed."},"item_count":{"type":"integer"},"column_names":{"type":"array","items":{"type":"string"}},"duration_ms":{"type":"integer","description":"Planned length: the durations of all rows that count toward timing."},"created_at":{"anyOf":[{"type":"integer","description":"Created; null for built-in starters (ms since Unix epoch)"},{"type":"null"}]}},"title":"Template","description":"A starting point for a rundown."},"TemplateDetail":{"type":"object","required":["id","name","category","description","built_in","item_count","column_names","duration_ms","created_at","payload"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string","description":"Built-in starters use conference, worship, sports, broadcast, gala, corporate and livestream. Team templates may use any label, or none."},"description":{"type":"string"},"built_in":{"type":"boolean","description":"Built-in starters are the same for every team and cannot be changed."},"item_count":{"type":"integer"},"column_names":{"type":"array","items":{"type":"string"}},"duration_ms":{"type":"integer","description":"Planned length: the durations of all rows that count toward timing."},"created_at":{"anyOf":[{"type":"integer","description":"Created; null for built-in starters (ms since Unix epoch)"},{"type":"null"}]},"payload":{"$ref":"#/components/schemas/TemplatePayload"}},"title":"TemplateDetail"},"TemplateItem":{"type":"object","required":["kind","name","speaker","notes","duration_ms","group","muted","floating","row_color","wrap_up_yellow_s","wrap_up_red_s","anchor_start","item_number","cells"],"properties":{"kind":{"type":"string","enum":["item","header","note"]},"name":{"type":"string"},"speaker":{"type":"string"},"notes":{"type":"string"},"duration_ms":{"type":"integer"},"group":{"anyOf":[{"type":"integer","description":"Index into groups."},{"type":"null"}]},"muted":{"type":"boolean"},"floating":{"type":"boolean"},"row_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"wrap_up_yellow_s":{"type":"integer"},"wrap_up_red_s":{"type":"integer"},"anchor_start":{"anyOf":[{"type":"string"},{"type":"null"}]},"item_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"cells":{"type":"object","patternProperties":{"^.*$":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]}},"description":"Cell values keyed by the column's index in columns."},"cell_styles":{"type":"object","patternProperties":{"^.*$":{"$ref":"#/components/schemas/CellStyle"}}}},"title":"TemplateItem"},"TemplatePayload":{"type":"object","required":["columns","groups","items"],"properties":{"columns":{"type":"array","items":{"type":"object","required":["type","name","department","width","options"],"properties":{"type":{"type":"string","enum":["text","rich_text","duration","start_time","over_under","select","private_notes","timestamp"],"description":"text and rich_text hold strings (rich_text is Markdown); duration holds milliseconds; start_time holds \"HH:MM[:SS]\"; select holds one of options.choices; over_under is computed by the server and private_notes shows each person's own note, so neither stores cell values; timestamp (proof of performance) holds the moment a row aired in ms since Unix epoch and is written only by POST …/items/{itemRef}/timestamp, never by a cell edit."},"name":{"type":"string"},"department":{"anyOf":[{"type":"string"},{"type":"null"}]},"width":{"type":"integer"},"options":{"type":"object","properties":{"choices":{"type":"array","items":{"type":"object","required":["value"],"properties":{"value":{"type":"string","minLength":1,"maxLength":60},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}}},"maxItems":60,"description":"Allowed values of a select column."},"auto_stamp":{"type":"boolean","description":"timestamp columns only. Stamp the cell by itself when the show caller takes the row live, if it is still empty."}}}}}},"groups":{"type":"array","items":{"type":"object","required":["title","target_duration_ms","collapsed_default","color"],"properties":{"title":{"type":"string"},"target_duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"collapsed_default":{"type":"boolean"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}}}},"items":{"type":"array","items":{"$ref":"#/components/schemas/TemplateItem"}}},"title":"TemplatePayload","description":"A rundown's shape without ids: its columns, groups and rows."},"TimerFinishedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"timer.finished"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["timer_id","due","fired","late"],"properties":{"timer_id":{"type":"string"},"due":{"type":"integer","description":"When the event was due (ms since Unix epoch)"},"fired":{"type":"integer","description":"When the scheduler fired it (ms since Unix epoch)"},"late":{"type":"boolean","description":"True when fired more than 250 ms after it was due (e.g. after a scheduler restart)."}}}},"title":"TimerFinishedEvent","description":"The running timer reached zero."},"TimerOverrunEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"timer.overrun"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["timer_id","due","fired","late"],"properties":{"timer_id":{"type":"string"},"due":{"type":"integer","description":"When the event was due (ms since Unix epoch)"},"fired":{"type":"integer","description":"When the scheduler fired it (ms since Unix epoch)"},"late":{"type":"boolean","description":"True when fired more than 250 ms after it was due (e.g. after a scheduler restart)."}}}},"title":"TimerOverrunEvent","description":"The timer passed zero and keeps counting into overrun. Emitted once."},"TimerRedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"timer.red"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["timer_id","due","fired","late"],"properties":{"timer_id":{"type":"string"},"due":{"type":"integer","description":"When the event was due (ms since Unix epoch)"},"fired":{"type":"integer","description":"When the scheduler fired it (ms since Unix epoch)"},"late":{"type":"boolean","description":"True when fired more than 250 ms after it was due (e.g. after a scheduler restart)."}}}},"title":"TimerRedEvent","description":"The running timer reached its red wrap-up point."},"TimerRef":{"anyOf":[{"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},{"type":"object","required":["external_id"],"properties":{"external_id":{"type":"string"}}},{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},{"type":"object","required":["index"],"properties":{"index":{"type":"integer","minimum":0}}}],"title":"TimerRef","description":"Target a timer by id, your external_id, its name, or (as a convenience only) its zero-based position."},"TimersChangedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"timers.changed"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["created","updated","deleted","current_timer","next_timer"],"properties":{"created":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"updated":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"deleted":{"type":"array","items":{"type":"string"}},"order":{"type":"array","items":{"type":"string"},"description":"Item ids in their new order, when the order changed."},"current_timer":{"anyOf":[{"$ref":"#/components/schemas/Item"},{"type":"null"}]},"next_timer":{"anyOf":[{"$ref":"#/components/schemas/Item"},{"type":"null"}]}}}},"title":"TimersChangedEvent","description":"Items of the room's active rundown changed. Carries the changed data, not just a refetch hint."},"TimerSelectedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"timer.selected"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["timer","playback"],"properties":{"timer":{"$ref":"#/components/schemas/Item"},"playback":{"$ref":"#/components/schemas/Playback"}}}},"title":"TimerSelectedEvent","description":"A timer was cued."},"TimerStartedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"timer.started"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["timer","playback"],"properties":{"timer":{"$ref":"#/components/schemas/Item"},"playback":{"$ref":"#/components/schemas/Playback"}}}},"title":"TimerStartedEvent","description":"A timer started or resumed."},"TimerStoppedEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"timer.stopped"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["timer","playback"],"properties":{"timer":{"$ref":"#/components/schemas/Item"},"playback":{"$ref":"#/components/schemas/Playback"}}}},"title":"TimerStoppedEvent","description":"A timer was paused or left."},"TimerYellowEvent":{"type":"object","required":["type","room_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"timer.yellow"},"room_id":{"type":"string"},"version":{"type":"integer","description":"Room version after this event. Apply events in version order; on a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["timer_id","due","fired","late"],"properties":{"timer_id":{"type":"string"},"due":{"type":"integer","description":"When the event was due (ms since Unix epoch)"},"fired":{"type":"integer","description":"When the scheduler fired it (ms since Unix epoch)"},"late":{"type":"boolean","description":"True when fired more than 250 ms after it was due (e.g. after a scheduler restart)."}}}},"title":"TimerYellowEvent","description":"The running timer reached its yellow wrap-up point."},"Timing":{"type":"object","required":["rundown_id","version","header","items","groups"],"properties":{"rundown_id":{"type":"string"},"version":{"type":"integer"},"header":{"$ref":"#/components/schemas/TimingHeader"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemTiming"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/GroupTiming"}}},"title":"Timing","description":"Computed by the server. Clients render it; they never redo the math."},"TimingHeader":{"type":"object","required":["planned_start","planned_end","planned_duration_ms","over_under_ms","time_of_day","timezone","item_count"],"properties":{"planned_start":{"anyOf":[{"type":"integer","description":"Start of the first timed row (ms since Unix epoch)"},{"type":"null"}]},"planned_end":{"anyOf":[{"type":"integer","description":"End of the last timed row (ms since Unix epoch)"},{"type":"null"}]},"planned_duration_ms":{"type":"integer","description":"Sum of the durations that count."},"over_under_ms":{"anyOf":[{"type":"integer","description":"Show over/under from show-caller tracking, at time_of_day: positive is behind plan. Null before the first row is tracked."},{"type":"null"}]},"time_of_day":{"type":"integer","description":"Server clock (ms since Unix epoch)"},"timezone":{"type":"string","description":"Timezone the rundown's wall-clock times are in."},"item_count":{"type":"integer","description":"Rows that count toward timing."}},"title":"TimingHeader"},"TimingRecalculatedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"timing.recalculated"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["header","items","groups"],"properties":{"header":{"$ref":"#/components/schemas/TimingHeader"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemTiming"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/GroupTiming"}}}}},"title":"TimingRecalculatedEvent","description":"Computed times changed. Carries only the rows whose times changed, plus the header and group roll-ups."},"TimingReport":{"type":"object","required":["rundown","generated_at","tolerance_ms","summary","rows","session_id","service"],"properties":{"rundown":{"type":"object","required":["id","name","start_at","timezone"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"start_at":{"anyOf":[{"type":"integer","description":"Planned show start (ms since Unix epoch)"},{"type":"null"}]},"timezone":{"type":"string"}}},"generated_at":{"type":"integer","description":"When the report was made (ms since Unix epoch)"},"tolerance_ms":{"type":"integer","description":"A row is on time when it ran no more than this far over its planned length."},"summary":{"type":"object","required":["rows","ran","on_time","over","under","not_run","planned_ms","actual_ms","drift_ms","end_drift_ms"],"properties":{"rows":{"type":"integer","description":"Timed rows in the rundown."},"ran":{"type":"integer","description":"Rows that have run and finished."},"on_time":{"type":"integer"},"over":{"type":"integer"},"under":{"type":"integer"},"not_run":{"type":"integer"},"planned_ms":{"type":"integer","description":"Planned length of the rows that ran."},"actual_ms":{"type":"integer","description":"How long those rows really ran."},"drift_ms":{"type":"integer","description":"actual_ms minus planned_ms: positive is behind plan."},"end_drift_ms":{"anyOf":[{"type":"integer","description":"How late (positive) or early the last row that ran ended against its planned end."},{"type":"null"}]}}},"rows":{"type":"array","items":{"type":"object","required":["item_id","number","name","speaker","group","planned_start","planned_duration_ms","actual_start","actual_end","actual_ms","over_under_ms","start_drift_ms","status"],"properties":{"item_id":{"type":"string"},"number":{"type":"string"},"name":{"type":"string"},"speaker":{"type":"string"},"group":{"anyOf":[{"type":"string","description":"Title of the group the row is in."},{"type":"null"}]},"planned_start":{"anyOf":[{"type":"integer","description":"Planned start (ms since Unix epoch)"},{"type":"null"}]},"planned_duration_ms":{"type":"integer"},"actual_start":{"anyOf":[{"type":"integer","description":"When the show caller took the row live (ms since Unix epoch)"},{"type":"null"}]},"actual_end":{"anyOf":[{"type":"integer","description":"When the show caller left it; null while live or not run (ms since Unix epoch)"},{"type":"null"}]},"actual_ms":{"anyOf":[{"type":"integer","description":"How long the row really ran."},{"type":"null"}]},"over_under_ms":{"anyOf":[{"type":"integer","description":"actual_ms minus planned_duration_ms: positive ran long."},{"type":"null"}]},"start_drift_ms":{"anyOf":[{"type":"integer","description":"actual_start minus planned_start: positive started late."},{"type":"null"}]},"status":{"type":"string","enum":["on_time","over","under","live","not_run"]}}}},"session_id":{"anyOf":[{"type":"string","description":"The show this report is about (the show caller's session); null before anything was tracked."},{"type":"null"}]},"service":{"anyOf":[{"$ref":"#/components/schemas/ServiceTime"},{"type":"null"}]}},"title":"TimingReport","description":"Planned against actual for one rundown, row by row, with the drift it added up to. Built from the show caller's tracking. service is the service time the show was for, when the rundown has service times."},"Tracking":{"type":"object","required":["rundown_id","live_item_id","started_at","planned_ms","allotted_ms","item_run_ms","next_item_id","previous_item_id","completed_over_under_ms","over_under_ms","session_id","show_caller_id","followers"],"properties":{"rundown_id":{"type":"string"},"live_item_id":{"anyOf":[{"type":"string","description":"The row the show caller is on; null while nobody is tracking."},{"type":"null"}]},"started_at":{"anyOf":[{"type":"integer","description":"When the live row went live. The item run time is the server clock minus this. (ms since Unix epoch)"},{"type":"null"}]},"planned_ms":{"anyOf":[{"type":"integer","description":"Planned length of the live row."},{"type":"null"}]},"allotted_ms":{"anyOf":[{"type":"integer","description":"Time the live row was given when it went live. Equal to planned_ms for DURATION rows; for PLANNED_END and FINISH_TIME rows it is the time from going live to that end, so a late start is made up. The countdown runs against this; over/under is still measured against planned_ms."},{"type":"null"}]},"item_run_ms":{"anyOf":[{"type":"integer","description":"How long the live row has been running, at server_time."},{"type":"null"}]},"next_item_id":{"anyOf":[{"type":"string","description":"The row Next will go to (floating rows, headers and notes are skipped)."},{"type":"null"}]},"previous_item_id":{"anyOf":[{"type":"string","description":"The row Previous will go to."},{"type":"null"}]},"completed_over_under_ms":{"type":"integer","description":"Sum of actual minus planned over the rows finished in this show: positive is behind plan."},"over_under_ms":{"anyOf":[{"type":"integer","description":"Show over/under at server_time: completed_over_under_ms plus the live row's overrun once it passes its planned length. Null before the first row is tracked."},{"type":"null"}]},"session_id":{"anyOf":[{"type":"string","description":"Groups the rows of one show. A new one starts when tracking begins again after a stop."},{"type":"null"}]},"show_caller_id":{"anyOf":[{"type":"string","description":"Credential that made the last tracking move."},{"type":"null"}]},"followers":{"type":"integer","description":"Devices currently following the show caller."}},"title":"Tracking","description":"Show-caller position of a rundown. Clocks are stored as timestamps; clients render them against the synced server clock."},"TrackingUpdatedEvent":{"type":"object","required":["type","rundown_id","version","server_time","data"],"properties":{"type":{"type":"string","const":"tracking.updated"},"rundown_id":{"type":"string"},"version":{"type":"integer","description":"Rundown version after this change. Events of one change share a version; versions only go up. If you see a gap, refetch /state."},"server_time":{"type":"integer","description":"Server clock when the change was committed (ms since Unix epoch)"},"data":{"type":"object","required":["tracking"],"properties":{"tracking":{"$ref":"#/components/schemas/Tracking"}}}},"title":"TrackingUpdatedEvent","description":"The show caller moved: the live row, when it went live, and the show over/under. Followers scroll to live_item_id."},"TrialRoom":{"type":"object","required":["room","rundown_id","items","token","output_token","expires_at"],"properties":{"room":{"$ref":"#/components/schemas/Room"},"rundown_id":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"token":{"type":"string","description":"Trial token (rd_trial_…). Works like an API key limited to this room until the room is claimed or expires. Shown once."},"output_token":{"type":"string","description":"Output-link token for a second device (speaker view)."},"expires_at":{"type":"integer","description":"When the room is deleted unless it is claimed (ms since Unix epoch)"}},"title":"TrialRoom"},"View":{"type":"object","required":["hidden_column_ids","column_order","column_widths","density","card_column_id","updated_at"],"properties":{"hidden_column_ids":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Columns this person has hidden for themselves."},"column_order":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"This person's own column order. Columns not listed follow in the rundown's order."},"column_widths":{"type":"object","patternProperties":{"^.*$":{"type":"integer","minimum":60,"maximum":1200}},"description":"This person's own column widths in pixels, by column id."},"density":{"type":"string","enum":["comfortable","compact"]},"card_column_id":{"anyOf":[{"type":"string","description":"The one column shown on each card on a phone."},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"integer","description":"Last saved; null when this person has never changed their view (ms since Unix epoch)"},{"type":"null"}]}},"title":"View","description":"A personal view of a rundown. It belongs to one credential and changes nothing for anyone else."},"Workspace":{"type":"object","required":["id","name","color","events","rooms","keys","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"events":{"type":"integer","description":"Events in this workspace."},"rooms":{"type":"integer","description":"Rooms in this workspace."},"keys":{"type":"integer","description":"Active API keys limited to this workspace."},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Workspace","description":"A client workspace: one client's events and rooms. An API key can be limited to it, so a client or a freelancer sees only that work."}}},"paths":{"/v1/time":{"get":{"operationId":"getTime","summary":"Server clock for client clock sync","tags":["State"],"description":"Take 3–5 samples at startup and every 5 minutes; use the median offset after subtracting half the round-trip time.","security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock (ms since Unix epoch)"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms":{"get":{"operationId":"listRooms","summary":"List rooms","tags":["Rooms"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"in":"query","name":"limit","required":false}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Room"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createRoom","summary":"Create a room","tags":["Rooms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","description":"IANA timezone. Defaults to UTC.","examples":["America/New_York"]},"show_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","examples":["2026-11-21"]},{"type":"null"}]},"logo_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"active_rundown_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"workspace_id":{"anyOf":[{"type":"string","description":"Put the room in a client workspace, or null to take it out. Only team-wide keys may move a room; a key limited to a workspace creates rooms in its own."},{"type":"null"}]},"settings":{"type":"object","additionalProperties":{}}},"title":"RoomCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Room"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/reorder":{"post":{"operationId":"reorderRooms","summary":"Reorder the team's rooms","tags":["Rooms"],"description":"Sets the order GET /v1/rooms lists rooms in, for everyone in the team. Send the rooms in the new order; any you leave out keep their order after them. Ids that are not rooms of the team are refused.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["room_ids"],"properties":{"room_ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":500,"uniqueItems":true,"description":"Rooms in the order they should be listed. Rooms left out keep their order after these."}},"title":"RoomReorder"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Room"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}":{"get":{"operationId":"getRoom","summary":"Get a room","tags":["Rooms"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Room"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateRoom","summary":"Update a room","tags":["Rooms"],"description":"Changing active_rundown_id loads that rundown: playback stops, a new run session starts and the first timer is cued. A show caller left on that rundown from an earlier show (nothing moved for six hours, and no other room running it) is cleared too, so the room starts a fresh show. settings.tracking_drives_timer is on unless set to false: the room and the rundown's show caller then move together, both ways.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","description":"IANA timezone. Defaults to UTC.","examples":["America/New_York"]},"show_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","examples":["2026-11-21"]},{"type":"null"}]},"logo_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"active_rundown_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"workspace_id":{"anyOf":[{"type":"string","description":"Put the room in a client workspace, or null to take it out. Only team-wide keys may move a room; a key limited to a workspace creates rooms in its own."},{"type":"null"}]},"settings":{"type":"object","additionalProperties":{}}},"title":"RoomUpdate","description":"Changing active_rundown_id loads that rundown: playback stops and the first timer is cued. A show caller left on that rundown from an earlier show (nothing moved for six hours) is cleared at the same time. settings.tracking_drives_timer (default true) links the room to the rundown's show caller both ways; set it to false to run the room on its own. For rundowns with service times: settings.auto_arm_minutes (1 to 240) resets the room for the next service that many minutes before it starts, once no timer is running and the room has been left alone for five minutes; settings.holding_on_arm (default true) puts the screens on the holding screen when the room is reset for a service; settings.holding_message (up to 200 characters) is shown on the holding screen."}}},"description":"Changing active_rundown_id loads that rundown: playback stops and the first timer is cued. A show caller left on that rundown from an earlier show (nothing moved for six hours) is cleared at the same time. settings.tracking_drives_timer (default true) links the room to the rundown's show caller both ways; set it to false to run the room on its own. For rundowns with service times: settings.auto_arm_minutes (1 to 240) resets the room for the next service that many minutes before it starts, once no timer is running and the room has been left alone for five minutes; settings.holding_on_arm (default true) puts the screens on the holding screen when the room is reset for a service; settings.holding_message (up to 200 characters) is shown on the holding screen."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Room"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteRoom","summary":"Delete a room","tags":["Rooms"],"description":"Removes the room with its messages, output links, run history, chat, questions, automations and hardware map, and disconnects its screens. Rundowns are not touched: the one that was loaded stays in its event. Refused with STALE_STATE while a timer is running; stop it first. API keys limited to this room stop working.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/state":{"get":{"operationId":"getRoomState","summary":"Get everything a display needs","tags":["State"],"description":"One call returns the room, playback timestamps, current and next timer, the active message and the computed remaining time, phase and drift.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/runs":{"get":{"operationId":"listRuns","summary":"List the run records of the current session","tags":["State"],"description":"Planned versus actual for every timer that has run since the last start-fresh, oldest first. A timer that was run twice has two records. Refetch after timer.started, timer.stopped or timer.selected.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Run"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/state":{"get":{"operationId":"getStates","summary":"Get the state of several rooms","tags":["State"],"description":"For the multi-room producer view.","parameters":[{"schema":{"type":"string"},"example":"rm_a,rm_b","in":"query","name":"rooms","required":true,"description":"Comma-separated room ids (max 50)."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/RoomState"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/start":{"post":{"operationId":"playbackStart","summary":"Start or resume a timer","tags":["Playback"],"description":"Starts the selected timer, or the targeted one. Resuming shifts start and finish by the time spent paused. A no-op when it is already running. Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"timer":{"$ref":"#/components/schemas/TimerRef"},"from_memory":{"type":"boolean","description":"Resume a timer that already ran from where it stopped."},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/stop":{"post":{"operationId":"playbackStop","summary":"Pause the running timer","tags":["Playback"],"description":"Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/toggle":{"post":{"operationId":"playbackToggle","summary":"Start or stop","tags":["Playback"],"description":"Convenience for simple buttons. Official clients send explicit start/stop with expected_version. Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"timer":{"$ref":"#/components/schemas/TimerRef"},"from_memory":{"type":"boolean","description":"Resume a timer that already ran from where it stopped."},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/reset":{"post":{"operationId":"playbackReset","summary":"Reset a timer to its full duration","tags":["Playback"],"description":"The run record is kept. Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"timer":{"$ref":"#/components/schemas/TimerRef"},"autostart":{"type":"boolean","description":"Start the timer right away."},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/next":{"post":{"operationId":"playbackNext","summary":"Go to the next timer","tags":["Playback"],"description":"Does not wrap around: 422 INVALID_TRANSITION on the last timer. Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"autostart":{"type":"boolean","description":"Start the timer right away."},"from_memory":{"type":"boolean","description":"Resume a timer that already ran from where it stopped."},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/previous":{"post":{"operationId":"playbackPrevious","summary":"Go to the previous timer","tags":["Playback"],"description":"Resets the current timer if it is running; otherwise selects the previous one. Does not wrap around. Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"autostart":{"type":"boolean","description":"Start the timer right away."},"from_memory":{"type":"boolean","description":"Resume a timer that already ran from where it stopped."},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/select":{"post":{"operationId":"playbackSelect","summary":"Cue a timer without starting it","tags":["Playback"],"description":"Returns the new room state including version.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["timer"],"properties":{"timer":{"$ref":"#/components/schemas/TimerRef"},"from_memory":{"type":"boolean","description":"Resume a timer that already ran from where it stopped."},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/jump":{"post":{"operationId":"playbackJump","summary":"Move the playhead","tags":["Playback"],"description":"Positive amounts jump forward, negative back. Never moves before the timer's start position. Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"string","description":"Duration with a unit: \"30s\", \"5m\", \"1h\".","examples":["30s"]},"amount_ms":{"type":"integer","description":"Alternative to amount, in milliseconds."},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/add-time":{"post":{"operationId":"playbackAddTime","summary":"Add time to the selected timer","tags":["Playback"],"description":"Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"string","description":"Duration with a unit: \"30s\", \"5m\", \"1h\".","examples":["30s"]},"amount_ms":{"type":"integer","description":"Alternative to amount, in milliseconds."},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/subtract-time":{"post":{"operationId":"playbackSubtractTime","summary":"Subtract time from the selected timer","tags":["Playback"],"description":"Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"string","description":"Duration with a unit: \"30s\", \"5m\", \"1h\".","examples":["30s"]},"amount_ms":{"type":"integer","description":"Alternative to amount, in milliseconds."},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/start-fresh":{"post":{"operationId":"playbackStartFresh","summary":"Start fresh","tags":["Playback"],"description":"Resets every timer, selects the first one and starts a new run session. The rundown is kept. Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/next-service":{"post":{"operationId":"playbackNextService","summary":"Reset for the next service","tags":["Playback"],"description":"For rundowns with service times (PUT /v1/rundowns/{rundownId}/services): sets the loaded rundown up for the next service time, or for service_id, so its timing, hard starts and rows follow that service; starts the show caller and the room afresh, with the new run labelled with the service; cues the first row; and puts the screens on the holding screen (unless holding: false or the room's settings.holding_on_arm is false). The room, its output links and its screens stay as they are. The earlier run is kept for GET …/reports/services. Without service times it starts a fresh run of the same rundown. Refused while a timer is running unless stop_running: true. 422 INVALID_TRANSITION after the last service unless service_id is sent. Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"service_id":{"type":"string","description":"The service time to set up for. Defaults to the one after the current one."},"holding":{"type":"boolean","description":"Put the screens on the holding screen until the first timer starts. Defaults to the room's settings.holding_on_arm (on unless set to false)."},"stop_running":{"type":"boolean","description":"Stop a timer that is still running. Without it a running timer refuses the reset with 422 INVALID_TRANSITION (details.running: true), so a show in progress is never cut short by mistake."},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}},"title":"NextService"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/playback/undo":{"post":{"operationId":"playbackUndo","summary":"Undo the last playback command","tags":["Playback"],"description":"Takes back the last playback command (start, stop, next, previous, select, reset, jump, add or subtract time): the timer, its timestamps and its run record return to what they were. A timer that was running runs again as if nothing had happened. The last 50 commands of the current run session can be undone, newest first; `playback.undo_depth` says how many. Start fresh clears the history. 422 INVALID_TRANSITION when there is nothing to undo. Returns the new room state including version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/display/blackout":{"put":{"operationId":"setBlackout","summary":"Turn blackout on or off","tags":["Display"],"description":"An explicit state, not a toggle, so it is safe to retry.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/display/holding":{"put":{"operationId":"setHolding","summary":"Turn the holding screen on or off","tags":["Display"],"description":"The holding screen stands in for the timer between services: the service time, a countdown to when it starts, the room's settings.holding_message and the logo. It turns off by itself when a timer starts. An explicit state, not a toggle, so it is safe to retry.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/display/on-air":{"put":{"operationId":"setOnAir","summary":"Turn on-air on or off","tags":["Display"],"description":"An explicit state, not a toggle, so it is safe to retry.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"expected_version":{"type":"integer","description":"Room version the client acted on. A mismatch returns 409 STALE_STATE, so two operators pressing Next together advance only once."},"expected_timer_id":{"anyOf":[{"type":"string","description":"Timer the client believes is selected. A mismatch returns 409 STALE_STATE."},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/display/flash":{"post":{"operationId":"flashDisplay","summary":"Flash the output screens","tags":["Display"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":999,"default":3}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/display/stop-flash":{"post":{"operationId":"stopFlash","summary":"Stop flashing","tags":["Display"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/messages":{"get":{"operationId":"listMessages","summary":"List a room's messages","tags":["Messages"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Message"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createMessage","summary":"Create a message","tags":["Messages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"maxLength":1000},"color":{"type":"string","enum":["white","green","red"]},"bold":{"type":"boolean"},"uppercase":{"type":"boolean"}},"title":"MessageCreate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Message"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/messages/{messageId}":{"get":{"operationId":"getMessage","summary":"Get a message","tags":["Messages"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"messageId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Message"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateMessage","summary":"Update a message","tags":["Messages"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":1000},"color":{"type":"string","enum":["white","green","red"]},"bold":{"type":"boolean"},"uppercase":{"type":"boolean"}},"title":"MessageUpdate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"messageId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Message"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteMessage","summary":"Delete a message","tags":["Messages"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"messageId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/messages/{messageId}/show":{"post":{"operationId":"showMessage","summary":"Show a message on the output screens","tags":["Messages"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"focus":{"type":"boolean","description":"Show the message fullscreen."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"messageId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/messages/from-preset/{presetId}":{"post":{"operationId":"showMessagePreset","summary":"Show a team preset on the output screens","tags":["Messages"],"description":"One tap: the preset becomes a message of this room (reused on the next tap) and is shown immediately.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"focus":{"type":"boolean","description":"Show the message fullscreen."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"presetId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/messages/{messageId}/hide":{"post":{"operationId":"hideMessage","summary":"Hide a message","tags":["Messages"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"messageId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/messages/hide-all":{"post":{"operationId":"hideAllMessages","summary":"Hide whatever message is on screen","tags":["Messages"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/output-links":{"post":{"operationId":"createOutputLink","summary":"Create an output-screen link","tags":["Outputs"],"description":"Output links are revocable, view-only tokens tied to one room and one output configuration. A link can also carry its own branding and chime behaviour, can let the screen reply in the room chat, and can ask for a password.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"view":{"type":"string","enum":["speaker","confidence","lobby","overlay","prompter","tally"]},"identifier":{"type":"string","maxLength":80,"description":"Device name shown in the live connections list."},"mirror":{"type":"string","enum":["none","horizontal","vertical"]},"delay_s":{"type":"integer","minimum":0,"maximum":3600},"tz":{"type":"string"},"hide_controls":{"type":"boolean"},"allow_reply":{"type":"boolean","description":"Let this screen reply in the room chat. Needs a plan with presenter chat."},"chimes":{"anyOf":[{"type":"object","properties":{"yellow":{"type":"boolean"},"red":{"type":"boolean"},"zero":{"type":"boolean"},"message":{"type":"boolean"},"volume":{"type":"number","minimum":0,"maximum":1,"description":"Multiplies the room volume."},"muted":{"type":"boolean"}}},{"type":"null"}]},"branding":{"anyOf":[{"$ref":"#/components/schemas/BrandingSettings"},{"type":"null"}]},"layout_id":{"anyOf":[{"type":"string","description":"An output layout of the team (see /v1/output-layouts). null goes back to the standard screen. Needs a plan with output layouts."},{"type":"null"}]},"password":{"anyOf":[{"type":"string","minLength":4,"maxLength":200},{"type":"null"}],"description":"The screen must enter this before it shows anything. Stored hashed. null removes it. Setting or changing it disconnects the screens on this link. Needs a plan with password-protected outputs."}},"title":"OutputLinkCreate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["link","token","url"],"properties":{"link":{"$ref":"#/components/schemas/OutputLink"},"token":{"type":"string","description":"View-only token for this room and output configuration. GET /v1/rooms/{roomId}/output-links/{linkId}/url shows it again."},"url":{"type":"string","description":"Open on the display. The token travels in the URL fragment, which browsers never send to servers or logs."}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listOutputLinks","summary":"List a room's output links","tags":["Outputs"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/OutputLink"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/output-links/{linkId}/url":{"get":{"operationId":"getOutputLinkUrl","summary":"Show an output link again","tags":["Outputs"],"description":"The token and URL of a link that is on, for copying it to another screen. Output links are view-only, so they can be shown again to whoever may manage the room; API keys are still shown once. Links made before this existed (can_copy false) answer 409 CONFLICT: give one a new address with POST …/reissue.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"linkId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["token","url"],"properties":{"token":{"type":"string","description":"The link's rd_out_… token."},"url":{"type":"string","description":"Open on the display."}},"title":"OutputLinkUrl"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/output-links/{linkId}/reissue":{"post":{"operationId":"reissueOutputLink","summary":"Give an output link a new address","tags":["Outputs"],"description":"A new token for the same link: same id, name and options. The old URL stops working at once and the screens open on it are disconnected. Use it when a link was shared too widely, or to copy a link made before links could be copied again.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"linkId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["link","token","url"],"properties":{"link":{"$ref":"#/components/schemas/OutputLink"},"token":{"type":"string","description":"View-only token for this room and output configuration. GET /v1/rooms/{roomId}/output-links/{linkId}/url shows it again."},"url":{"type":"string","description":"Open on the display. The token travels in the URL fragment, which browsers never send to servers or logs."}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/output-links/{linkId}":{"patch":{"operationId":"updateOutputLink","summary":"Change an output link's options","tags":["Outputs"],"description":"Only the fields you send change; the token and the URL stay the same. Screens already open pick the change up when they next load or when branding.updated arrives.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"view":{"type":"string","enum":["speaker","confidence","lobby","overlay","prompter","tally"]},"identifier":{"type":"string","maxLength":80,"description":"Device name shown in the live connections list."},"mirror":{"type":"string","enum":["none","horizontal","vertical"]},"delay_s":{"type":"integer","minimum":0,"maximum":3600},"tz":{"type":"string"},"hide_controls":{"type":"boolean"},"allow_reply":{"type":"boolean","description":"Let this screen reply in the room chat. Needs a plan with presenter chat."},"chimes":{"anyOf":[{"type":"object","properties":{"yellow":{"type":"boolean"},"red":{"type":"boolean"},"zero":{"type":"boolean"},"message":{"type":"boolean"},"volume":{"type":"number","minimum":0,"maximum":1,"description":"Multiplies the room volume."},"muted":{"type":"boolean"}}},{"type":"null"}]},"branding":{"anyOf":[{"$ref":"#/components/schemas/BrandingSettings"},{"type":"null"}]},"layout_id":{"anyOf":[{"type":"string","description":"An output layout of the team (see /v1/output-layouts). null goes back to the standard screen. Needs a plan with output layouts."},{"type":"null"}]},"password":{"anyOf":[{"type":"string","minLength":4,"maxLength":200},{"type":"null"}],"description":"The screen must enter this before it shows anything. Stored hashed. null removes it. Setting or changing it disconnects the screens on this link. Needs a plan with password-protected outputs."}},"title":"OutputLinkUpdate","description":"Only the fields you send change. The token stays the same."}}},"description":"Only the fields you send change. The token stays the same."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"linkId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/OutputLink"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"revokeOutputLink","summary":"Revoke an output link","tags":["Outputs"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"linkId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/public/output-links/unlock":{"post":{"operationId":"unlockOutputLink","summary":"Trade an output link and its password for a session","tags":["Outputs"],"description":"No Authorization header: the link's token goes in the body with the password. A password-protected link's own token opens nothing else (401 with details.password_required). The session lasts 720 minutes and can be renewed while the link and its password stand. Five wrong passwords in ten minutes lock the link's prompt for the rest of the ten minutes (429).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token","password"],"properties":{"token":{"type":"string","maxLength":200,"description":"The rd_out_… token of the link."},"password":{"type":"string","minLength":1,"maxLength":200}}}}}},"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["token","expires_at","link"],"properties":{"token":{"type":"string","description":"Use it as the bearer token in place of the link's own. It is the same screen: same room, same options."},"expires_at":{"type":"integer","description":"When the session ends. Renew it before then with POST /v1/output-links/session/renew. (ms since Unix epoch)"},"link":{"$ref":"#/components/schemas/OutputLink"}},"title":"OutputSession"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/output-links/session/renew":{"post":{"operationId":"renewOutputSession","summary":"Renew the session of a password-protected screen","tags":["Outputs"],"description":"Called with the current session as the bearer token; returns a new one. Works while the link is on and its password has not changed, so a screen that stays open never asks twice.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["token","expires_at","link"],"properties":{"token":{"type":"string","description":"Use it as the bearer token in place of the link's own. It is the same screen: same room, same options."},"expires_at":{"type":"integer","description":"When the session ends. Renew it before then with POST /v1/output-links/session/renew. (ms since Unix epoch)"},"link":{"$ref":"#/components/schemas/OutputLink"}},"title":"OutputSession"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events":{"get":{"operationId":"listEvents","summary":"List events","tags":["Events"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"in":"query","name":"limit","required":false}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createEvent","summary":"Create an event","tags":["Events"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string"},"start_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","examples":["2026-11-21"]},{"type":"null"}]},"end_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","examples":["2026-11-21"]},{"type":"null"}]},"workspace_id":{"anyOf":[{"type":"string","description":"Put the event (and with it its rundowns) in a client workspace, or null to take it out. Only team-wide keys may move an event; a key limited to a workspace creates events in its own."},{"type":"null"}]}},"title":"EventCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Event"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{eventId}":{"get":{"operationId":"getEvent","summary":"Get an event","tags":["Events"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"eventId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Event"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateEvent","summary":"Update an event","tags":["Events"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string"},"start_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","examples":["2026-11-21"]},{"type":"null"}]},"end_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","examples":["2026-11-21"]},{"type":"null"}]},"workspace_id":{"anyOf":[{"type":"string","description":"Put the event (and with it its rundowns) in a client workspace, or null to take it out. Only team-wide keys may move an event; a key limited to a workspace creates events in its own."},{"type":"null"}]}},"title":"EventUpdate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"eventId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Event"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteEvent","summary":"Delete an empty event","tags":["Events"],"description":"Returns 409 CONFLICT while the event still contains rundowns.","parameters":[{"schema":{"type":"string"},"in":"path","name":"eventId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{eventId}/rundowns":{"get":{"operationId":"listRundowns","summary":"List an event's rundowns","tags":["Rundowns"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"eventId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Rundown"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createRundown","summary":"Create a rundown","tags":["Rundowns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"start_at":{"anyOf":[{"type":"integer","description":"Planned show start (ms since Unix epoch)."},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]}},"title":"RundownCreate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"eventId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Rundown"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}":{"get":{"operationId":"getRundown","summary":"Get a rundown","tags":["Rundowns"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Rundown"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateRundown","summary":"Update a rundown","tags":["Rundowns"],"description":"Changing start_at or timezone recalculates the timing of every row.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"start_at":{"anyOf":[{"type":"integer","description":"Planned show start (ms since Unix epoch)."},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]}},"title":"RundownUpdate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Rundown"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteRundown","summary":"Delete a rundown and its items","tags":["Rundowns"],"description":"Returns 409 CONFLICT while a room is playing the rundown.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/services":{"put":{"operationId":"setServiceTimes","summary":"Set the service times","tags":["Rundowns"],"description":"For a show that runs more than once, such as church services at 9:00 and 11:00: one rundown, one room, the same links and screens. The rundown is planned for its start_at; each service time is an offset from it, and while a service is the active one the whole plan moves with it: planned starts, hard starts, scheduled starts and set end times. Rows can be limited to some services with the item field services. Send the full list; ids you leave out are deleted (rows that named them run in every service again). Move a room to the next service with POST /v1/rooms/{roomId}/playback/next-service.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["services"],"properties":{"services":{"type":"array","items":{"type":"object","required":["starts_at"],"properties":{"id":{"type":"string","description":"Keep an existing service time (and the rows that name it) by sending its id; leave it out for a new one."},"label":{"type":"string","minLength":1,"maxLength":60,"description":"Defaults to the time of day, e.g. \"11:00 AM\"."},"starts_at":{"type":"integer","description":"When this service starts (ms since Unix epoch). Stored as an offset from the rundown's start_at, so it moves when the rundown is moved or duplicated to another day."}}},"maxItems":10,"description":"Every service time, in any order; they are kept in the order they happen. An empty list makes the rundown a show that runs once."},"active_service_id":{"anyOf":[{"type":"string","description":"Which one the rundown is set up for. Defaults to the one it was set up for, or the first."},{"type":"null"}]}},"title":"ServicesPut","description":"The rundown needs a start_at first: it is the moment the rundown is planned for, and service times are measured from it."}}},"description":"The rundown needs a start_at first: it is the moment the rundown is planned for, and service times are measured from it."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Rundown"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items":{"get":{"operationId":"listItems","summary":"List a rundown's items in order","tags":["Items"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createItem","summary":"Add an item","tags":["Items"],"description":"Every item is a timer. Rooms playing this rundown receive timers.changed.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemCreate"}}},"description":"Give the length as duration_ms or as duration (\"5m\"). Defaults to 5 minutes."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Item"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/reorder":{"post":{"operationId":"reorderItems","summary":"Reorder items","tags":["Items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["item_ids"],"properties":{"item_ids":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Every item id of the rundown, in the new order."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/bulk":{"post":{"operationId":"bulkItems","summary":"Create, update and delete items in one transaction","tags":["Items"],"description":"Everything applies or nothing does. Use dry_run to preview the result.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemBulk"}}},"description":"Create, update and delete in a single transaction: everything applies or nothing does."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["created","updated","deleted","dry_run","items_total"],"properties":{"created":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"updated":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"deleted":{"type":"array","items":{"type":"string"}},"dry_run":{"type":"boolean"},"items_total":{"type":"integer","description":"Number of items in the rundown after the change."}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/{itemRef}":{"get":{"operationId":"getItem","summary":"Get an item","tags":["Items"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Item"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateItem","summary":"Update an item","tags":["Items"],"description":"Changes the item's fields, its cells ({ cells: { [columnId]: value } }) and its formatting (row_color, cell_styles) in one call. Locked rows answer 409 ITEM_LOCKED. Send expected_rev or expected_cell_revs to get 409 STALE_STATE (with the current item in details) instead of overwriting someone else's edit; two people editing different cells of one row never collide. Editing the timer that is currently loaded takes effect the next time it is cued or reset.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemUpdate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Item"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteItem","summary":"Delete an item","tags":["Items"],"description":"Returns 422 INVALID_TRANSITION while the item is the selected timer of a room.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/{itemRef}/lock":{"post":{"operationId":"lockItem","summary":"Lock a row","tags":["Items"],"description":"A locked row rejects edits and deletion (409 ITEM_LOCKED) until it is unlocked. It can still be played and moved.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Item"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/{itemRef}/unlock":{"post":{"operationId":"unlockItem","summary":"Unlock a row","tags":["Items"],"description":"Makes the row editable again.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Item"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/{itemRef}/float":{"post":{"operationId":"floatItem","summary":"Float a row","tags":["Items"],"description":"A floating row stays in the rundown but is left out of timing, and Next / Previous skip it.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Item"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/{itemRef}/unfloat":{"post":{"operationId":"unfloatItem","summary":"Put a floating row back","tags":["Items"],"description":"The row counts toward timing again.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Item"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/{itemRef}/duplicate":{"post":{"operationId":"duplicateItem","summary":"Duplicate a row","tags":["Items"],"description":"Copies the row and its cells to the position right below it. The copy is unlocked and has no external_id.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Item"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/private-notes":{"get":{"operationId":"listPrivateNotes","summary":"List your private notes","tags":["Items"],"description":"Your own notes by item id. Private notes belong to the credential that wrote them: nobody else can read them and they never appear in items or events.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","additionalProperties":{"type":"string"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/{itemRef}/private-note":{"put":{"operationId":"setPrivateNote","summary":"Write your private note on a row","tags":["Items"],"description":"Needs only read access to the rundown, so every crew member can keep notes. An empty text removes the note.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":20000,"description":"An empty string removes the note."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["item_id","text"],"properties":{"item_id":{"type":"string"},"text":{"type":"string"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/{itemRef}/timestamp":{"post":{"operationId":"stampItem","summary":"Stamp a row with the server time","tags":["Items"],"description":"Proof of performance: writes the server clock into the row's timestamp cell, the moment a sponsor read or any other deliverable actually aired. Needs operate. The stamp travels in items.changed like any cell, is kept in history, and is recorded with who made it. A cell that is already stamped answers 409 unless overwrite is true. Columns created with options.auto_stamp stamp by themselves when the show caller takes the row live.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"column_id":{"type":"string","description":"The timestamp column to stamp. Defaults to the rundown's first timestamp column."},"overwrite":{"type":"boolean","description":"Stamp again over an existing stamp. Without it a stamped cell answers 409, so a double press cannot move a proof of performance."}},"title":"StampSet","additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Stamp"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"clearStamp","summary":"Clear a row's stamp","tags":["Items"],"description":"Empties the timestamp cell. Needs manage. The cleared stamp stays in the rundown's history.","parameters":[{"schema":{"type":"string"},"in":"query","name":"column_id","required":false,"description":"Defaults to the first timestamp column."},{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Item"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/reports/delivery":{"get":{"operationId":"getDeliveryReport","summary":"Sponsor-delivery report","tags":["Reports"],"description":"Which rows aired and exactly when: every stamped row with its air time, who stamped it, its planned start and length, and how long it really ran according to the show caller. With ?label=, the report lists every row carrying that label, stamped or not, so missing deliveries show up. To hand it to a sponsor as a file, create an export with content: \"delivery\". Needs a plan with reports.","parameters":[{"schema":{"type":"string","maxLength":60},"in":"query","name":"label","required":false},{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeliveryReport"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/reports/timing":{"get":{"operationId":"getTimingReport","summary":"Planned-vs-actual report","tags":["Reports"],"description":"Every timed row with its planned start and length against when it really started and how long it really ran, the drift at each start, and totals. Rows that have not run are listed as not_run; rows that are not in the service time are left out. Built from the show caller's tracking of the current show, or of an earlier run with ?session_id= (from GET …/reports/services). To hand it over as a file, create an export with content: \"timing\" (pdf or csv). Needs a plan with reports.","parameters":[{"schema":{"type":"string"},"in":"query","name":"session_id","required":false,"description":"An earlier run of this rundown, e.g. the 9:00 service once the 11:00 one is under way."},{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/TimingReport"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/reports/services":{"get":{"operationId":"getServiceReport","summary":"Compare service times","tags":["Reports"],"description":"Planned against actual for several runs of one rundown side by side: by default the latest run of each service time (the latest three runs for a rundown without service times), or the runs named in ?sessions=. Each row has one entry per run, in the order of runs; a row that is not in a service is marked not_in_service there. history lists every run recorded, newest first. Needs a plan with reports.","parameters":[{"schema":{"type":"string"},"example":"ses_a,ses_b","in":"query","name":"sessions","required":false,"description":"Comma-separated session ids (up to 10)."},{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ServiceReport"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/state":{"get":{"operationId":"getRundownState","summary":"Get everything a rundown grid needs","tags":["Rundowns"],"description":"The rundown, its columns, groups, items with their cells, and the computed timing, read at one version. Fetch it on load and again whenever you see a gap in event versions.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RundownState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/timing":{"get":{"operationId":"getTiming","summary":"Get the computed timing","tags":["Timing"],"description":"Planned start and end of every row, hard starts, group roll-ups with over/under against their target, and the header clocks. The server computes this; clients render it and never redo the math. Each row starts where the previous one ended; a hard start (anchor_start) pins a row to a wall-clock time; muted rows do not push later rows; floating rows are left out; headers and notes take no time.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Timing"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/columns":{"get":{"operationId":"listColumns","summary":"List a rundown's columns in order","tags":["Columns"],"description":"Archived columns are included (archived_at is set).","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Column"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createColumn","summary":"Add a column","tags":["Columns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColumnCreate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Column"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/columns/reorder":{"post":{"operationId":"reorderColumns","summary":"Reorder columns","tags":["Columns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["column_ids"],"properties":{"column_ids":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Every column id of the rundown (archived ones included), in the new order."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Column"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/columns/{columnId}":{"patch":{"operationId":"updateColumn","summary":"Rename, resize or reconfigure a column","tags":["Columns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColumnUpdate"}}},"description":"A column's type cannot change; add a new column instead."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"columnId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Column"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteColumn","summary":"Delete a column and its cells","tags":["Columns"],"description":"This cannot be undone; archive the column to keep its cells.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"columnId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/columns/{columnId}/archive":{"post":{"operationId":"archiveColumn","summary":"Archive a column","tags":["Columns"],"description":"Hides the column for everyone and keeps its cells.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"columnId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Column"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/columns/{columnId}/restore":{"post":{"operationId":"restoreColumn","summary":"Restore an archived column","tags":["Columns"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"columnId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Column"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/groups":{"get":{"operationId":"listGroups","summary":"List a rundown's groups","tags":["Groups"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Group"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createGroup","summary":"Group rows","tags":["Groups"],"description":"Creates a titled block and puts item_ids in it. The timing reports the group's rolled-up length and, with target_duration_ms, how far over or under it is.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupCreate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Group"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/groups/{groupId}":{"patch":{"operationId":"updateGroup","summary":"Update a group","tags":["Groups"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupUpdate"}}},"description":"item_ids, when sent, replaces the group's membership."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"groupId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Group"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteGroup","summary":"Ungroup","tags":["Groups"],"description":"Removes the group; its rows stay in the rundown.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"groupId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/tracking":{"get":{"operationId":"getTracking","summary":"Get the show-caller position","tags":["Show calling"],"description":"The live row, when it went live, the item run time and show over/under at the server clock, and the header clocks (planned, over/under, time of day).","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["tracking","header"],"properties":{"tracking":{"$ref":"#/components/schemas/Tracking"},"header":{"$ref":"#/components/schemas/TimingHeader"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/tracking/track":{"post":{"operationId":"trackItem","summary":"Take a row live","tags":["Show calling"],"description":"Makes item_ref the live row and starts its run clock. Everyone on the rundown receives tracking.updated and timing.recalculated (actual start and end, over/under). In rooms playing this rundown the row's timer starts in the same transaction, unless the room has settings.tracking_drives_timer: false. Send expected_item_id so a double press cannot skip a row.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"item_ref":{"type":"string","description":"The row to take live (track only): an item id, ext:<external_id>, num:<item number> or name:<name>."},"expected_item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The row you believe is live (null for none). If the show caller has moved, the call answers 409 STALE_STATE instead of skipping a row."},"write_actual_duration":{"type":"boolean","description":"Save how long the row you are leaving really took as its duration (rounded to the second). Locked rows are left alone."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Tracking"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/tracking/next":{"post":{"operationId":"trackNext","summary":"Advance to the next row","tags":["Show calling"],"description":"Goes to the next row, skipping floating rows, headers and notes. With nothing live it starts at the first row; on the last row it finishes the show (nothing is live afterwards). Everyone on the rundown receives tracking.updated and timing.recalculated (actual start and end, over/under). In rooms playing this rundown the row's timer starts in the same transaction, unless the room has settings.tracking_drives_timer: false. Send expected_item_id so a double press cannot skip a row.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"item_ref":{"type":"string","description":"The row to take live (track only): an item id, ext:<external_id>, num:<item number> or name:<name>."},"expected_item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The row you believe is live (null for none). If the show caller has moved, the call answers 409 STALE_STATE instead of skipping a row."},"write_actual_duration":{"type":"boolean","description":"Save how long the row you are leaving really took as its duration (rounded to the second). Locked rows are left alone."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Tracking"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/tracking/previous":{"post":{"operationId":"trackPrevious","summary":"Go back one row","tags":["Show calling"],"description":"Goes back to the previous row and restarts its run clock; on the first row it restarts that row. Returns 422 INVALID_TRANSITION while nothing is live. Everyone on the rundown receives tracking.updated and timing.recalculated (actual start and end, over/under). In rooms playing this rundown the row's timer starts in the same transaction, unless the room has settings.tracking_drives_timer: false. Send expected_item_id so a double press cannot skip a row.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"item_ref":{"type":"string","description":"The row to take live (track only): an item id, ext:<external_id>, num:<item number> or name:<name>."},"expected_item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The row you believe is live (null for none). If the show caller has moved, the call answers 409 STALE_STATE instead of skipping a row."},"write_actual_duration":{"type":"boolean","description":"Save how long the row you are leaving really took as its duration (rounded to the second). Locked rows are left alone."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Tracking"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/tracking/stop":{"post":{"operationId":"stopTracking","summary":"Stop tracking","tags":["Show calling"],"description":"Ends the live row and leaves nothing live. The actual times of the show stay in the timing, and tracking again continues the same show. Linked rooms pause their timer.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"item_ref":{"type":"string","description":"The row to take live (track only): an item id, ext:<external_id>, num:<item number> or name:<name>."},"expected_item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The row you believe is live (null for none). If the show caller has moved, the call answers 409 STALE_STATE instead of skipping a row."},"write_actual_duration":{"type":"boolean","description":"Save how long the row you are leaving really took as its duration (rounded to the second). Locked rows are left alone."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Tracking"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/tracking/reset":{"post":{"operationId":"resetTracking","summary":"Clear the show's actual times","tags":["Show calling"],"description":"Stops tracking and starts a fresh show: actual start, end and over/under are cleared from the timing. The recorded runs are kept for reports.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"item_ref":{"type":"string","description":"The row to take live (track only): an item id, ext:<external_id>, num:<item number> or name:<name>."},"expected_item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The row you believe is live (null for none). If the show caller has moved, the call answers 409 STALE_STATE instead of skipping a row."},"write_actual_duration":{"type":"boolean","description":"Save how long the row you are leaving really took as its duration (rounded to the second). Locked rows are left alone."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Tracking"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/follow":{"post":{"operationId":"followShowCaller","summary":"Follow the show caller","tags":["Show calling"],"description":"Marks this credential and device as following. Followers get the same tracking.updated events as everyone on the rundown and scroll to the live row; the count is reported in the tracking state.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"device_id":{"type":"string","minLength":1,"maxLength":64,"description":"Any stable id for this device. Defaults to \"default\"."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["following","device_id","followers"],"properties":{"following":{"type":"boolean"},"device_id":{"type":"string"},"followers":{"type":"integer","description":"Devices following this rundown's show caller."}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"unfollowShowCaller","summary":"Stop following the show caller","tags":["Show calling"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"query","name":"device_id","required":false,"description":"Any stable id for this device. Defaults to \"default\"."},{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["following","device_id","followers"],"properties":{"following":{"type":"boolean"},"device_id":{"type":"string"},"followers":{"type":"integer","description":"Devices following this rundown's show caller."}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/history":{"get":{"operationId":"listHistory","summary":"List changes, newest first","tags":["History"],"description":"Every edit at cell level, with what was there before and after. Page with meta.next_cursor.","parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"query","name":"item_id","required":false,"description":"Only changes to this row."},{"schema":{"type":"string"},"in":"query","name":"column_id","required":false,"description":"Only changes in this column."},{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/HistoryEntry"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/history/{changeId}/restore":{"post":{"operationId":"restoreChange","summary":"Put back what a change replaced","tags":["History"],"description":"Restores the earlier value of one cell, the earlier fields of a row, a deleted row, a column's settings or the row order. The restore is a new change with its own history entry; nothing is rewritten. Returns 409 CONFLICT when the row or column no longer exists, 409 ITEM_LOCKED for a locked row and 422 INVALID_TRANSITION for changes that cannot be restored (see restorable).","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"changeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/HistoryEntry"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/archived":{"get":{"operationId":"listArchived","summary":"List deleted rows and archived columns","tags":["History"],"description":"Deleting a row archives it with its cells. Most recently archived first.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["items","columns"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"columns":{"type":"array","items":{"$ref":"#/components/schemas/Column"}}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/archived/{id}/restore":{"post":{"operationId":"restoreArchived","summary":"Restore a deleted row or an archived column","tags":["History"],"description":"A row comes back at its old position with its cells. The plan's item limit applies.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"An item id or a column id."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["kind","id"],"properties":{"kind":{"anyOf":[{"type":"string","enum":["item"]},{"type":"string","enum":["column"]}]},"id":{"type":"string"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/search":{"get":{"operationId":"searchRundown","summary":"Find text in a rundown","tags":["History"],"description":"Looks in titles, speakers, notes and text and script cells. Returns at most 500 matching values; total counts every occurrence.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":500},"in":"query","name":"q","required":true},{"schema":{"type":"string"},"in":"query","name":"column_ids","required":false,"description":"Comma-separated column ids and/or \"name\", \"speaker\", \"notes\"."},{"schema":{"type":"boolean"},"in":"query","name":"match_case","required":false},{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["matches","total"],"properties":{"matches":{"type":"array","items":{"type":"object","required":["item_id","field","value","count"],"properties":{"item_id":{"type":"string"},"field":{"type":"string","description":"\"name\", \"speaker\", \"notes\" or a column id."},"value":{"type":"string"},"count":{"type":"integer","description":"Occurrences in this value."}}}},"total":{"type":"integer"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/replace":{"post":{"operationId":"replaceInRundown","summary":"Find and replace","tags":["History"],"description":"Replaces every occurrence in one transaction and one rundown version. Locked rows are skipped and listed. Use dry_run to preview.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["find","replace"],"properties":{"find":{"type":"string","minLength":1,"maxLength":500},"replace":{"type":"string","maxLength":5000},"column_ids":{"type":"array","items":{"type":"string"},"maxItems":60,"description":"Where to look: column ids and/or \"name\", \"speaker\", \"notes\". Everything searchable when omitted."},"match_case":{"type":"boolean"},"dry_run":{"type":"boolean","description":"Return what would change without changing it."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["changes","skipped","replaced","dry_run"],"properties":{"changes":{"type":"array","items":{"type":"object","required":["item_id","field","before","after","count"],"properties":{"item_id":{"type":"string"},"field":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"count":{"type":"integer"}}}},"skipped":{"type":"array","items":{"type":"object","required":["item_id","field","reason"],"properties":{"item_id":{"type":"string"},"field":{"type":"string"},"reason":{"type":"string","enum":["locked"]}}}},"replaced":{"type":"integer","description":"Occurrences replaced."},"dry_run":{"type":"boolean"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/views/me":{"get":{"operationId":"getMyView","summary":"Get your own view of a rundown","tags":["Views"],"description":"Hidden columns, column order and widths, density. Belongs to the credential; defaults when it was never saved.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/View"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"setMyView","summary":"Save your own view of a rundown","tags":["Views"],"description":"Only the fields you send change. Needs only read access; nobody else is affected and no event is sent. Ids of columns that no longer exist are dropped.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"hidden_column_ids":{"type":"array","items":{"type":"string"},"maxItems":100},"column_order":{"type":"array","items":{"type":"string"},"maxItems":100},"column_widths":{"type":"object","additionalProperties":{"type":"integer","minimum":60,"maximum":1200}},"density":{"anyOf":[{"type":"string","enum":["comfortable"]},{"type":"string","enum":["compact"]}]},"card_column_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/View"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/presence":{"get":{"operationId":"getPresence","summary":"See who has the rundown open","tags":["Views"],"description":"Everyone connected to the rundown over the real-time channel and the cell each is on. Live updates arrive as presence.updated.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["users"],"properties":{"users":{"type":"array","items":{"$ref":"#/components/schemas/PresenceUser"}}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/imports":{"post":{"operationId":"importRows","summary":"Import rows from CSV, Excel or a Google Sheet","tags":["Import"],"description":"Reads the source, maps its columns (yours first, then by guessing from the headers) and adds the rows in one transaction. With dry_run it returns the mapping, the first rows and any warnings without changing anything. At most 2000 rows and 60 columns. The plan's item limit applies; importing for real needs a plan that includes import (402 PLAN_LIMIT otherwise).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["format"],"properties":{"format":{"anyOf":[{"type":"string","enum":["csv"]},{"type":"string","enum":["xlsx"]},{"type":"string","enum":["google_sheet"]}]},"content":{"type":"string","maxLength":1500000,"description":"The CSV text (format \"csv\")."},"content_base64":{"type":"string","maxLength":1500000,"description":"The .xlsx file, base64-encoded (format \"xlsx\"). The first sheet is read."},"url":{"type":"string","maxLength":500,"description":"Link to a Google Sheet shared as \"Anyone with the link can view\" (format \"google_sheet\")."},"has_header":{"type":"boolean","description":"The first row holds column names. Default true."},"mapping":{"type":"object","description":"Where each source column goes, keyed by its header or zero-based index: \"name\", \"speaker\", \"duration\", \"notes\", \"item_number\", \"start\" (hard start), \"skip\", \"column:<columnId>\", \"new:text\" or \"new:rich_text\" (adds a column named after the header). Columns you leave out are guessed; run with dry_run to see the guess.","additionalProperties":{"type":"string"}},"mode":{"anyOf":[{"type":"string","enum":["append"]},{"type":"string","enum":["replace"]}],"description":"append (default) adds the rows at the end; replace archives the existing unlocked rows first."},"dry_run":{"type":"boolean","description":"Return what would happen without changing anything. Allowed on every plan."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["dry_run","source_columns","rows","created","deleted","skipped","warnings","new_columns","preview","items_total"],"properties":{"dry_run":{"type":"boolean"},"source_columns":{"type":"array","items":{"type":"object","required":["index","header","target","samples"],"properties":{"index":{"type":"integer"},"header":{"type":"string"},"target":{"type":"string","description":"Where this source column went (or would go)."},"samples":{"type":"array","items":{"type":"string"}}}}},"rows":{"type":"integer","description":"Data rows found in the source."},"created":{"type":"integer"},"deleted":{"type":"integer","description":"Rows archived by mode \"replace\"."},"skipped":{"type":"array","items":{"type":"object","required":["row","reason"],"properties":{"row":{"type":"integer","description":"Row number as shown in the spreadsheet."},"reason":{"type":"string"}}}},"warnings":{"type":"array","items":{"type":"object","required":["row","header","message"],"properties":{"row":{"type":"integer"},"header":{"type":"string"},"message":{"type":"string"}}},"description":"Values that did not fit their target. At most 100 are listed."},"new_columns":{"type":"array","items":{"$ref":"#/components/schemas/Column"}},"preview":{"type":"array","items":{"$ref":"#/components/schemas/Item"},"description":"The first 20 imported rows."},"items_total":{"type":"integer","description":"Rows in the rundown after the import."}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/copy-to":{"post":{"operationId":"copyItemsTo","summary":"Copy rows to another rundown","tags":["Import"],"description":"Copies rows with their cells into another rundown of the same team. Columns are matched by name and type unless column_mapping says otherwise. The copies are unlocked, ungrouped and have no external_id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["target_rundown_id","item_ids"],"properties":{"target_rundown_id":{"type":"string"},"item_ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":500,"description":"Rows to copy (ids or item references). They are copied in the source rundown's order."},"column_mapping":{"type":"object","description":"Source column id -> target column id, or null to leave a column out. Columns not listed are matched by name and type.","additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]}},"position":{"type":"integer","minimum":0,"description":"Where the copies go in the target rundown. Default: the end."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["created","column_mapping","unmatched_column_ids"],"properties":{"created":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"column_mapping":{"type":"object","description":"Source column id -> target column id that was used.","additionalProperties":{"type":"string"}},"unmatched_column_ids":{"type":"array","items":{"type":"string"},"description":"Source columns with no counterpart in the target; their cells were not copied."}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/api-keys":{"get":{"operationId":"listApiKeys","summary":"List API keys","tags":["API keys"],"description":"Keys are stored as a SHA-256 hash; only the prefix is ever shown again.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createApiKey","summary":"Create an API key","tags":["API keys"],"description":"The full key is returned once, here. Store it now.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","scopes"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"scopes":{"type":"array","items":{"type":"string","enum":["read","operate","manage","admin","compat"]},"minItems":1,"description":"read: displays. operate: transport, time, messages, display. manage: edit timers and messages. admin: keys and integrations. Higher scopes include lower ones. compat: allows the GET compatibility layer; it grants nothing by itself, so combine it with one of the others (usually operate)."},"room_id":{"anyOf":[{"type":"string","description":"Limit the key to one room. Omit for a team-wide key."},{"type":"null"}]},"workspace_id":{"anyOf":[{"type":"string","description":"Limit the key to one client workspace: its events, rundowns and rooms, and nothing team-wide. Not together with room_id. Needs a plan with workspaces."},{"type":"null"}]},"compat_enabled":{"type":"boolean","description":"Switch the GET compatibility layer on for this key. Needs the compat scope. Off by default."}},"title":"ApiKeyCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["api_key","key"],"properties":{"api_key":{"$ref":"#/components/schemas/ApiKey"},"key":{"type":"string","description":"The secret key (rd_live_… or rd_test_…). Shown only once."}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/api-keys/{keyId}":{"patch":{"operationId":"updateApiKey","summary":"Rename a key or switch its compatibility layer","tags":["API keys"],"description":"Scopes and the room of a key cannot be changed; create a new key instead. compat_enabled can only be switched on for keys created with the compat scope.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"compat_enabled":{"type":"boolean","description":"Switch the GET compatibility layer on or off for this key. Switching it on needs the compat scope."}},"title":"ApiKeyUpdate","minProperties":1}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"keyId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ApiKey"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"revokeApiKey","summary":"Revoke an API key","tags":["API keys"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"keyId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/workspaces":{"get":{"operationId":"listWorkspaces","summary":"List client workspaces","tags":["Workspaces"],"description":"A team-wide key sees every workspace of the team. A key limited to a workspace sees only its own.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Workspace"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createWorkspace","summary":"Create a client workspace","tags":["Workspaces"],"description":"Needs the admin scope and a plan with workspaces (Studio and up); otherwise 402 PLAN_LIMIT. Put events and rooms in it with workspace_id, then create an API key limited to it.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Usually the client's name."},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}},"title":"WorkspaceCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Workspace"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/workspaces/{workspaceId}":{"get":{"operationId":"getWorkspace","summary":"Get a client workspace","tags":["Workspaces"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Workspace"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateWorkspace","summary":"Rename or recolor a client workspace","tags":["Workspaces"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Usually the client's name."},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}},"title":"WorkspaceUpdate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Workspace"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteWorkspace","summary":"Delete a client workspace","tags":["Workspaces"],"description":"Nothing inside is deleted: its events and rooms go back to the team. API keys limited to the workspace are revoked, so nobody who was confined to it keeps any access.","parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/start":{"get":{"operationId":"compatStart","summary":"Start or resume a timer","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/stop":{"get":{"operationId":"compatStop","summary":"Pause the running timer","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/start_or_stop":{"get":{"operationId":"compatStartOrStop","summary":"Start or stop","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/next":{"get":{"operationId":"compatNext","summary":"Go to the next timer","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/previous":{"get":{"operationId":"compatPrevious","summary":"Go to the previous timer","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/reset":{"get":{"operationId":"compatReset","summary":"Reset a timer to its full duration","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/add_time":{"get":{"operationId":"compatAddTime","summary":"Add time to the selected timer","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/subtract_time":{"get":{"operationId":"compatSubtractTime","summary":"Subtract time from the selected timer","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/undo":{"get":{"operationId":"compatUndo","summary":"Undo the last playback command","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/show_message":{"get":{"operationId":"compatShowMessage","summary":"Show a message","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/hide_message":{"get":{"operationId":"compatHideMessage","summary":"Hide the message on screen","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/show_or_hide_message":{"get":{"operationId":"compatShowOrHideMessage","summary":"Show a message, or hide it if it is showing","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/enable_blackout":{"get":{"operationId":"compatEnableBlackout","summary":"Turn blackout on","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/disable_blackout":{"get":{"operationId":"compatDisableBlackout","summary":"Turn blackout off","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/toggle_blackout":{"get":{"operationId":"compatToggleBlackout","summary":"Switch blackout","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/enable_on_air":{"get":{"operationId":"compatEnableOnAir","summary":"Turn on-air on","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/disable_on_air":{"get":{"operationId":"compatDisableOnAir","summary":"Turn on-air off","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/start_flashing":{"get":{"operationId":"compatStartFlashing","summary":"Flash the output screens","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/stop_flashing":{"get":{"operationId":"compatStopFlashing","summary":"Stop flashing","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/next_service":{"get":{"operationId":"compatNextService","summary":"Reset for the next service (refused while a timer runs)","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/enable_holding":{"get":{"operationId":"compatEnableHolding","summary":"Turn the holding screen on","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/disable_holding":{"get":{"operationId":"compatDisableHolding","summary":"Turn the holding screen off","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/compat/status":{"get":{"operationId":"compatStatus","summary":"Read the room","tags":["Compatibility (GET)"],"description":"Part of the opt-in GET compatibility layer for Bitfocus Companion, vMix and plain HTTP buttons. It needs a key with the `compat` scope and `compat_enabled`, sent as a Bearer header or as `?key=`. **GET requests that change things are risky**: link previews, browser prefetching and caches can repeat them, and a key in a URL ends up in histories and proxy logs. Use the POST endpoints wherever you can. Responses carry `Cache-Control: no-store`.","parameters":[{"schema":{"type":"string"},"in":"query","name":"room_id","required":false,"description":"The room. May be left out when the key is limited to one room."},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"The API key, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"query","name":"index","required":false,"description":"Position of the timer or message, counted from 1."},{"schema":{"type":"string"},"in":"query","name":"timer_id","required":false,"description":"Target a timer by id (or by your external_id)."},{"schema":{"type":"string"},"in":"query","name":"message_id","required":false,"description":"Target a message by id."},{"schema":{"type":"string"},"in":"query","name":"amount","required":false,"description":"Time with a unit: \"30s\", \"5m\", \"1h\". Defaults to 1m."},{"schema":{"type":"string"},"in":"query","name":"autostart","required":false,"description":"\"true\" or \"1\" to start the timer right away."},{"schema":{"type":"string"},"in":"query","name":"from_memory","required":false,"description":"\"true\" or \"1\" to resume a timer that already ran from where it stopped."},{"schema":{"type":"string"},"in":"query","name":"focus","required":false,"description":"\"true\" or \"1\" to show the message full screen."},{"schema":{"type":"string"},"in":"query","name":"count","required":false,"description":"How many times to flash. Defaults to 3."},{"schema":{"type":"string"},"in":"query","name":"service_id","required":false,"description":"next_service only: the service time to set up for. Defaults to the one after the current one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CompatResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/me":{"get":{"operationId":"getMe","summary":"Describe the current credential","tags":["Account"],"description":"Lets a client adapt before it tries anything: hide controls a read-only key cannot use, list only the rooms it can reach.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Me"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/me/entitlements":{"get":{"operationId":"getEntitlements","summary":"Get the team's plan, limits and usage","tags":["Account"],"description":"Everything a client needs to explain a limit before it is hit. The same numbers come back in the details of a 402 PLAN_LIMIT.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Entitlements"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/me/preferences":{"get":{"operationId":"getPreferences","summary":"Get controller preferences","tags":["Account"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Preferences"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"setPreferences","summary":"Save controller preferences","tags":["Account"],"description":"Send only what changes. Palette and layout are independent.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"theme":{"anyOf":[{"type":"string","enum":["control","studio","producer"]},{"type":"null"}]},"layout":{"anyOf":[{"type":"string","enum":["a","b","c"]},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Preferences"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/guest-passes":{"get":{"operationId":"listGuestPasses","summary":"List the guest links of a rundown","tags":["Guest passes"],"description":"Links that were turned off are not listed. Tokens are never returned again after creation.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","required":["id","rundown_id","name","role","edit_column_ids","fields","column_ids","display_order","live","has_password","speaker","expires_at","last_used_at","created_at"],"properties":{"id":{"type":"string"},"rundown_id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string","enum":["guest","crew","department","editor"],"description":"guest: reads the chosen columns. crew: reads every column that can be shared, including ones added later. department: reads the chosen columns and edits the cells of edit_column_ids (the audio team edits only Audio). editor: reads and edits every column that can be shared. Nobody on a pass can change timing, add or remove rows or columns, or track; those need an API key with the operate or manage scope."},"edit_column_ids":{"type":"array","items":{"type":"string"},"description":"For the department role: the columns whose cells the pass may edit. They are always among the columns it sees."},"fields":{"type":"array","items":{"type":"string","enum":["start","duration","speaker","notes"],"description":"Built-in fields a guest pass can show. Item number and title are always shown."}},"column_ids":{"type":"array","items":{"type":"string"},"description":"Columns the guest sees. Everything else is hidden from them."},"display_order":{"type":"array","items":{"type":"string"},"description":"The order the sender chose: built-in field names and column ids, left to right after number and title. Empty for the usual order (start, duration, speaker, the columns as in the rundown, notes). GuestRundown.display_order is this applied to what the pass shows."},"live":{"type":"boolean","description":"True: the guest page updates in real time. False: it shows the rundown as of the last refresh."},"has_password":{"type":"boolean"},"speaker":{"anyOf":[{"type":"string","description":"Set on speaker links: the speaker the portal is for."},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"integer","description":"When the link stops working; null for never (ms since Unix epoch)"},{"type":"null"}]},"last_used_at":{"anyOf":[{"type":"integer","description":"Last opened (updated at most once a minute) (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"}},"title":"GuestPass","description":"A read-only link to one rundown for someone outside the team, limited to chosen columns."}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createGuestPass","summary":"Create a guest link","tags":["Guest passes"],"description":"A read-only link to this rundown for someone outside the team. The guest sees item number and title, the built-in fields in \"fields\" and the columns in \"column_ids\"; nothing else is ever sent to them. The token is returned once.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Who the link is for, e.g. \"Client\" or \"Venue AV\"."},"role":{"type":"string","enum":["guest","crew","department","editor"],"description":"guest: reads the chosen columns. crew: reads every column that can be shared, including ones added later. department: reads the chosen columns and edits the cells of edit_column_ids (the audio team edits only Audio). editor: reads and edits every column that can be shared. Nobody on a pass can change timing, add or remove rows or columns, or track; those need an API key with the operate or manage scope."},"edit_column_ids":{"type":"array","items":{"type":"string"},"maxItems":60,"uniqueItems":true,"description":"For role \"department\": the columns the pass may edit. Text, rich text and select columns only; they are added to column_ids if missing. Needs a plan with department roles."},"fields":{"type":"array","items":{"anyOf":[{"type":"string","enum":["start"]},{"type":"string","enum":["duration"]},{"type":"string","enum":["speaker"]},{"type":"string","enum":["notes"]}]},"maxItems":4,"uniqueItems":true,"description":"Built-in fields to show. Item number and title are always shown."},"column_ids":{"type":"array","items":{"type":"string"},"maxItems":60,"uniqueItems":true,"description":"Columns the guest may see. Private-notes and computed columns cannot be shared."},"display_order":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64},"maxItems":64,"uniqueItems":true},{"type":"null"}],"description":"The order the guest page and its PDF show things in, left to right after number and title: built-in field names (\"start\", \"duration\", \"speaker\", \"notes\") and column ids, mixed freely. What is listed comes first, in this order; anything else the pass shows follows in its usual place. It decides order only: what is shown is still \"fields\" and \"column_ids\". null or an empty list goes back to the usual order."},"live":{"type":"boolean","description":"Update the guest page in real time. Needs a plan with live guest passes (402 PLAN_LIMIT otherwise). Default false: refresh only."},"expires_at":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Epoch milliseconds after which the link stops working."},"password":{"anyOf":[{"type":"string","minLength":4,"maxLength":200},{"type":"null"}],"description":"Optional password the guest must enter. Stored hashed. null removes it."},"speaker":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"description":"Makes the pass a speaker link: the name as written in the rundown's Speaker field (case does not matter; a row naming several speakers matches each of them). The token then also opens GET /v1/guest/speaker. Null turns it back into a plain guest link."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["pass","token"],"properties":{"pass":{"type":"object","required":["id","rundown_id","name","role","edit_column_ids","fields","column_ids","display_order","live","has_password","speaker","expires_at","last_used_at","created_at"],"properties":{"id":{"type":"string"},"rundown_id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string","enum":["guest","crew","department","editor"],"description":"guest: reads the chosen columns. crew: reads every column that can be shared, including ones added later. department: reads the chosen columns and edits the cells of edit_column_ids (the audio team edits only Audio). editor: reads and edits every column that can be shared. Nobody on a pass can change timing, add or remove rows or columns, or track; those need an API key with the operate or manage scope."},"edit_column_ids":{"type":"array","items":{"type":"string"},"description":"For the department role: the columns whose cells the pass may edit. They are always among the columns it sees."},"fields":{"type":"array","items":{"type":"string","enum":["start","duration","speaker","notes"],"description":"Built-in fields a guest pass can show. Item number and title are always shown."}},"column_ids":{"type":"array","items":{"type":"string"},"description":"Columns the guest sees. Everything else is hidden from them."},"display_order":{"type":"array","items":{"type":"string"},"description":"The order the sender chose: built-in field names and column ids, left to right after number and title. Empty for the usual order (start, duration, speaker, the columns as in the rundown, notes). GuestRundown.display_order is this applied to what the pass shows."},"live":{"type":"boolean","description":"True: the guest page updates in real time. False: it shows the rundown as of the last refresh."},"has_password":{"type":"boolean"},"speaker":{"anyOf":[{"type":"string","description":"Set on speaker links: the speaker the portal is for."},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"integer","description":"When the link stops working; null for never (ms since Unix epoch)"},{"type":"null"}]},"last_used_at":{"anyOf":[{"type":"integer","description":"Last opened (updated at most once a minute) (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"}},"title":"GuestPass","description":"A read-only link to one rundown for someone outside the team, limited to chosen columns."},"token":{"type":"string","description":"The guest token (rd_guest_…). Shown once: only its hash is stored. Put it in the link you send, after the # so it never reaches a server log."}},"title":"GuestPassCreated"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/guest-passes/{passId}":{"patch":{"operationId":"updateGuestPass","summary":"Change a guest link","tags":["Guest passes"],"description":"Only the fields you send change. Connected guests get the new view at once; changing the password disconnects them.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Who the link is for, e.g. \"Client\" or \"Venue AV\"."},"role":{"type":"string","enum":["guest","crew","department","editor"],"description":"guest: reads the chosen columns. crew: reads every column that can be shared, including ones added later. department: reads the chosen columns and edits the cells of edit_column_ids (the audio team edits only Audio). editor: reads and edits every column that can be shared. Nobody on a pass can change timing, add or remove rows or columns, or track; those need an API key with the operate or manage scope."},"edit_column_ids":{"type":"array","items":{"type":"string"},"maxItems":60,"uniqueItems":true,"description":"For role \"department\": the columns the pass may edit. Text, rich text and select columns only; they are added to column_ids if missing. Needs a plan with department roles."},"fields":{"type":"array","items":{"anyOf":[{"type":"string","enum":["start"]},{"type":"string","enum":["duration"]},{"type":"string","enum":["speaker"]},{"type":"string","enum":["notes"]}]},"maxItems":4,"uniqueItems":true,"description":"Built-in fields to show. Item number and title are always shown."},"column_ids":{"type":"array","items":{"type":"string"},"maxItems":60,"uniqueItems":true,"description":"Columns the guest may see. Private-notes and computed columns cannot be shared."},"display_order":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":64},"maxItems":64,"uniqueItems":true},{"type":"null"}],"description":"The order the guest page and its PDF show things in, left to right after number and title: built-in field names (\"start\", \"duration\", \"speaker\", \"notes\") and column ids, mixed freely. What is listed comes first, in this order; anything else the pass shows follows in its usual place. It decides order only: what is shown is still \"fields\" and \"column_ids\". null or an empty list goes back to the usual order."},"live":{"type":"boolean","description":"Update the guest page in real time. Needs a plan with live guest passes (402 PLAN_LIMIT otherwise). Default false: refresh only."},"expires_at":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Epoch milliseconds after which the link stops working."},"password":{"anyOf":[{"type":"string","minLength":4,"maxLength":200},{"type":"null"}],"description":"Optional password the guest must enter. Stored hashed. null removes it."},"speaker":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"description":"Makes the pass a speaker link: the name as written in the rundown's Speaker field (case does not matter; a row naming several speakers matches each of them). The token then also opens GET /v1/guest/speaker. Null turns it back into a plain guest link."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"passId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","rundown_id","name","role","edit_column_ids","fields","column_ids","display_order","live","has_password","speaker","expires_at","last_used_at","created_at"],"properties":{"id":{"type":"string"},"rundown_id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string","enum":["guest","crew","department","editor"],"description":"guest: reads the chosen columns. crew: reads every column that can be shared, including ones added later. department: reads the chosen columns and edits the cells of edit_column_ids (the audio team edits only Audio). editor: reads and edits every column that can be shared. Nobody on a pass can change timing, add or remove rows or columns, or track; those need an API key with the operate or manage scope."},"edit_column_ids":{"type":"array","items":{"type":"string"},"description":"For the department role: the columns whose cells the pass may edit. They are always among the columns it sees."},"fields":{"type":"array","items":{"type":"string","enum":["start","duration","speaker","notes"],"description":"Built-in fields a guest pass can show. Item number and title are always shown."}},"column_ids":{"type":"array","items":{"type":"string"},"description":"Columns the guest sees. Everything else is hidden from them."},"display_order":{"type":"array","items":{"type":"string"},"description":"The order the sender chose: built-in field names and column ids, left to right after number and title. Empty for the usual order (start, duration, speaker, the columns as in the rundown, notes). GuestRundown.display_order is this applied to what the pass shows."},"live":{"type":"boolean","description":"True: the guest page updates in real time. False: it shows the rundown as of the last refresh."},"has_password":{"type":"boolean"},"speaker":{"anyOf":[{"type":"string","description":"Set on speaker links: the speaker the portal is for."},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"integer","description":"When the link stops working; null for never (ms since Unix epoch)"},{"type":"null"}]},"last_used_at":{"anyOf":[{"type":"integer","description":"Last opened (updated at most once a minute) (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"}},"title":"GuestPass","description":"A read-only link to one rundown for someone outside the team, limited to chosen columns."},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"revokeGuestPass","summary":"Turn a guest link off","tags":["Guest passes"],"description":"The token stops working immediately and connected guests are disconnected. This cannot be undone; create a new link instead.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"passId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["revoked"],"properties":{"revoked":{"type":"boolean"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/guest/rundown":{"get":{"operationId":"getGuestRundown","summary":"Open the rundown a guest link shares","tags":["Guest passes"],"description":"Call it with the guest token as the bearer token (Authorization: Bearer rd_guest_…). Returns only what the pass allows. If the pass has a password, send it in the Runofsho-Guest-Password header; without it the answer is 401 with details.password_required. A guest token works on this endpoint and on the guest real-time channel, and nowhere else.","parameters":[{"schema":{"type":"string","maxLength":200},"in":"header","name":"runofsho-guest-password","required":false,"description":"The pass's password, when it has one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["pass","rundown","columns","display_order","groups","items","live_item_id","live_started_at","version","server_time"],"properties":{"pass":{"type":"object","required":["name","role","edit_column_ids","live","can_export","fields","expires_at"],"properties":{"name":{"type":"string"},"role":{"type":"string","enum":["guest","crew","department","editor"],"description":"guest: reads the chosen columns. crew: reads every column that can be shared, including ones added later. department: reads the chosen columns and edits the cells of edit_column_ids (the audio team edits only Audio). editor: reads and edits every column that can be shared. Nobody on a pass can change timing, add or remove rows or columns, or track; those need an API key with the operate or manage scope."},"edit_column_ids":{"type":"array","items":{"type":"string"},"description":"Columns whose cells this pass may edit with PATCH /v1/guest/rundown/items/{itemId}. Empty for read-only passes."},"live":{"type":"boolean"},"can_export":{"type":"boolean","description":"The guest may download a PDF of this view (POST /v1/guest/exports). Depends on the team's plan."},"fields":{"type":"array","items":{"type":"string","enum":["start","duration","speaker","notes"],"description":"Built-in fields a guest pass can show. Item number and title are always shown."}},"expires_at":{"anyOf":[{"type":"integer","description":"When the link stops working (ms since Unix epoch)"},{"type":"null"}]}}},"rundown":{"type":"object","required":["id","name","start_at","timezone"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"start_at":{"anyOf":[{"type":"integer","description":"Planned show start (ms since Unix epoch)"},{"type":"null"}]},"timezone":{"type":"string"}}},"columns":{"type":"array","items":{"type":"object","required":["id","name","type","width","options"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["text","rich_text","duration","start_time","over_under","select","private_notes","timestamp"],"description":"text and rich_text hold strings (rich_text is Markdown); duration holds milliseconds; start_time holds \"HH:MM[:SS]\"; select holds one of options.choices; over_under is computed by the server and private_notes shows each person's own note, so neither stores cell values; timestamp (proof of performance) holds the moment a row aired in ms since Unix epoch and is written only by POST …/items/{itemRef}/timestamp, never by a cell edit."},"width":{"type":"integer"},"options":{"type":"object","properties":{"choices":{"type":"array","items":{"type":"object","required":["value"],"properties":{"value":{"type":"string","minLength":1,"maxLength":60},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}}},"maxItems":60,"description":"Allowed values of a select column."},"auto_stamp":{"type":"boolean","description":"timestamp columns only. Stamp the cell by itself when the show caller takes the row live, if it is still empty."}}}}},"description":"Only the columns the pass includes, in the rundown's order."},"display_order":{"type":"array","items":{"type":"string"},"description":"Everything this pass shows after number and title, in the order to show it, left to right: built-in field names (\"start\", \"duration\", \"speaker\", \"notes\") and the ids of \"columns\". It is complete: draw exactly these, in this order. The sender sets it with display_order on the pass; without one it is start, duration, speaker, the columns as in the rundown, notes."},"groups":{"type":"array","items":{"type":"object","required":["id","title","color"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]}}}},"items":{"type":"array","items":{"type":"object","required":["id","position","item_number","kind","name","group_id","row_color","floating","cells"],"properties":{"id":{"type":"string"},"position":{"type":"integer"},"item_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string","enum":["item","header","note"]},"name":{"type":"string"},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"row_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"floating":{"type":"boolean"},"speaker":{"type":"string","description":"Present only when the pass includes \"speaker\"."},"notes":{"type":"string","description":"Present only when the pass includes \"notes\"."},"duration_ms":{"type":"integer","description":"Present only when the pass includes \"duration\"."},"planned_start":{"anyOf":[{"type":"integer","description":"Planned start. Present only when the pass includes \"start\" (ms since Unix epoch)"},{"type":"null"}]},"expected_start":{"anyOf":[{"type":"integer","description":"When the row is expected to start. Before the show: the planned start. While it runs: when rows already left really started, when the row on stage went live, and for the rows after it the time the rows ahead still need. Present only when the pass includes \"start\" (ms since Unix epoch)"},{"type":"null"}]},"locked":{"type":"boolean","description":"Present on passes that may edit: the team locked this row, so its cells cannot be changed."},"cells":{"type":"object","description":"Values of the columns the pass includes, by column id. Other columns are never sent.","additionalProperties":{"type":"object","required":["value","style"],"properties":{"value":{"anyOf":[{"type":"string","maxLength":50000},{"type":"integer"},{"type":"null"}]},"style":{"anyOf":[{"$ref":"#/components/schemas/CellStyle"},{"type":"null"}]},"rev":{"type":"integer","description":"Present on cells the pass may edit: send it back as expected_cell_revs to avoid overwriting someone else's edit."}}}}},"title":"GuestItem"}},"live_item_id":{"anyOf":[{"type":"string","description":"The row on stage: the one a room running this rundown is timing, or else the one the show caller is tracking."},{"type":"null"}]},"live_started_at":{"anyOf":[{"type":"integer","description":"When that row went live (ms since Unix epoch)"},{"type":"null"}]},"version":{"type":"integer","description":"Rundown version this view was built from."},"server_time":{"type":"integer","description":"Server clock (ms since Unix epoch)"}},"title":"GuestRundown","description":"What a guest sees: built from the rundown on the server, containing only what the pass allows."},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/guest/rundown/items/{itemId}":{"patch":{"operationId":"updateGuestItem","summary":"Edit cells through a guest link","tags":["Guest passes"],"description":"For passes with the department or editor role. Call it with the guest token as the bearer token. Writes cell values in the columns the pass may edit (pass.edit_column_ids in GET /v1/guest/rundown) and nothing else: not styles, not the row's title or timing, not other columns (403). Locked rows answer 409 ITEM_LOCKED and stale edits 409 STALE_STATE, as in the editor. The change is recorded in the rundown's history under the pass and reaches everyone in real time. Needs a plan with department roles.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["cells"],"properties":{"cells":{"type":"object","description":"New values by column id. Only columns in the pass's edit_column_ids.","additionalProperties":{"anyOf":[{"type":"string","maxLength":50000},{"type":"integer"},{"type":"null"}]}},"expected_cell_revs":{"type":"object","description":"The rev each cell had when the guest started typing. A cell someone else changed since answers 409 STALE_STATE.","additionalProperties":{"type":"integer"}}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"itemId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","position","item_number","kind","name","group_id","row_color","floating","cells"],"properties":{"id":{"type":"string"},"position":{"type":"integer"},"item_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string","enum":["item","header","note"]},"name":{"type":"string"},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"row_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"floating":{"type":"boolean"},"speaker":{"type":"string","description":"Present only when the pass includes \"speaker\"."},"notes":{"type":"string","description":"Present only when the pass includes \"notes\"."},"duration_ms":{"type":"integer","description":"Present only when the pass includes \"duration\"."},"planned_start":{"anyOf":[{"type":"integer","description":"Planned start. Present only when the pass includes \"start\" (ms since Unix epoch)"},{"type":"null"}]},"expected_start":{"anyOf":[{"type":"integer","description":"When the row is expected to start. Before the show: the planned start. While it runs: when rows already left really started, when the row on stage went live, and for the rows after it the time the rows ahead still need. Present only when the pass includes \"start\" (ms since Unix epoch)"},{"type":"null"}]},"locked":{"type":"boolean","description":"Present on passes that may edit: the team locked this row, so its cells cannot be changed."},"cells":{"type":"object","description":"Values of the columns the pass includes, by column id. Other columns are never sent.","additionalProperties":{"type":"object","required":["value","style"],"properties":{"value":{"anyOf":[{"type":"string","maxLength":50000},{"type":"integer"},{"type":"null"}]},"style":{"anyOf":[{"$ref":"#/components/schemas/CellStyle"},{"type":"null"}]},"rev":{"type":"integer","description":"Present on cells the pass may edit: send it back as expected_cell_revs to avoid overwriting someone else's edit."}}}}},"title":"GuestItem"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/guest/speaker":{"get":{"operationId":"getSpeakerPortal","summary":"Open the speaker portal of a speaker link","tags":["Guest passes"],"description":"Call it with the token of a guest link that names a speaker. Answers when that speaker is on: their rows in running order with planned and expected starts (the plan moved by how far the show is running behind or ahead), how many rows are still ahead, and what is on stage now. It carries row titles and times only. Poll it; every ten seconds is plenty, and count down locally from expected_start against server_time. A password, if the link has one, goes in the Runofsho-Guest-Password header.","parameters":[{"schema":{"type":"string","maxLength":200},"in":"header","name":"runofsho-guest-password","required":false,"description":"The pass's password, when it has one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/SpeakerPortal"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks":{"get":{"operationId":"listWebhooks","summary":"List webhooks","tags":["Webhooks"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","required":["id","url","description","events","enabled","secret_hint","failing_since","disabled_at","disabled_reason","last_success_at","last_failure_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"events":{"type":"array","items":{"type":"string"},"description":"Event types this webhook receives; [\"*\"] means every event."},"enabled":{"type":"boolean"},"secret_hint":{"type":"string","description":"The last four characters of the signing secret, to tell secrets apart."},"failing_since":{"anyOf":[{"type":"integer","description":"Start of the current run of failed deliveries; null while healthy (ms since Unix epoch)"},{"type":"null"}]},"disabled_at":{"anyOf":[{"type":"integer","description":"When runofsho turned the webhook off after a day of failures (ms since Unix epoch)"},{"type":"null"}]},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_success_at":{"anyOf":[{"type":"integer","description":"Last successful delivery (ms since Unix epoch)"},{"type":"null"}]},"last_failure_at":{"anyOf":[{"type":"integer","description":"Last failed attempt (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Webhook"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createWebhook","summary":"Create a webhook","tags":["Webhooks"],"description":"The signing secret is returned once, here. Every delivery is a POST with a JSON body: the event exactly as on the real-time channel, plus \"id\" (the delivery id; use it to ignore duplicates). The Runofsho-Signature header is \"t=<unix seconds>,v1=<hex>\", where v1 is the HMAC-SHA256 of \"<t>.<raw body>\" with the webhook's secret. Answer 2xx within 10 seconds; anything else is retried with growing pauses for about 24 hours. Deliveries can arrive out of order: compare \"version\". Needs a plan with webhooks (402 PLAN_LIMIT otherwise).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url","events"],"properties":{"url":{"type":"string","minLength":8,"maxLength":2000,"description":"Where to POST events. Must be https and reachable from the internet."},"events":{"type":"array","items":{"anyOf":[{"type":"string","enum":["*"]},{"type":"string","enum":["playback.updated"]},{"type":"string","enum":["timer.selected"]},{"type":"string","enum":["timer.started"]},{"type":"string","enum":["timer.stopped"]},{"type":"string","enum":["timer.yellow"]},{"type":"string","enum":["timer.red"]},{"type":"string","enum":["timer.finished"]},{"type":"string","enum":["timer.overrun"]},{"type":"string","enum":["timers.changed"]},{"type":"string","enum":["message.shown"]},{"type":"string","enum":["message.hidden"]},{"type":"string","enum":["messages.changed"]},{"type":"string","enum":["display.flash"]},{"type":"string","enum":["display.blackout"]},{"type":"string","enum":["display.on_air"]},{"type":"string","enum":["room.updated"]},{"type":"string","enum":["service.updated"]},{"type":"string","enum":["chat.message"]},{"type":"string","enum":["chat.read"]},{"type":"string","enum":["question.submitted"]},{"type":"string","enum":["question.updated"]},{"type":"string","enum":["question.shown"]},{"type":"string","enum":["question.hidden"]},{"type":"string","enum":["chime.play"]},{"type":"string","enum":["layout.updated"]},{"type":"string","enum":["branding.updated"]},{"type":"string","enum":["controls.updated"]},{"type":"string","enum":["automation.fired"]},{"type":"string","enum":["rundown.updated"]},{"type":"string","enum":["items.changed"]},{"type":"string","enum":["columns.changed"]},{"type":"string","enum":["groups.changed"]},{"type":"string","enum":["tracking.updated"]},{"type":"string","enum":["element.published"]},{"type":"string","enum":["checkpoint.created"]},{"type":"string","enum":["checkpoint.restored"]},{"type":"string","enum":["export.completed"]},{"type":"string","enum":["timing.recalculated"]}]},"minItems":1,"maxItems":60,"uniqueItems":true,"description":"Event types to receive, or [\"*\"] for all of them. Names and payloads are the same as on the real-time channel."},"description":{"type":"string","maxLength":200},"enabled":{"type":"boolean","description":"Default true. Setting it to true again re-enables a webhook that was turned off after failures."}}}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["webhook","secret"],"properties":{"webhook":{"type":"object","required":["id","url","description","events","enabled","secret_hint","failing_since","disabled_at","disabled_reason","last_success_at","last_failure_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"events":{"type":"array","items":{"type":"string"},"description":"Event types this webhook receives; [\"*\"] means every event."},"enabled":{"type":"boolean"},"secret_hint":{"type":"string","description":"The last four characters of the signing secret, to tell secrets apart."},"failing_since":{"anyOf":[{"type":"integer","description":"Start of the current run of failed deliveries; null while healthy (ms since Unix epoch)"},{"type":"null"}]},"disabled_at":{"anyOf":[{"type":"integer","description":"When runofsho turned the webhook off after a day of failures (ms since Unix epoch)"},{"type":"null"}]},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_success_at":{"anyOf":[{"type":"integer","description":"Last successful delivery (ms since Unix epoch)"},{"type":"null"}]},"last_failure_at":{"anyOf":[{"type":"integer","description":"Last failed attempt (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Webhook"},"secret":{"type":"string","description":"The signing secret (whsec_…). Shown only here; store it now. Use it to verify the Runofsho-Signature header."}},"title":"WebhookWithSecret"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/{webhookId}":{"get":{"operationId":"getWebhook","summary":"Get a webhook","tags":["Webhooks"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"webhookId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","url","description","events","enabled","secret_hint","failing_since","disabled_at","disabled_reason","last_success_at","last_failure_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"events":{"type":"array","items":{"type":"string"},"description":"Event types this webhook receives; [\"*\"] means every event."},"enabled":{"type":"boolean"},"secret_hint":{"type":"string","description":"The last four characters of the signing secret, to tell secrets apart."},"failing_since":{"anyOf":[{"type":"integer","description":"Start of the current run of failed deliveries; null while healthy (ms since Unix epoch)"},{"type":"null"}]},"disabled_at":{"anyOf":[{"type":"integer","description":"When runofsho turned the webhook off after a day of failures (ms since Unix epoch)"},{"type":"null"}]},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_success_at":{"anyOf":[{"type":"integer","description":"Last successful delivery (ms since Unix epoch)"},{"type":"null"}]},"last_failure_at":{"anyOf":[{"type":"integer","description":"Last failed attempt (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Webhook"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateWebhook","summary":"Change a webhook","tags":["Webhooks"],"description":"Only the fields you send change. Sending enabled: true re-enables a webhook that was turned off after failures and clears its failure streak.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":8,"maxLength":2000,"description":"Where to POST events. Must be https and reachable from the internet."},"events":{"type":"array","items":{"anyOf":[{"type":"string","enum":["*"]},{"type":"string","enum":["playback.updated"]},{"type":"string","enum":["timer.selected"]},{"type":"string","enum":["timer.started"]},{"type":"string","enum":["timer.stopped"]},{"type":"string","enum":["timer.yellow"]},{"type":"string","enum":["timer.red"]},{"type":"string","enum":["timer.finished"]},{"type":"string","enum":["timer.overrun"]},{"type":"string","enum":["timers.changed"]},{"type":"string","enum":["message.shown"]},{"type":"string","enum":["message.hidden"]},{"type":"string","enum":["messages.changed"]},{"type":"string","enum":["display.flash"]},{"type":"string","enum":["display.blackout"]},{"type":"string","enum":["display.on_air"]},{"type":"string","enum":["room.updated"]},{"type":"string","enum":["service.updated"]},{"type":"string","enum":["chat.message"]},{"type":"string","enum":["chat.read"]},{"type":"string","enum":["question.submitted"]},{"type":"string","enum":["question.updated"]},{"type":"string","enum":["question.shown"]},{"type":"string","enum":["question.hidden"]},{"type":"string","enum":["chime.play"]},{"type":"string","enum":["layout.updated"]},{"type":"string","enum":["branding.updated"]},{"type":"string","enum":["controls.updated"]},{"type":"string","enum":["automation.fired"]},{"type":"string","enum":["rundown.updated"]},{"type":"string","enum":["items.changed"]},{"type":"string","enum":["columns.changed"]},{"type":"string","enum":["groups.changed"]},{"type":"string","enum":["tracking.updated"]},{"type":"string","enum":["element.published"]},{"type":"string","enum":["checkpoint.created"]},{"type":"string","enum":["checkpoint.restored"]},{"type":"string","enum":["export.completed"]},{"type":"string","enum":["timing.recalculated"]}]},"minItems":1,"maxItems":60,"uniqueItems":true,"description":"Event types to receive, or [\"*\"] for all of them. Names and payloads are the same as on the real-time channel."},"description":{"type":"string","maxLength":200},"enabled":{"type":"boolean","description":"Default true. Setting it to true again re-enables a webhook that was turned off after failures."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"webhookId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","url","description","events","enabled","secret_hint","failing_since","disabled_at","disabled_reason","last_success_at","last_failure_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"events":{"type":"array","items":{"type":"string"},"description":"Event types this webhook receives; [\"*\"] means every event."},"enabled":{"type":"boolean"},"secret_hint":{"type":"string","description":"The last four characters of the signing secret, to tell secrets apart."},"failing_since":{"anyOf":[{"type":"integer","description":"Start of the current run of failed deliveries; null while healthy (ms since Unix epoch)"},{"type":"null"}]},"disabled_at":{"anyOf":[{"type":"integer","description":"When runofsho turned the webhook off after a day of failures (ms since Unix epoch)"},{"type":"null"}]},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_success_at":{"anyOf":[{"type":"integer","description":"Last successful delivery (ms since Unix epoch)"},{"type":"null"}]},"last_failure_at":{"anyOf":[{"type":"integer","description":"Last failed attempt (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Webhook"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteWebhook","summary":"Delete a webhook","tags":["Webhooks"],"description":"Also deletes its delivery log. Deliveries still waiting are dropped.","parameters":[{"schema":{"type":"string"},"in":"path","name":"webhookId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/{webhookId}/rotate-secret":{"post":{"operationId":"rotateWebhookSecret","summary":"Replace the signing secret","tags":["Webhooks"],"description":"The old secret stops being used at once. The new one is returned once, here.","parameters":[{"schema":{"type":"string"},"in":"path","name":"webhookId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["webhook","secret"],"properties":{"webhook":{"type":"object","required":["id","url","description","events","enabled","secret_hint","failing_since","disabled_at","disabled_reason","last_success_at","last_failure_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string"},"events":{"type":"array","items":{"type":"string"},"description":"Event types this webhook receives; [\"*\"] means every event."},"enabled":{"type":"boolean"},"secret_hint":{"type":"string","description":"The last four characters of the signing secret, to tell secrets apart."},"failing_since":{"anyOf":[{"type":"integer","description":"Start of the current run of failed deliveries; null while healthy (ms since Unix epoch)"},{"type":"null"}]},"disabled_at":{"anyOf":[{"type":"integer","description":"When runofsho turned the webhook off after a day of failures (ms since Unix epoch)"},{"type":"null"}]},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_success_at":{"anyOf":[{"type":"integer","description":"Last successful delivery (ms since Unix epoch)"},{"type":"null"}]},"last_failure_at":{"anyOf":[{"type":"integer","description":"Last failed attempt (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Webhook"},"secret":{"type":"string","description":"The signing secret (whsec_…). Shown only here; store it now. Use it to verify the Runofsho-Signature header."}},"title":"WebhookWithSecret"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/{webhookId}/test":{"post":{"operationId":"testWebhook","summary":"Send a test event","tags":["Webhooks"],"description":"Sends a signed \"webhook.test\" event to the URL right now, once, and returns how the endpoint answered. Works on disabled webhooks too and does not count toward the failure streak.","parameters":[{"schema":{"type":"string"},"in":"path","name":"webhookId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","webhook_id","event","status","attempts","next_attempt_at","response_status","duration_ms","error","payload","created_at","completed_at"],"properties":{"id":{"type":"string","description":"Also sent as the \"id\" of the request body and the Runofsho-Delivery header. Use it to ignore duplicates."},"webhook_id":{"type":"string"},"event":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed"],"description":"pending: waiting for its first attempt or a retry."},"attempts":{"type":"integer"},"next_attempt_at":{"anyOf":[{"type":"integer","description":"When the next retry is due (ms since Unix epoch)"},{"type":"null"}]},"response_status":{"anyOf":[{"type":"integer","description":"HTTP status of the last attempt; null when no response arrived."},{"type":"null"}]},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"error":{"anyOf":[{"type":"string","description":"Why the last attempt failed."},{"type":"null"}]},"payload":{"description":"The JSON body that was (or will be) sent."},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"completed_at":{"anyOf":[{"type":"integer","description":"Delivered, or given up on (ms since Unix epoch)"},{"type":"null"}]}},"title":"WebhookDelivery"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/{webhookId}/deliveries":{"get":{"operationId":"listWebhookDeliveries","summary":"List a webhook's deliveries, newest first","tags":["Webhooks"],"description":"What was sent, how often it was tried and how the endpoint answered. Kept for 7 days. Page with meta.next_cursor.","parameters":[{"schema":{"anyOf":[{"type":"string","enum":["pending"]},{"type":"string","enum":["succeeded"]},{"type":"string","enum":["failed"]}]},"in":"query","name":"status","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string"},"in":"path","name":"webhookId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","required":["id","webhook_id","event","status","attempts","next_attempt_at","response_status","duration_ms","error","payload","created_at","completed_at"],"properties":{"id":{"type":"string","description":"Also sent as the \"id\" of the request body and the Runofsho-Delivery header. Use it to ignore duplicates."},"webhook_id":{"type":"string"},"event":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed"],"description":"pending: waiting for its first attempt or a retry."},"attempts":{"type":"integer"},"next_attempt_at":{"anyOf":[{"type":"integer","description":"When the next retry is due (ms since Unix epoch)"},{"type":"null"}]},"response_status":{"anyOf":[{"type":"integer","description":"HTTP status of the last attempt; null when no response arrived."},{"type":"null"}]},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"error":{"anyOf":[{"type":"string","description":"Why the last attempt failed."},{"type":"null"}]},"payload":{"description":"The JSON body that was (or will be) sent."},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"completed_at":{"anyOf":[{"type":"integer","description":"Delivered, or given up on (ms since Unix epoch)"},{"type":"null"}]}},"title":"WebhookDelivery"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/{webhookId}/deliveries/{deliveryId}/retry":{"post":{"operationId":"retryWebhookDelivery","summary":"Send a delivery again","tags":["Webhooks"],"description":"Sends a finished delivery again, once, right now, with the same body and delivery id. Returns 409 CONFLICT while it is still being retried automatically.","parameters":[{"schema":{"type":"string"},"in":"path","name":"webhookId","required":true},{"schema":{"type":"string"},"in":"path","name":"deliveryId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","webhook_id","event","status","attempts","next_attempt_at","response_status","duration_ms","error","payload","created_at","completed_at"],"properties":{"id":{"type":"string","description":"Also sent as the \"id\" of the request body and the Runofsho-Delivery header. Use it to ignore duplicates."},"webhook_id":{"type":"string"},"event":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed"],"description":"pending: waiting for its first attempt or a retry."},"attempts":{"type":"integer"},"next_attempt_at":{"anyOf":[{"type":"integer","description":"When the next retry is due (ms since Unix epoch)"},{"type":"null"}]},"response_status":{"anyOf":[{"type":"integer","description":"HTTP status of the last attempt; null when no response arrived."},{"type":"null"}]},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"error":{"anyOf":[{"type":"string","description":"Why the last attempt failed."},{"type":"null"}]},"payload":{"description":"The JSON body that was (or will be) sent."},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"completed_at":{"anyOf":[{"type":"integer","description":"Delivered, or given up on (ms since Unix epoch)"},{"type":"null"}]}},"title":"WebhookDelivery"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/automations":{"get":{"operationId":"listAutomations","summary":"List a room's automations","tags":["Automations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","required":["id","room_id","name","trigger","conditions","actions","enabled","disabled_reason","last_fired_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"room_id":{"type":"string"},"name":{"type":"string"},"trigger":{"anyOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["timer.started","timer.yellow","timer.red","timer.finished","timer.overrun"],"description":"Fires when the room emits this event."}}},{"type":"object","required":["type","ms"],"properties":{"type":{"type":"string","enum":["remaining_lte"]},"ms":{"type":"integer","minimum":0,"maximum":86400000,"description":"Fires once per run of a timer, when its remaining time drops to this many milliseconds or less."}}},{"type":"object","required":["type","at"],"properties":{"type":{"type":"string","enum":["scheduled_at"]},"at":{"type":"integer","description":"Fires once at this moment (ms since Unix epoch)"}}}],"title":"AutomationTrigger"},"conditions":{"anyOf":[{"type":"object","properties":{"timer_ids":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Only when the timer is one of these."},"on_air":{"type":"boolean","description":"Only while on-air is on (true) or off (false)."},"blackout":{"type":"boolean","description":"Only while blackout is on (true) or off (false)."}},"title":"AutomationConditions"},{"type":"null"}]},"actions":{"type":"array","items":{"anyOf":[{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["playback"]},"action":{"type":"string","enum":["start","stop","toggle","reset","next","previous","select","jump","add-time","subtract-time","start-fresh"]},"args":{"type":"object","description":"The same body as the playback endpoint of that name.","additionalProperties":{}}},"title":"PlaybackAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["message"]},"action":{"type":"string","enum":["show","show_preset","hide"]},"message_id":{"type":"string","description":"For show; optional for hide (hides only if this one is on screen)."},"preset_id":{"type":"string","description":"For show_preset."},"focus":{"type":"boolean"}},"title":"MessageAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["display"]},"action":{"type":"string","enum":["flash","stop_flash","blackout","on_air"]},"count":{"type":"integer","minimum":1,"maximum":999,"description":"For flash. Default 3."},"enabled":{"type":"boolean","description":"For blackout and on_air."}},"title":"DisplayAction"},{"type":"object","required":["type","webhook_id"],"properties":{"type":{"type":"string","enum":["webhook"]},"webhook_id":{"type":"string","description":"One of the team's webhooks. It receives an \"automation.action\" delivery, signed and retried like any other."}},"title":"WebhookAction"},{"type":"object","required":["type","to","subject","text"],"properties":{"type":{"type":"string","enum":["email"]},"to":{"type":"array","items":{"type":"string","pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","maxLength":200,"description":"An email address."},"minItems":1,"maxItems":10},"subject":{"type":"string","minLength":1,"maxLength":200,"description":"Subject. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."},"text":{"type":"string","minLength":1,"maxLength":4000,"description":"Plain-text body. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"EmailAction"},{"type":"object","required":["type","webhook_url","text"],"properties":{"type":{"type":"string","enum":["slack"]},"webhook_url":{"type":"string","maxLength":500,"description":"A Slack incoming-webhook URL (https://hooks.slack.com/…)."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The message. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SlackAction"},{"type":"object","required":["type","to","text"],"properties":{"type":{"type":"string","enum":["sms"]},"to":{"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$","description":"A phone number in international format, e.g. +14075550123."},"minItems":1,"maxItems":10},"text":{"type":"string","minLength":1,"maxLength":480,"description":"The text message; at most 480 characters are sent. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SmsAction"}],"title":"AutomationAction"}},"enabled":{"type":"boolean"},"disabled_reason":{"anyOf":[{"type":"string","description":"Set when runofsho switched the rule off because it kept firing in a loop."},{"type":"null"}]},"last_fired_at":{"anyOf":[{"type":"integer","description":"Last time the rule ran its actions (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Automation"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createAutomation","summary":"Create an automation","tags":["Automations"],"description":"A rule is { trigger, conditions?, actions[] }. Actions run in order as the actor \"automation:<id>\", through the same code as the REST endpoints, so they appear in the audit log and emit the usual events. Every firing is kept as a run. Needs the admin scope and a plan with automations.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","trigger","actions"],"properties":{"name":{"type":"string","minLength":1,"maxLength":120},"trigger":{"anyOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["timer.started","timer.yellow","timer.red","timer.finished","timer.overrun"],"description":"Fires when the room emits this event."}}},{"type":"object","required":["type","ms"],"properties":{"type":{"type":"string","enum":["remaining_lte"]},"ms":{"type":"integer","minimum":0,"maximum":86400000,"description":"Fires once per run of a timer, when its remaining time drops to this many milliseconds or less."}}},{"type":"object","required":["type","at"],"properties":{"type":{"type":"string","enum":["scheduled_at"]},"at":{"type":"integer","description":"Fires once at this moment (ms since Unix epoch)"}}}],"title":"AutomationTrigger"},"conditions":{"anyOf":[{"type":"object","properties":{"timer_ids":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Only when the timer is one of these."},"on_air":{"type":"boolean","description":"Only while on-air is on (true) or off (false)."},"blackout":{"type":"boolean","description":"Only while blackout is on (true) or off (false)."}},"title":"AutomationConditions"},{"type":"null"}]},"actions":{"type":"array","items":{"anyOf":[{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["playback"]},"action":{"type":"string","enum":["start","stop","toggle","reset","next","previous","select","jump","add-time","subtract-time","start-fresh"]},"args":{"type":"object","description":"The same body as the playback endpoint of that name.","additionalProperties":{}}},"title":"PlaybackAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["message"]},"action":{"type":"string","enum":["show","show_preset","hide"]},"message_id":{"type":"string","description":"For show; optional for hide (hides only if this one is on screen)."},"preset_id":{"type":"string","description":"For show_preset."},"focus":{"type":"boolean"}},"title":"MessageAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["display"]},"action":{"type":"string","enum":["flash","stop_flash","blackout","on_air"]},"count":{"type":"integer","minimum":1,"maximum":999,"description":"For flash. Default 3."},"enabled":{"type":"boolean","description":"For blackout and on_air."}},"title":"DisplayAction"},{"type":"object","required":["type","webhook_id"],"properties":{"type":{"type":"string","enum":["webhook"]},"webhook_id":{"type":"string","description":"One of the team's webhooks. It receives an \"automation.action\" delivery, signed and retried like any other."}},"title":"WebhookAction"},{"type":"object","required":["type","to","subject","text"],"properties":{"type":{"type":"string","enum":["email"]},"to":{"type":"array","items":{"type":"string","pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","maxLength":200,"description":"An email address."},"minItems":1,"maxItems":10},"subject":{"type":"string","minLength":1,"maxLength":200,"description":"Subject. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."},"text":{"type":"string","minLength":1,"maxLength":4000,"description":"Plain-text body. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"EmailAction"},{"type":"object","required":["type","webhook_url","text"],"properties":{"type":{"type":"string","enum":["slack"]},"webhook_url":{"type":"string","maxLength":500,"description":"A Slack incoming-webhook URL (https://hooks.slack.com/…)."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The message. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SlackAction"},{"type":"object","required":["type","to","text"],"properties":{"type":{"type":"string","enum":["sms"]},"to":{"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$","description":"A phone number in international format, e.g. +14075550123."},"minItems":1,"maxItems":10},"text":{"type":"string","minLength":1,"maxLength":480,"description":"The text message; at most 480 characters are sent. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SmsAction"}],"title":"AutomationAction"},"minItems":1,"maxItems":10,"description":"Run in order. One failing does not stop the rest."},"enabled":{"type":"boolean","description":"Default true."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","room_id","name","trigger","conditions","actions","enabled","disabled_reason","last_fired_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"room_id":{"type":"string"},"name":{"type":"string"},"trigger":{"anyOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["timer.started","timer.yellow","timer.red","timer.finished","timer.overrun"],"description":"Fires when the room emits this event."}}},{"type":"object","required":["type","ms"],"properties":{"type":{"type":"string","enum":["remaining_lte"]},"ms":{"type":"integer","minimum":0,"maximum":86400000,"description":"Fires once per run of a timer, when its remaining time drops to this many milliseconds or less."}}},{"type":"object","required":["type","at"],"properties":{"type":{"type":"string","enum":["scheduled_at"]},"at":{"type":"integer","description":"Fires once at this moment (ms since Unix epoch)"}}}],"title":"AutomationTrigger"},"conditions":{"anyOf":[{"type":"object","properties":{"timer_ids":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Only when the timer is one of these."},"on_air":{"type":"boolean","description":"Only while on-air is on (true) or off (false)."},"blackout":{"type":"boolean","description":"Only while blackout is on (true) or off (false)."}},"title":"AutomationConditions"},{"type":"null"}]},"actions":{"type":"array","items":{"anyOf":[{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["playback"]},"action":{"type":"string","enum":["start","stop","toggle","reset","next","previous","select","jump","add-time","subtract-time","start-fresh"]},"args":{"type":"object","description":"The same body as the playback endpoint of that name.","additionalProperties":{}}},"title":"PlaybackAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["message"]},"action":{"type":"string","enum":["show","show_preset","hide"]},"message_id":{"type":"string","description":"For show; optional for hide (hides only if this one is on screen)."},"preset_id":{"type":"string","description":"For show_preset."},"focus":{"type":"boolean"}},"title":"MessageAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["display"]},"action":{"type":"string","enum":["flash","stop_flash","blackout","on_air"]},"count":{"type":"integer","minimum":1,"maximum":999,"description":"For flash. Default 3."},"enabled":{"type":"boolean","description":"For blackout and on_air."}},"title":"DisplayAction"},{"type":"object","required":["type","webhook_id"],"properties":{"type":{"type":"string","enum":["webhook"]},"webhook_id":{"type":"string","description":"One of the team's webhooks. It receives an \"automation.action\" delivery, signed and retried like any other."}},"title":"WebhookAction"},{"type":"object","required":["type","to","subject","text"],"properties":{"type":{"type":"string","enum":["email"]},"to":{"type":"array","items":{"type":"string","pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","maxLength":200,"description":"An email address."},"minItems":1,"maxItems":10},"subject":{"type":"string","minLength":1,"maxLength":200,"description":"Subject. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."},"text":{"type":"string","minLength":1,"maxLength":4000,"description":"Plain-text body. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"EmailAction"},{"type":"object","required":["type","webhook_url","text"],"properties":{"type":{"type":"string","enum":["slack"]},"webhook_url":{"type":"string","maxLength":500,"description":"A Slack incoming-webhook URL (https://hooks.slack.com/…)."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The message. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SlackAction"},{"type":"object","required":["type","to","text"],"properties":{"type":{"type":"string","enum":["sms"]},"to":{"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$","description":"A phone number in international format, e.g. +14075550123."},"minItems":1,"maxItems":10},"text":{"type":"string","minLength":1,"maxLength":480,"description":"The text message; at most 480 characters are sent. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SmsAction"}],"title":"AutomationAction"}},"enabled":{"type":"boolean"},"disabled_reason":{"anyOf":[{"type":"string","description":"Set when runofsho switched the rule off because it kept firing in a loop."},{"type":"null"}]},"last_fired_at":{"anyOf":[{"type":"integer","description":"Last time the rule ran its actions (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Automation"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/automations/{automationId}":{"get":{"operationId":"getAutomation","summary":"Get an automation","tags":["Automations"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"automationId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","room_id","name","trigger","conditions","actions","enabled","disabled_reason","last_fired_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"room_id":{"type":"string"},"name":{"type":"string"},"trigger":{"anyOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["timer.started","timer.yellow","timer.red","timer.finished","timer.overrun"],"description":"Fires when the room emits this event."}}},{"type":"object","required":["type","ms"],"properties":{"type":{"type":"string","enum":["remaining_lte"]},"ms":{"type":"integer","minimum":0,"maximum":86400000,"description":"Fires once per run of a timer, when its remaining time drops to this many milliseconds or less."}}},{"type":"object","required":["type","at"],"properties":{"type":{"type":"string","enum":["scheduled_at"]},"at":{"type":"integer","description":"Fires once at this moment (ms since Unix epoch)"}}}],"title":"AutomationTrigger"},"conditions":{"anyOf":[{"type":"object","properties":{"timer_ids":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Only when the timer is one of these."},"on_air":{"type":"boolean","description":"Only while on-air is on (true) or off (false)."},"blackout":{"type":"boolean","description":"Only while blackout is on (true) or off (false)."}},"title":"AutomationConditions"},{"type":"null"}]},"actions":{"type":"array","items":{"anyOf":[{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["playback"]},"action":{"type":"string","enum":["start","stop","toggle","reset","next","previous","select","jump","add-time","subtract-time","start-fresh"]},"args":{"type":"object","description":"The same body as the playback endpoint of that name.","additionalProperties":{}}},"title":"PlaybackAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["message"]},"action":{"type":"string","enum":["show","show_preset","hide"]},"message_id":{"type":"string","description":"For show; optional for hide (hides only if this one is on screen)."},"preset_id":{"type":"string","description":"For show_preset."},"focus":{"type":"boolean"}},"title":"MessageAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["display"]},"action":{"type":"string","enum":["flash","stop_flash","blackout","on_air"]},"count":{"type":"integer","minimum":1,"maximum":999,"description":"For flash. Default 3."},"enabled":{"type":"boolean","description":"For blackout and on_air."}},"title":"DisplayAction"},{"type":"object","required":["type","webhook_id"],"properties":{"type":{"type":"string","enum":["webhook"]},"webhook_id":{"type":"string","description":"One of the team's webhooks. It receives an \"automation.action\" delivery, signed and retried like any other."}},"title":"WebhookAction"},{"type":"object","required":["type","to","subject","text"],"properties":{"type":{"type":"string","enum":["email"]},"to":{"type":"array","items":{"type":"string","pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","maxLength":200,"description":"An email address."},"minItems":1,"maxItems":10},"subject":{"type":"string","minLength":1,"maxLength":200,"description":"Subject. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."},"text":{"type":"string","minLength":1,"maxLength":4000,"description":"Plain-text body. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"EmailAction"},{"type":"object","required":["type","webhook_url","text"],"properties":{"type":{"type":"string","enum":["slack"]},"webhook_url":{"type":"string","maxLength":500,"description":"A Slack incoming-webhook URL (https://hooks.slack.com/…)."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The message. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SlackAction"},{"type":"object","required":["type","to","text"],"properties":{"type":{"type":"string","enum":["sms"]},"to":{"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$","description":"A phone number in international format, e.g. +14075550123."},"minItems":1,"maxItems":10},"text":{"type":"string","minLength":1,"maxLength":480,"description":"The text message; at most 480 characters are sent. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SmsAction"}],"title":"AutomationAction"}},"enabled":{"type":"boolean"},"disabled_reason":{"anyOf":[{"type":"string","description":"Set when runofsho switched the rule off because it kept firing in a loop."},{"type":"null"}]},"last_fired_at":{"anyOf":[{"type":"integer","description":"Last time the rule ran its actions (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Automation"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateAutomation","summary":"Change an automation","tags":["Automations"],"description":"Only the fields you send change. \"enabled\": true also turns a rule back on after runofsho switched it off for firing in a loop.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"trigger":{"anyOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["timer.started","timer.yellow","timer.red","timer.finished","timer.overrun"],"description":"Fires when the room emits this event."}}},{"type":"object","required":["type","ms"],"properties":{"type":{"type":"string","enum":["remaining_lte"]},"ms":{"type":"integer","minimum":0,"maximum":86400000,"description":"Fires once per run of a timer, when its remaining time drops to this many milliseconds or less."}}},{"type":"object","required":["type","at"],"properties":{"type":{"type":"string","enum":["scheduled_at"]},"at":{"type":"integer","description":"Fires once at this moment (ms since Unix epoch)"}}}],"title":"AutomationTrigger"},"conditions":{"anyOf":[{"type":"object","properties":{"timer_ids":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Only when the timer is one of these."},"on_air":{"type":"boolean","description":"Only while on-air is on (true) or off (false)."},"blackout":{"type":"boolean","description":"Only while blackout is on (true) or off (false)."}},"title":"AutomationConditions"},{"type":"null"}]},"actions":{"type":"array","items":{"anyOf":[{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["playback"]},"action":{"type":"string","enum":["start","stop","toggle","reset","next","previous","select","jump","add-time","subtract-time","start-fresh"]},"args":{"type":"object","description":"The same body as the playback endpoint of that name.","additionalProperties":{}}},"title":"PlaybackAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["message"]},"action":{"type":"string","enum":["show","show_preset","hide"]},"message_id":{"type":"string","description":"For show; optional for hide (hides only if this one is on screen)."},"preset_id":{"type":"string","description":"For show_preset."},"focus":{"type":"boolean"}},"title":"MessageAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["display"]},"action":{"type":"string","enum":["flash","stop_flash","blackout","on_air"]},"count":{"type":"integer","minimum":1,"maximum":999,"description":"For flash. Default 3."},"enabled":{"type":"boolean","description":"For blackout and on_air."}},"title":"DisplayAction"},{"type":"object","required":["type","webhook_id"],"properties":{"type":{"type":"string","enum":["webhook"]},"webhook_id":{"type":"string","description":"One of the team's webhooks. It receives an \"automation.action\" delivery, signed and retried like any other."}},"title":"WebhookAction"},{"type":"object","required":["type","to","subject","text"],"properties":{"type":{"type":"string","enum":["email"]},"to":{"type":"array","items":{"type":"string","pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","maxLength":200,"description":"An email address."},"minItems":1,"maxItems":10},"subject":{"type":"string","minLength":1,"maxLength":200,"description":"Subject. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."},"text":{"type":"string","minLength":1,"maxLength":4000,"description":"Plain-text body. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"EmailAction"},{"type":"object","required":["type","webhook_url","text"],"properties":{"type":{"type":"string","enum":["slack"]},"webhook_url":{"type":"string","maxLength":500,"description":"A Slack incoming-webhook URL (https://hooks.slack.com/…)."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The message. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SlackAction"},{"type":"object","required":["type","to","text"],"properties":{"type":{"type":"string","enum":["sms"]},"to":{"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$","description":"A phone number in international format, e.g. +14075550123."},"minItems":1,"maxItems":10},"text":{"type":"string","minLength":1,"maxLength":480,"description":"The text message; at most 480 characters are sent. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SmsAction"}],"title":"AutomationAction"},"minItems":1,"maxItems":10,"description":"Run in order. One failing does not stop the rest."},"enabled":{"type":"boolean","description":"Default true."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"automationId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","room_id","name","trigger","conditions","actions","enabled","disabled_reason","last_fired_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"room_id":{"type":"string"},"name":{"type":"string"},"trigger":{"anyOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["timer.started","timer.yellow","timer.red","timer.finished","timer.overrun"],"description":"Fires when the room emits this event."}}},{"type":"object","required":["type","ms"],"properties":{"type":{"type":"string","enum":["remaining_lte"]},"ms":{"type":"integer","minimum":0,"maximum":86400000,"description":"Fires once per run of a timer, when its remaining time drops to this many milliseconds or less."}}},{"type":"object","required":["type","at"],"properties":{"type":{"type":"string","enum":["scheduled_at"]},"at":{"type":"integer","description":"Fires once at this moment (ms since Unix epoch)"}}}],"title":"AutomationTrigger"},"conditions":{"anyOf":[{"type":"object","properties":{"timer_ids":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Only when the timer is one of these."},"on_air":{"type":"boolean","description":"Only while on-air is on (true) or off (false)."},"blackout":{"type":"boolean","description":"Only while blackout is on (true) or off (false)."}},"title":"AutomationConditions"},{"type":"null"}]},"actions":{"type":"array","items":{"anyOf":[{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["playback"]},"action":{"type":"string","enum":["start","stop","toggle","reset","next","previous","select","jump","add-time","subtract-time","start-fresh"]},"args":{"type":"object","description":"The same body as the playback endpoint of that name.","additionalProperties":{}}},"title":"PlaybackAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["message"]},"action":{"type":"string","enum":["show","show_preset","hide"]},"message_id":{"type":"string","description":"For show; optional for hide (hides only if this one is on screen)."},"preset_id":{"type":"string","description":"For show_preset."},"focus":{"type":"boolean"}},"title":"MessageAction"},{"type":"object","required":["type","action"],"properties":{"type":{"type":"string","enum":["display"]},"action":{"type":"string","enum":["flash","stop_flash","blackout","on_air"]},"count":{"type":"integer","minimum":1,"maximum":999,"description":"For flash. Default 3."},"enabled":{"type":"boolean","description":"For blackout and on_air."}},"title":"DisplayAction"},{"type":"object","required":["type","webhook_id"],"properties":{"type":{"type":"string","enum":["webhook"]},"webhook_id":{"type":"string","description":"One of the team's webhooks. It receives an \"automation.action\" delivery, signed and retried like any other."}},"title":"WebhookAction"},{"type":"object","required":["type","to","subject","text"],"properties":{"type":{"type":"string","enum":["email"]},"to":{"type":"array","items":{"type":"string","pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","maxLength":200,"description":"An email address."},"minItems":1,"maxItems":10},"subject":{"type":"string","minLength":1,"maxLength":200,"description":"Subject. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."},"text":{"type":"string","minLength":1,"maxLength":4000,"description":"Plain-text body. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"EmailAction"},{"type":"object","required":["type","webhook_url","text"],"properties":{"type":{"type":"string","enum":["slack"]},"webhook_url":{"type":"string","maxLength":500,"description":"A Slack incoming-webhook URL (https://hooks.slack.com/…)."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The message. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SlackAction"},{"type":"object","required":["type","to","text"],"properties":{"type":{"type":"string","enum":["sms"]},"to":{"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$","description":"A phone number in international format, e.g. +14075550123."},"minItems":1,"maxItems":10},"text":{"type":"string","minLength":1,"maxLength":480,"description":"The text message; at most 480 characters are sent. May contain {{room}}, {{timer}}, {{speaker}}, {{next}}, {{next_speaker}}, {{trigger}} and {{time}}."}},"title":"SmsAction"}],"title":"AutomationAction"}},"enabled":{"type":"boolean"},"disabled_reason":{"anyOf":[{"type":"string","description":"Set when runofsho switched the rule off because it kept firing in a loop."},{"type":"null"}]},"last_fired_at":{"anyOf":[{"type":"integer","description":"Last time the rule ran its actions (ms since Unix epoch)"},{"type":"null"}]},"created_at":{"type":"integer","description":"Created (ms since Unix epoch)"},"updated_at":{"type":"integer","description":"Updated (ms since Unix epoch)"}},"title":"Automation"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteAutomation","summary":"Delete an automation","tags":["Automations"],"description":"Also deletes its runs.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"automationId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/automations/{automationId}/run":{"post":{"operationId":"runAutomation","summary":"Run an automation now","tags":["Automations"],"description":"Runs the actions once, right now, without waiting for the trigger or checking the conditions. Works on a rule that is turned off, so you can try it first.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"automationId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","automation_id","room_id","trigger","timer_id","status","results","created_at","finished_at"],"properties":{"id":{"type":"string"},"automation_id":{"type":"string"},"room_id":{"type":"string"},"trigger":{"type":"string","description":"The trigger type, or \"manual\" for POST …/run."},"timer_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["pending","running","succeeded","failed","skipped"],"description":"failed: at least one action failed. skipped: the conditions did not hold, or the rule was off by then."},"results":{"type":"array","items":{"type":"object","required":["type","ok","detail"],"properties":{"type":{"type":"string","description":"The action type, in the order the rule lists them."},"ok":{"type":"boolean"},"detail":{"anyOf":[{"type":"string","description":"Why it failed, or a reference such as the delivery id."},{"type":"null"}]}}}},"created_at":{"type":"integer","description":"When the trigger happened (ms since Unix epoch)"},"finished_at":{"anyOf":[{"type":"integer","description":"When the last action finished (ms since Unix epoch)"},{"type":"null"}]}},"title":"AutomationRun"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/automations/{automationId}/runs":{"get":{"operationId":"listAutomationRuns","summary":"List the firings of an automation, newest first","tags":["Automations"],"description":"Each run lists every action and whether it worked. Kept for 30 days. Page with meta.next_cursor.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"automationId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","required":["id","automation_id","room_id","trigger","timer_id","status","results","created_at","finished_at"],"properties":{"id":{"type":"string"},"automation_id":{"type":"string"},"room_id":{"type":"string"},"trigger":{"type":"string","description":"The trigger type, or \"manual\" for POST …/run."},"timer_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["pending","running","succeeded","failed","skipped"],"description":"failed: at least one action failed. skipped: the conditions did not hold, or the rule was off by then."},"results":{"type":"array","items":{"type":"object","required":["type","ok","detail"],"properties":{"type":{"type":"string","description":"The action type, in the order the rule lists them."},"ok":{"type":"boolean"},"detail":{"anyOf":[{"type":"string","description":"Why it failed, or a reference such as the delivery id."},{"type":"null"}]}}}},"created_at":{"type":"integer","description":"When the trigger happened (ms since Unix epoch)"},"finished_at":{"anyOf":[{"type":"integer","description":"When the last action finished (ms since Unix epoch)"},{"type":"null"}]}},"title":"AutomationRun"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/logs":{"get":{"operationId":"listRoomLogs","summary":"Read the room's audit log, newest first","tags":["Rooms"],"description":"Who did what and when, from which device, and the state before and after. One entry per committed change: commands from the API and sockets, automations, and timers the scheduler started or finished. Kept for a year. Needs the manage scope and a plan with the audit log. Page with meta.next_cursor.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string"},"in":"query","name":"action","required":false,"description":"Only this operation, e.g. playbackStart."},{"schema":{"type":"string"},"in":"query","name":"actor","required":false,"description":"Only this actor id (key:key_…) or actor type (key, user, automation, system)."},{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","required":["id","room_id","actor","device","ip","action","events","before","after","version","at"],"properties":{"id":{"type":"string"},"room_id":{"type":"string"},"actor":{"type":"object","required":["type","id","name"],"properties":{"type":{"type":"string","description":"key, user, trial, output, automation or system."},"id":{"type":"string","description":"For example key:key_…, user:<id>, automation:aut_… or system:scheduler."},"name":{"anyOf":[{"type":"string","description":"The person's name or the API key's name at the time, when there was one."},{"type":"null"}]}}},"device":{"anyOf":[{"type":"string","description":"The Runofsho-Device header if the client sent one, otherwise its user agent."},{"type":"null"}]},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"action":{"type":"string","description":"The operation, e.g. playbackStart, setBlackout, showMessage, automation, scheduler."},"events":{"type":"array","items":{"type":"string"},"description":"The events this change emitted."},"before":{"type":"object","description":"Playback, blackout, on-air and the message on screen before the change; changed room settings under \"room\".","additionalProperties":{}},"after":{"type":"object","additionalProperties":{}},"version":{"type":"integer","description":"Room version after the change."},"at":{"type":"integer","description":"When (ms since Unix epoch)"}},"title":"AuditEntry"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/chat":{"get":{"operationId":"listChat","summary":"Read the room chat, newest first","tags":["Chat"],"description":"Operators (operate scope) and screens whose output link has allow_reply use this. Other credentials get 403. Also returns the unread counts for both sides and the quick replies a presenter can send. Page with meta.next_cursor.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["messages","unread","quick_replies","you_are"],"properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/ChatMessage"}},"unread":{"$ref":"#/components/schemas/ChatUnread"},"quick_replies":{"type":"array","items":{"type":"object","required":["id","text"],"properties":{"id":{"type":"string"},"text":{"type":"string"}}}},"you_are":{"anyOf":[{"type":"string","enum":["operator"]},{"type":"string","enum":["presenter"]}],"description":"Which side of the conversation this credential is on."}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postChat","summary":"Write in the room chat","tags":["Chat"],"description":"Send \"text\" or a \"quick_reply_id\". Operators (operate scope) and screens whose output link has allow_reply use this. Other credentials get 403. Emits chat.message. Needs a plan with presenter chat.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"quick_reply_id":{"type":"string","maxLength":32,"description":"One of the quick replies listed by GET /v1/rooms/{roomId}/chat. Send this or text."},"from":{"type":"string","enum":["operator","presenter"],"description":"Defaults to what the credential is: presenter for output links, operator otherwise. Output links can only send as presenter."}},"title":"ChatPost"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["message","unread"],"properties":{"message":{"$ref":"#/components/schemas/ChatMessage"},"unread":{"$ref":"#/components/schemas/ChatUnread"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/chat/read":{"post":{"operationId":"markChatRead","summary":"Mark the chat as read","tags":["Chat"],"description":"Marks everything the other side wrote as read and emits chat.read. Operators (operate scope) and screens whose output link has allow_reply use this. Other credentials get 403.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reader":{"type":"string","enum":["operator","presenter"],"description":"Who has read the chat. Defaults to what the credential is."}},"title":"ChatRead"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["unread","read_at"],"properties":{"unread":{"$ref":"#/components/schemas/ChatUnread"},"read_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Null when there was nothing unread."}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/prompter":{"get":{"operationId":"getPrompter","summary":"Get the script stream of a rundown","tags":["Prompter"],"description":"The rows in order, without floating rows, each with the text of the script column (the first rich text column, or ?column_id=), its word count and an estimated reading time, plus the current remote-control state. An output link with view \"prompter\" may read this for the rundown its room is playing; it sees the script column and nothing else of the rundown. Live updates: subscribe on socket.io with { prompters: [rundownId] } to receive prompter.script and prompter.control. Needs a plan with the prompter.","parameters":[{"schema":{"type":"string"},"in":"query","name":"column_id","required":false},{"schema":{"type":"integer","minimum":60,"maximum":400},"in":"query","name":"wpm","required":false},{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/PrompterScript"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/prompter/control":{"post":{"operationId":"controlPrompter","summary":"Remote-control the prompter","tags":["Prompter"],"description":"play, pause, speed, jump (to a row), scroll_to (a place in the script) or nudge (a few lines up or down). The server keeps where the script is as a row, an offset and a time, so every display, whatever its width or text size, has the same words at the reading line, and one that joins mid-roll lines up at once. The command goes out as prompter.control. Needs the operate scope.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["play","pause","speed","jump","scroll_to","nudge"]},"value":{"anyOf":[{"type":"number"},{"type":"string","maxLength":32}],"description":"speed: standard lines per minute (negative scrolls backwards). jump: a row id. scroll_to: 0 (top) to 1 (end). nudge: standard lines to move by, negative for back. pause: nothing (the server knows where the script is); a number from 0 to 1 moves there as well. play: nothing."}},"title":"PrompterCommand"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/PrompterControl"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/read-time":{"post":{"operationId":"estimateReadTime","summary":"Estimate how long a script takes to read aloud","tags":["Prompter"],"description":"Counts the words (Markdown marks, links and images do not count) and divides by the speaking speed. Rounded to the second.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":200000},"wpm":{"type":"integer","minimum":60,"maximum":400,"description":"Speaking speed in words per minute. Default 150."}},"title":"ReadTimeRequest"}}}},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["duration_ms","words","wpm"],"properties":{"duration_ms":{"type":"integer"},"words":{"type":"integer"},"wpm":{"type":"integer"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/chimes":{"get":{"operationId":"listChimes","summary":"List the sounds a room can play","tags":["Chimes"],"description":"The built-in sounds, each as a few notes. Any credential may read this.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Chime"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/chimes":{"get":{"operationId":"getRoomChimes","summary":"Get a room's chime settings","tags":["Chimes"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ChimeSettings"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"updateRoomChimes","summary":"Choose a room's chimes","tags":["Chimes"],"description":"Which sound plays at the yellow and red wrap-up points, at zero and when a message appears, and how loud. Only the fields you send change; null turns a sound off. The room then emits chime.play at those moments. Stored in the room's settings, so it also emits room.updated. Needs a plan with chimes.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"yellow":{"anyOf":[{"type":"string","maxLength":64,"description":"A chime id from GET /v1/chimes."},{"type":"null"}]},"red":{"anyOf":[{"type":"string","maxLength":64,"description":"A chime id from GET /v1/chimes."},{"type":"null"}]},"zero":{"anyOf":[{"type":"string","maxLength":64,"description":"A chime id from GET /v1/chimes."},{"type":"null"}]},"message":{"anyOf":[{"type":"string","maxLength":64,"description":"A chime id from GET /v1/chimes."},{"type":"null"}]},"volume":{"type":"number","minimum":0,"maximum":1}},"title":"ChimeSettingsUpdate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ChimeSettings"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/teams/me/branding":{"get":{"operationId":"getTeamBranding","summary":"Get the team's viewer branding","tags":["Branding"],"description":"Output screens take their look from three levels: the team, the room and the output link. The most specific value wins, field by field.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Branding"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"updateTeamBranding","summary":"Set the team's viewer branding","tags":["Branding"],"description":"Replaces the team level. Every room of the team emits branding.updated. Output screens take their look from three levels: the team, the room and the output link. The most specific value wins, field by field. Needs a plan with branding.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingSettings"}}},"description":"How output screens look. Everything is optional: a missing or null value is inherited from the level above (output link, then room, then team, then the built-in look). This is separate from the palettes of the operator screens."},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Branding"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/branding":{"get":{"operationId":"getRoomBranding","summary":"Get a room's viewer branding","tags":["Branding"],"description":"\"settings\" is what is saved on the room; \"effective\" is what a screen should draw. For an output-link token, \"effective\" includes that link's own branding. Output screens take their look from three levels: the team, the room and the output link. The most specific value wins, field by field.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Branding"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"updateRoomBranding","summary":"Set a room's viewer branding","tags":["Branding"],"description":"Replaces the room level and emits branding.updated. Send {} to inherit everything from the team. Output screens take their look from three levels: the team, the room and the output link. The most specific value wins, field by field. Needs a plan with branding.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingSettings"}}},"description":"How output screens look. Everything is optional: a missing or null value is inherited from the level above (output link, then room, then team, then the built-in look). This is separate from the palettes of the operator screens."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Branding"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/branding/preview":{"post":{"operationId":"createBrandingPreview","summary":"Get a signed link that previews unsaved branding","tags":["Branding"],"description":"Returns a link to the room's output screen as it would look if these settings were saved as the room's (or, with scope \"team\", the team's) branding, without saving them. The link carries a signed token that can only view this room and expires after 15 minutes. Nothing changes for the real screens.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["room_id","settings"],"properties":{"room_id":{"type":"string"},"scope":{"type":"string","enum":["room","team"],"description":"Which level the settings stand in for. Defaults to room."},"settings":{"$ref":"#/components/schemas/BrandingSettings"}},"title":"BrandingPreviewCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["url","token","expires_at"],"properties":{"url":{"type":"string"},"token":{"type":"string","description":"View-only token for the room with the preview settings inside. Use it as a bearer token to read the room and its branding."},"expires_at":{"type":"integer","description":"ms since Unix epoch"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/public/rooms/{roomId}/qa":{"get":{"operationId":"getPublicQa","summary":"What the public question page shows","tags":["Q&A"],"description":"No credential needed. The room's name, its branding, and whether it is taking questions. The answer is the same for everyone and carries Cache-Control: public, s-maxage=5, so a shared cache in front of the API may serve it for a few seconds; opening or closing Q&A shows on phones within that time plus their next poll. A room that has never switched Q&A on answers 404, so room ids cannot be probed.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["room","open","intro","ask_name","branding","captcha_site_key"],"properties":{"room":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"open":{"type":"boolean"},"intro":{"anyOf":[{"type":"string"},{"type":"null"}]},"ask_name":{"type":"boolean"},"branding":{"$ref":"#/components/schemas/EffectiveBranding"},"captcha_site_key":{"anyOf":[{"type":"string","description":"Set when questions need a Cloudflare Turnstile token (captcha_token)."},{"type":"null"}]}},"title":"QaPublic","description":"What the public question page needs to draw itself."},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/public/rooms/{roomId}/questions":{"post":{"operationId":"submitQuestion","summary":"Send a question from the audience","tags":["Q&A"],"description":"No credential needed. The question waits for a moderator; nothing reaches a screen until it is shown. Limited to 30 per minute per IP address and room (a venue often shares one address). 409 when the room is not taking questions; 402 when the room holds as many questions as its plan allows (Free: 3). Emits question.submitted.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"maxLength":300},"name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"description":"Optional. Shown with the question."},"captcha_token":{"type":"string","description":"Required when the server has a captcha configured (see captcha_site_key on GET /v1/public/rooms/{roomId}/qa)."},"website":{"type":"string","maxLength":200,"description":"Leave empty. A trap for scripts that fill in every field: anything here and the question is quietly dropped."}},"title":"QuestionSubmit"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","status","created_at"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending"]},"created_at":{"type":"integer","description":"Received (ms since Unix epoch)"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/questions":{"get":{"operationId":"listQuestions","summary":"List a room's questions, newest first","tags":["Q&A"],"description":"Operators (operate scope) and moderation links may call this. Filter with ?status=. Also returns how many questions there are per status, the plan's limit per room (null: unlimited) and the question on screen. Page with meta.next_cursor.","parameters":[{"schema":{"type":"string","enum":["pending","approved","rejected","answered"]},"in":"query","name":"status","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["questions","counts","total","limit","active","settings"],"properties":{"questions":{"type":"array","items":{"$ref":"#/components/schemas/Question"}},"counts":{"$ref":"#/components/schemas/QuestionCounts"},"total":{"type":"integer"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}]},"active":{"anyOf":[{"$ref":"#/components/schemas/ActiveQuestion"},{"type":"null"}]},"settings":{"$ref":"#/components/schemas/QaSettings"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/questions/{questionId}":{"patch":{"operationId":"updateQuestion","summary":"Approve, reject or mark a question answered","tags":["Q&A"],"description":"Operators (operate scope) and moderation links may call this. A question on screen that stops being approved comes off the screen (question.hidden). Emits question.updated.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["pending","approved","rejected","answered"]}},"title":"QuestionUpdate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"questionId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Question"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteQuestion","summary":"Delete a question","tags":["Q&A"],"description":"Operators (operate scope) and moderation links may call this. Frees a place under the plan's limit. Emits question.updated with deleted: true.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"questionId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/questions/{questionId}/show":{"post":{"operationId":"showQuestion","summary":"Put a question on the stage screen","tags":["Q&A"],"description":"Operators (operate scope) and moderation links may call this. One question is on screen at a time. Showing a pending question approves it; a rejected one answers 422. \"to\": \"presenter\" sends it to the speaker and confidence views only. Emits question.shown.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string","enum":["all","presenter"],"description":"all (default): every output screen. presenter: speaker and confidence views only."}},"title":"QuestionShow"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"questionId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/questions/hide":{"post":{"operationId":"hideQuestion","summary":"Take the question off the screens","tags":["Q&A"],"description":"Operators (operate scope) and moderation links may call this. With answered: true the question is also marked answered. Emits question.hidden.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"answered":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RoomState"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/qa":{"get":{"operationId":"getQaSettings","summary":"Get a room's Q&A settings","tags":["Q&A"],"description":"Operators (operate scope) and moderation links may call this.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/QaSettings"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"updateQaSettings","summary":"Open or close a room's Q&A","tags":["Q&A"],"description":"Needs the operate scope. Only the fields you send change. Stored in the room's settings, so it emits room.updated. Closing keeps the questions already received.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"open":{"type":"boolean"},"intro":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"ask_name":{"type":"boolean"}},"title":"QaSettingsUpdate","description":"Only the fields you send change."}}},"description":"Only the fields you send change."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/QaSettings"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/qa/moderation-links":{"post":{"operationId":"createModerationLink","summary":"Get a signed link for a moderator","tags":["Q&A"],"description":"Needs the manage scope. The link carries a signed token that can read this room and moderate its questions (list, approve, reject, show, hide, delete) and nothing else: it cannot run timers or send messages. It expires by itself; DELETE turns every link off at once.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"expires_in_hours":{"type":"integer","minimum":1,"maximum":168,"default":24,"description":"How long the link works. At most 7 days."},"label":{"type":"string","maxLength":40,"description":"Who the link is for. Appears in the audit log."}},"title":"ModerationLinkCreate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["url","token","expires_at"],"properties":{"url":{"type":"string"},"token":{"type":"string"},"expires_at":{"type":"integer","description":"When the link stops working (ms since Unix epoch)"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"revokeModerationLinks","summary":"Turn off every moderation link of the room","tags":["Q&A"],"description":"Needs the manage scope. Links issued before this call stop working at once (401). Operators are not affected.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["revoked"],"properties":{"revoked":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/checkpoints":{"get":{"operationId":"listCheckpoints","summary":"List a rundown's checkpoints, newest first","tags":["Checkpoints"],"description":"Without the snapshots themselves. Needs a plan with checkpoints (Studio and up).","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Checkpoint"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createCheckpoint","summary":"Take a checkpoint of a rundown","tags":["Checkpoints"],"description":"A named snapshot (\"Rehearsal final\", \"Show v2\") of every row, cell, column and group, the name, the start and the timezone. The rundown itself does not change. At most 100 per rundown. Emits checkpoint.created. Needs the manage scope. Needs a plan with checkpoints (Studio and up).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":120}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Checkpoint"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/checkpoints/{checkpointId}/diff":{"get":{"operationId":"diffCheckpoint","summary":"What changed since a checkpoint","tags":["Checkpoints"],"description":"Compares the checkpoint with the rundown as it is now: rows added, removed and changed, cells, columns, groups and order. \"before\" is what the checkpoint holds, \"after\" what the rundown holds now; a restore puts \"before\" back. Needs a plan with checkpoints (Studio and up).","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"checkpointId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CheckpointDiff"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/checkpoints/{checkpointId}/restore":{"post":{"operationId":"restoreCheckpoint","summary":"Put a rundown back to a checkpoint","tags":["Checkpoints"],"description":"First takes a checkpoint of the rundown as it is (\"saved\"), so the restore can itself be taken back. Then rows added since go to the archive, rows deleted since come back, and everything else gets the checkpoint's values; proof-of-performance stamps are left as they are. It is an ordinary change: one new rundown version, the usual events plus checkpoint.restored, and entries in the history. 422 while a row that would be removed is live or selected in a room; 409 EVENT_ARCHIVED for an archived event. Needs the manage scope. Needs a plan with checkpoints (Studio and up).","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"checkpointId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["checkpoint","saved","version"],"properties":{"checkpoint":{"$ref":"#/components/schemas/Checkpoint"},"saved":{"anyOf":[{"$ref":"#/components/schemas/Checkpoint"},{"type":"null"}],"description":"The checkpoint taken just before the restore. Null when the rundown already matched the checkpoint and nothing was done."},"version":{"type":"integer","description":"The rundown version after the restore."}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/checkpoints/{checkpointId}":{"delete":{"operationId":"deleteCheckpoint","summary":"Delete a checkpoint","tags":["Checkpoints"],"description":"The rundown is not touched. Needs the manage scope.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"checkpointId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{eventId}/archive":{"post":{"operationId":"archiveEvent","summary":"Archive an event","tags":["Events"],"description":"Makes the event read-only: its rundowns can still be read, exported, duplicated and checkpointed, but every change to them (rows, cells, columns, show-caller tracking, restores, imports) answers 409 EVENT_ARCHIVED, and no rundown can be added. Rooms keep running their timers. Needs the manage scope across the team.","parameters":[{"schema":{"type":"string"},"in":"path","name":"eventId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Event"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{eventId}/unarchive":{"post":{"operationId":"unarchiveEvent","summary":"Unarchive an event","tags":["Events"],"description":"Makes the event editable again.","parameters":[{"schema":{"type":"string"},"in":"path","name":"eventId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Event"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/output-layouts":{"get":{"operationId":"listOutputLayouts","summary":"List the team's output layouts","tags":["Outputs"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/OutputLayout"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createOutputLayout","summary":"Create an output layout","tags":["Outputs"],"description":"A layout places the timer, title, message, clock, logo, progress bar and next item on a screen, each as a box in percent of the screen, so one layout fits every screen size. Point an output link at it with layout_id. At most 50 per team. Needs the manage scope across the team. Needs a plan with output layouts (Pro and up).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","layout"],"properties":{"name":{"type":"string","minLength":1,"maxLength":120},"layout":{"$ref":"#/components/schemas/LayoutBody"}}}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/OutputLayout"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/output-layouts/{layoutId}":{"get":{"operationId":"getOutputLayout","summary":"Get an output layout","tags":["Outputs"],"description":"Also readable with an output link's token when that link uses the layout, which is how a screen loads it.","parameters":[{"schema":{"type":"string"},"in":"path","name":"layoutId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/OutputLayout"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateOutputLayout","summary":"Change an output layout","tags":["Outputs"],"description":"Send a name, a layout, or both; a layout replaces the stored one as a whole. Every room with a link that uses it emits layout.updated, and open screens redraw. Needs the manage scope across the team.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"layout":{"$ref":"#/components/schemas/LayoutBody"}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"layoutId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/OutputLayout"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteOutputLayout","summary":"Delete an output layout","tags":["Outputs"],"description":"Refused with 409 while an output link still uses it: point those links at another layout or at none first. Needs the manage scope across the team.","parameters":[{"schema":{"type":"string"},"in":"path","name":"layoutId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/feeds/tally":{"get":{"operationId":"getTallyFeed","summary":"Tally and cue-light feed for a room","tags":["Integrations"],"description":"The room reduced to a light: green, yellow, red or off, whether it should blink (overrun), and the on-air flag. For cue lights, relay boxes and tally bridges that poll over HTTP. \"format=text\" answers one bare word (the light, or \"red-flash\" in overrun), for devices that cannot parse JSON. For a ready-made light, open an output link with the \"tally\" view on a phone or a spare screen. Read-only. Poll once a second at most; the answer is not cached.","parameters":[{"schema":{"anyOf":[{"type":"string","enum":["json"]},{"type":"string","enum":["text"]}]},"in":"query","name":"format","required":false},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"An API key with the compat scope and compat_enabled, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["light","flash","on_air","phase","running","remaining_ms","version","server_time"],"properties":{"light":{"anyOf":[{"anyOf":[{"type":"string","enum":["off"]},{"type":"string","enum":["green"]},{"type":"string","enum":["yellow"]},{"type":"string","enum":["red"]}]}],"description":"The cue light. green: running with time to spare. yellow: in the wrap-up warning. red: in the final warning or over time. off: paused, idle or blacked out."},"flash":{"type":"boolean","description":"True in overrun: blink the red light."},"on_air":{"type":"boolean","description":"The room's on-air flag, for a separate on-air lamp."},"phase":{"type":"string","enum":["green","yellow","red","overrun","paused","idle"]},"running":{"type":"boolean"},"remaining_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"version":{"type":"integer"},"server_time":{"type":"integer"}},"title":"TallyFeed","description":"The room as a signal light, for cue lights, GPIO boxes and tally systems."},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/feeds/vmix":{"get":{"operationId":"getVmixFeed","summary":"vMix data source for a room","tags":["Integrations"],"description":"The room as rows of text for a vMix Data Source (or any tool that maps fields to graphics). \"table=now\" (default) is one row: the current timer, its countdown, the next timer, the message and the flags. \"table=timers\" is one row per timer of the loaded rundown. \"format=json\" answers a bare JSON array of rows and \"format=xml\" answers `<runofsho><row>…</row></runofsho>`, the two shapes vMix reads; without \"format\" you get the usual envelope. The countdown is the value at the moment of the request, so set the data source to refresh every second. Read-only; never cached.","parameters":[{"schema":{"anyOf":[{"type":"string","enum":["now"]},{"type":"string","enum":["timers"]}]},"in":"query","name":"table","required":false},{"schema":{"anyOf":[{"type":"string","enum":["json"]},{"type":"string","enum":["xml"]}]},"in":"query","name":"format","required":false},{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"An API key with the compat scope and compat_enabled, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["table","rows"],"properties":{"table":{"type":"string"},"rows":{"type":"array","items":{"type":"object","title":"VmixRow","description":"One flat row. Every value is text, because vMix maps fields to titles as text.","additionalProperties":{"type":"string"}}}},"title":"VmixFeed"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/feeds/overlay":{"get":{"operationId":"getOverlayFeed","summary":"Lightweight overlay feed for graphics","tags":["Integrations"],"description":"One small object with what a graphic needs: the current and next timer, the countdown as a number, as text and as an end time, the message and the flags. Poll it, or better, use it for the first paint and follow the room over Socket.IO or SSE. For a ready-made graphic, open an output link with the \"overlay\" view as a browser source. Read-only; never cached.","parameters":[{"schema":{"type":"string"},"in":"query","name":"key","required":false,"description":"An API key with the compat scope and compat_enabled, for tools that cannot send an Authorization header. Prefer the header where you can."},{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["room","version","server_time","time_of_day","running","phase","remaining_ms","remaining","ends_at","duration_ms","progress","timer","next","message"],"properties":{"room":{"type":"object","required":["id","name","timezone","on_air","blackout"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"timezone":{"type":"string"},"on_air":{"type":"boolean"},"blackout":{"type":"boolean"}}},"version":{"type":"integer","description":"Room version. Unchanged version means nothing but the clock moved."},"server_time":{"type":"integer","description":"Server clock in ms. Count down locally from \"ends_at\" against this, not against your own clock."},"time_of_day":{"type":"string","description":"HH:MM:SS in the room's timezone."},"running":{"type":"boolean"},"phase":{"type":"string","enum":["green","yellow","red","overrun","paused","idle"]},"remaining_ms":{"anyOf":[{"type":"integer","description":"Negative in overrun. null when no timer is selected."},{"type":"null"}]},"remaining":{"type":"string","description":"The same as text, e.g. \"04:59\" or \"-00:12\"."},"ends_at":{"anyOf":[{"type":"integer","description":"When the running timer reaches zero. null when paused or idle."},{"type":"null"}]},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"progress":{"type":"number","description":"0 to 1, how much of the timer has gone."},"timer":{"anyOf":[{"type":"object","required":["id","name","speaker","duration_ms"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"speaker":{"type":"string"},"duration_ms":{"type":"integer"}}},{"type":"null"}]},"next":{"anyOf":[{"type":"object","required":["id","name","speaker","duration_ms"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"speaker":{"type":"string"},"duration_ms":{"type":"integer"}}},{"type":"null"}]},"message":{"anyOf":[{"type":"object","required":["text","color","bold","uppercase","focus"],"properties":{"text":{"type":"string"},"color":{"type":"string"},"bold":{"type":"boolean"},"uppercase":{"type":"boolean"},"focus":{"type":"boolean"}}},{"type":"null"}]}},"title":"OverlayFeed","description":"The room in one small object, for graphics that draw their own lower third or bug."},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/controls":{"get":{"operationId":"getControlMap","summary":"Get a room's hardware control map","tags":["Hardware controls"],"description":"Which Stream Deck key, MIDI message or OSC address does what. A room that has not saved a map gets the built-in one (is_default: true): transport on the first keys, middle C to start and pause, and /runofsho/… OSC addresses.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ControlMap"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"updateControlMap","summary":"Save a room's hardware control map","tags":["Hardware controls"],"description":"Replaces the whole map. Actions are the playback, message and display actions of automations; leave \"enabled\" out of blackout or on_air to make the button a toggle. Emits controls.updated. Needs the manage scope.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["bindings"],"properties":{"bindings":{"type":"array","items":{"$ref":"#/components/schemas/ControlBinding"},"maxItems":200,"description":"The whole map. Each (source, input) pair may appear once."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ControlMap"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"resetControlMap","summary":"Go back to the built-in control map","tags":["Hardware controls"],"description":"Emits controls.updated. Needs the manage scope.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ControlMap"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/controls/trigger":{"post":{"operationId":"triggerControl","summary":"Report a hardware input","tags":["Hardware controls"],"description":"Say what was pressed or received (\"key:1\" on a Stream Deck, \"note:1:60\" from MIDI, \"/runofsho/next\" over OSC) and the room runs the action bound to it, exactly as the matching REST endpoint would, with the usual events and audit-log entry. An input nobody bound answers matched: false and changes nothing, so a bridge can forward everything it hears. Needs the operate scope.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["source","input"],"properties":{"source":{"type":"string","enum":["streamdeck","midi","osc"]},"input":{"type":"string","minLength":1,"maxLength":128,"description":"What was pressed or received, in the same form as a binding's input. For MIDI send the real channel; a binding with channel * matches it."},"value":{"type":"number","description":"The value that came with it: an OSC argument or a MIDI controller value. add-time and subtract-time without an amount read it as seconds; blackout and on_air without \"enabled\" read it as on (above 0) or off."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ControlTriggerResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/analytics/events/{eventId}":{"get":{"operationId":"getEventAnalytics","summary":"Analytics for one event","tags":["Analytics"],"description":"Worked out from the run record: every timer that was started and finished, with its planned and its actual length. A run is \"on time\" when it ends no more than 15 seconds over plan. Overrun is per speaker and per segment type (the row's labels; a row with two labels counts in both). Drift per room is actual minus planned over the runs in scope: positive is behind. Peak connections is the highest number of connected screens and operators seen in a room on the days in scope (kept per UTC day, from the day this feature was switched on). Needs a plan with reports and analytics (Studio and up). \"from\" and \"to\" are the first start and the last end among the event's runs.","parameters":[{"schema":{"type":"string"},"in":"path","name":"eventId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Analytics"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/analytics/team":{"get":{"operationId":"getTeamAnalytics","summary":"Analytics across the team","tags":["Analytics"],"description":"Worked out from the run record: every timer that was started and finished, with its planned and its actual length. A run is \"on time\" when it ends no more than 15 seconds over plan. Overrun is per speaker and per segment type (the row's labels; a row with two labels counts in both). Drift per room is actual minus planned over the runs in scope: positive is behind. Peak connections is the highest number of connected screens and operators seen in a room on the days in scope (kept per UTC day, from the day this feature was switched on). Needs a plan with reports and analytics (Studio and up). \"from\" and \"to\" are UTC dates, both included; without them you get the last 30 days. At most 366 days.","parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"example":"2026-11-21","in":"query","name":"from","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"example":"2026-11-21","in":"query","name":"to","required":false}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Analytics"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/elements":{"get":{"operationId":"listElements","summary":"List the team's library of elements","tags":["Elements"],"description":"Reusable rows (intros, sponsor reads, bios, disclaimers) kept once for the team. Each comes with its current content and how many rows use it. Reading the library is open on every plan; changing it and inserting from it need a plan with elements.","parameters":[{"schema":{"type":"string"},"in":"query","name":"folder","required":false},{"schema":{"type":"string"},"in":"query","name":"tag","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false,"description":"Search in names, folders, tags and speakers."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Element"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createElement","summary":"Create an element","tags":["Elements"],"description":"Saves version 1. To make one from a row that already exists, use POST /v1/rundowns/{rundownId}/items/{itemRef}/save-as-element.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":300},"folder":{"type":"string","maxLength":120,"description":"Empty for the top level."},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":40},"maxItems":20},"payload":{"type":"object","properties":{"kind":{"type":"string","enum":["item","header","note"]},"name":{"type":"string","minLength":1,"maxLength":300},"speaker":{"type":"string","maxLength":200},"notes":{"type":"string","maxLength":20000},"duration_ms":{"type":"integer","minimum":0,"maximum":86400000},"row_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"wrap_up_yellow_s":{"type":"integer","minimum":0,"maximum":86400},"wrap_up_red_s":{"type":"integer","minimum":0,"maximum":86400},"cells":{"type":"array","items":{"$ref":"#/components/schemas/ElementCell"},"maxItems":50}},"description":"Anything left out takes the default of a new row; payload.name defaults to the element name."}},"title":"ElementCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Element"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/elements/{elementId}":{"get":{"operationId":"getElement","summary":"Get an element","tags":["Elements"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"elementId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Element"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateElement","summary":"Change an element","tags":["Elements"],"description":"Changing the name, folder or tags only touches the library. Changing the payload saves a new version; rows in rundowns keep the version they carry until you publish.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"folder":{"type":"string","maxLength":120,"description":"Empty for the top level."},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":40},"maxItems":20},"payload":{"type":"object","properties":{"kind":{"type":"string","enum":["item","header","note"]},"name":{"type":"string","minLength":1,"maxLength":300},"speaker":{"type":"string","maxLength":200},"notes":{"type":"string","maxLength":20000},"duration_ms":{"type":"integer","minimum":0,"maximum":86400000},"row_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"Color as #rrggbb.","examples":["#2e7d32"]},{"type":"null"}]},"wrap_up_yellow_s":{"type":"integer","minimum":0,"maximum":86400},"wrap_up_red_s":{"type":"integer","minimum":0,"maximum":86400},"cells":{"type":"array","items":{"$ref":"#/components/schemas/ElementCell"},"maxItems":50}},"description":"Changing the content saves a new version. Rows already in rundowns keep theirs until you publish."},"note":{"type":"string","maxLength":300,"description":"What changed in this version."}},"title":"ElementUpdate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"elementId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Element"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteElement","summary":"Delete an element","tags":["Elements"],"description":"Removes it from the library. Rows already in rundowns keep their content and stop receiving updates.","parameters":[{"schema":{"type":"string"},"in":"path","name":"elementId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/elements/{elementId}/versions":{"get":{"operationId":"listElementVersions","summary":"List the versions of an element","tags":["Elements"],"description":"Newest first, each with its full content.","parameters":[{"schema":{"type":"string"},"in":"path","name":"elementId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/ElementVersion"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/elements/{elementId}/usage":{"get":{"operationId":"listElementUsage","summary":"List the rows that use an element","tags":["Elements"],"description":"Every linked row with the version it carries and the fields edited in its rundown since. Use it before publishing to see what would be kept.","parameters":[{"schema":{"type":"string"},"in":"path","name":"elementId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/ElementUse"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/elements/{elementId}/publish":{"post":{"operationId":"publishElement","summary":"Publish an element to the rows that use it","tags":["Elements"],"description":"Brings linked rows to the current version. Fields edited in a rundown are kept and listed in conflicts unless overwrite_overrides is true; locked rows are skipped whole. Each rundown gets items.changed and element.published. Rundowns are updated one after another, not all-or-nothing.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"rundown_ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":200,"description":"Only rows in these rundowns."},"item_ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":500,"description":"Only these rows."},"all":{"type":"boolean","description":"Every rundown that uses the element."},"overwrite_overrides":{"type":"boolean","description":"Also replace fields that were edited in the rundown. Default false: they are kept and listed as conflicts."},"dry_run":{"type":"boolean","description":"Report what would change without saving anything."}},"title":"ElementPublish","description":"Give rundown_ids, item_ids or all: true."}}},"description":"Give rundown_ids, item_ids or all: true."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"elementId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ElementPublishResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/from-element":{"post":{"operationId":"insertElement","summary":"Insert an element as a row","tags":["Elements"],"description":"Creates a row from the element's current version and links it. Cell values go to the columns with the same names unless column_mapping says otherwise; element columns with nowhere to go are listed in unmapped.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["element_id"],"properties":{"element_id":{"type":"string"},"position":{"type":"integer","minimum":0,"description":"Zero-based insert position. Omit to append."},"column_mapping":{"type":"object","description":"Element column name to the id of the rundown column that takes its value; null leaves it out. Columns not listed go to the rundown column with the same name.","additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"title":"ElementInsert"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/InsertedElement"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/{itemRef}/save-as-element":{"post":{"operationId":"saveItemAsElement","summary":"Save a row to the library","tags":["Elements"],"description":"Creates an element from the row (its fields and its filled cells, by column name) and links the row to version 1.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300,"description":"Defaults to the row name."},"folder":{"type":"string","maxLength":120,"description":"Empty for the top level."},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":40},"maxItems":20}},"title":"ElementSave"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["element","item"],"properties":{"element":{"$ref":"#/components/schemas/Element"},"item":{"$ref":"#/components/schemas/Item"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/items/{itemRef}/unlink-element":{"post":{"operationId":"unlinkItemElement","summary":"Unlink a row from its element","tags":["Elements"],"description":"The row keeps what it holds and no longer receives published updates.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string"},"in":"path","name":"itemRef","required":true,"description":"An item id, ext:<external_id>, num:<item number> or name:<url-encoded name>."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Item"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/templates":{"get":{"operationId":"listTemplates","summary":"List templates","tags":["Templates"],"description":"The team's own templates first, then the built-in starters (conference, worship, sports game day, broadcast, gala, town hall, livestream). Available on every plan; the starters fit within the Free plan's row limit.","parameters":[{"schema":{"type":"string"},"in":"query","name":"category","required":false}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Template"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/templates/{templateId}":{"get":{"operationId":"getTemplate","summary":"Get a template with its content","tags":["Templates"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"templateId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/TemplateDetail"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateTemplate","summary":"Rename or re-file a team template","tags":["Templates"],"description":"To change what a template contains, create a rundown from it, edit it and save it as a template again.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"category":{"type":"string","maxLength":40},"description":{"type":"string","maxLength":500}},"title":"TemplateUpdate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"templateId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/TemplateDetail"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteTemplate","summary":"Delete a team template","tags":["Templates"],"description":"Rundowns already created from it are not affected.","parameters":[{"schema":{"type":"string"},"in":"path","name":"templateId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/from-template":{"post":{"operationId":"createRundownFromTemplate","summary":"Create a rundown from a template","tags":["Templates"],"description":"Creates the rundown in the event with the template's columns, groups and rows. Nothing is created if the rows do not fit the plan.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["template_id","event_id"],"properties":{"template_id":{"type":"string"},"event_id":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":200,"description":"Defaults to the template's name."},"start_at":{"anyOf":[{"type":"integer","description":"Planned show start (ms since Unix epoch)."},{"type":"null"}]}},"title":"RundownFromTemplate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Rundown"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/save-as-template":{"post":{"operationId":"saveRundownAsTemplate","summary":"Save a rundown as a team template","tags":["Templates"],"description":"Keeps the columns, groups, rows, cell values and formatting. Private notes, history and links to the element library are left out.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"category":{"type":"string","maxLength":40},"description":{"type":"string","maxLength":500}},"title":"TemplateSave","description":"The name defaults to the rundown's name."}}},"description":"The name defaults to the rundown's name."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/TemplateDetail"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/duplicate":{"post":{"operationId":"duplicateRundown","summary":"Duplicate a rundown","tags":["Rundowns"],"description":"A full copy: columns, groups, rows, cells, formatting, timer settings and links to library elements. Rows come unlocked. Tracking, history, guest links and private notes are not copied.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Defaults to the name with \"(copy)\"."},"event_id":{"type":"string","description":"Put the copy in another event of the team. Defaults to the same event."}},"title":"RundownDuplicate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Rundown"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{eventId}/duplicate":{"post":{"operationId":"duplicateEvent","summary":"Duplicate an event with its rundowns","tags":["Events"],"description":"Copies the event and every rundown in it, for the next edition of a show. Give start_date to move it: each rundown keeps its time of day. Rooms are not copied; point a room at the new rundown when you are ready.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Defaults to the name with \"(copy)\"."},"start_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","examples":["2026-11-21"]},{"type":"null"}]}},"title":"EventDuplicate","description":"With a new start_date, every rundown's start keeps its time of day and moves by the same number of days."}}},"description":"With a new start_date, every rundown's start keeps its time of day and moves by the same number of days."},"parameters":[{"schema":{"type":"string"},"in":"path","name":"eventId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DuplicatedEvent"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rundowns/{rundownId}/exports":{"post":{"operationId":"createExport","summary":"Export a rundown to PDF, Word or CSV","tags":["Exports"],"description":"Starts an export and returns its job. The file is made in the background: wait for export.completed on the rundown channel (or a webhook), or poll GET /v1/exports/{jobId} until status is completed, then fetch download_url. pdf prints the table with the chosen columns; docx prints a script, one section per row, from a rich text column; csv holds the same table as the PDF. Needs a plan with export; Free answers 402 PLAN_LIMIT.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["format"],"properties":{"format":{"type":"string","enum":["pdf","docx","csv"],"description":"pdf: the rundown as a printable table. docx: a Word script, one section per row. csv: the table as comma-separated values."},"preset_id":{"type":"string","description":"Start from a saved preset. Options sent with the request win over the preset's."},"columns":{"type":"array","items":{"type":"string","maxLength":64},"maxItems":60,"description":"What to print and in which order: the built-in fields number, start, end, duration, name, speaker, notes, and column ids. Defaults to number, start, duration, name, speaker and every column of the rundown. Private notes are never exported. Ignored by docx."},"orientation":{"type":"string","enum":["portrait","landscape"],"description":"pdf only. Default landscape."},"paper":{"type":"string","enum":["letter","a4","legal","tabloid","a3"],"description":"pdf and docx. Default letter."},"page_breaks":{"type":"string","enum":["none","groups"],"description":"groups starts a new page at every group and header row. Default none."},"repeat_headers":{"type":"boolean","description":"pdf only. Print the column headings again at the top of every page. Default true."},"include_floating":{"type":"boolean","description":"Include floating rows. Default false."},"script_column_id":{"type":"string","description":"docx only. The rich text column to print as the script. Defaults to the first one."},"font_size":{"type":"integer","minimum":6,"maximum":14,"description":"pdf only. Body text size in points. Default 9."},"content":{"type":"string","enum":["rundown","delivery","timing"],"description":"What to export. rundown (default): the rundown itself. delivery: the sponsor-delivery report. timing: the planned-vs-actual report. Both reports export as pdf or csv and need a plan with reports; columns and script_column_id are ignored."},"label":{"type":"string","maxLength":60,"description":"delivery only. Report on the rows carrying this label, stamped or not."}},"title":"ExportCreate","additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ExportJob"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listExports","summary":"List the recent exports of a rundown","tags":["Exports"],"description":"The last 20, newest first. Files are deleted after a day.","parameters":[{"schema":{"type":"string"},"in":"path","name":"rundownId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExportJob"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/exports/{jobId}":{"get":{"operationId":"getExport","summary":"Get an export and its download link","tags":["Exports"],"description":"download_url is signed and short-lived; every call returns a fresh one. The link itself needs no Authorization header, so a key never has to be placed in a URL.","parameters":[{"schema":{"type":"string"},"in":"path","name":"jobId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ExportJob"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/exports/{jobId}/download":{"get":{"operationId":"downloadExport","summary":"Download an exported file","tags":["Exports"],"description":"The target of download_url. Authenticated by the signature in the link, not by a key. Answers 404 when the link has expired or was changed.","parameters":[{"schema":{"type":"integer"},"in":"query","name":"expires","required":true,"description":"When the link stops working (ms since Unix epoch)."},{"schema":{"type":"string","maxLength":100},"in":"query","name":"signature","required":true},{"schema":{"type":"string"},"in":"path","name":"jobId","required":true}],"security":[],"responses":{"200":{"description":"The file.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/guest/exports":{"post":{"operationId":"createGuestExport","summary":"Export the guest view to PDF","tags":["Guest passes"],"description":"Call it with the guest token as the bearer token. The PDF holds exactly what the link shows: it is built from the guest view, so columns the pass does not include cannot appear in it. Poll GET /v1/guest/exports/{jobId} for the download link.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"orientation":{"type":"string","enum":["portrait","landscape"],"description":"pdf only. Default landscape."},"paper":{"type":"string","enum":["letter","a4","legal","tabloid","a3"],"description":"pdf and docx. Default letter."}},"title":"GuestExportCreate","additionalProperties":false,"description":"Guests export a PDF of exactly what their link shows."}}},"description":"Guests export a PDF of exactly what their link shows."},"parameters":[{"schema":{"type":"string","maxLength":200},"in":"header","name":"runofsho-guest-password","required":false,"description":"The pass's password, when it has one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ExportJob"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/guest/exports/{jobId}":{"get":{"operationId":"getGuestExport","summary":"Get a guest export and its download link","tags":["Guest passes"],"description":"Only exports made with the same guest link can be read.","parameters":[{"schema":{"type":"string"},"in":"path","name":"jobId","required":true},{"schema":{"type":"string","maxLength":200},"in":"header","name":"runofsho-guest-password","required":false,"description":"The pass's password, when it has one."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ExportJob"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/export-presets":{"get":{"operationId":"listExportPresets","summary":"List export presets","tags":["Exports"],"description":"Saved export options shared by the team, by name.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExportPreset"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createExportPreset","summary":"Save an export preset","tags":["Exports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","format"],"properties":{"name":{"type":"string","minLength":1,"maxLength":80},"format":{"type":"string","enum":["pdf","docx","csv"],"description":"pdf: the rundown as a printable table. docx: a Word script, one section per row. csv: the table as comma-separated values."},"options":{"$ref":"#/components/schemas/ExportOptions"}},"title":"ExportPresetCreate","additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ExportPreset"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/export-presets/{presetId}":{"get":{"operationId":"getExportPreset","summary":"Get an export preset","tags":["Exports"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"presetId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ExportPreset"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateExportPreset","summary":"Change an export preset","tags":["Exports"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"format":{"type":"string","enum":["pdf","docx","csv"],"description":"pdf: the rundown as a printable table. docx: a Word script, one section per row. csv: the table as comma-separated values."},"options":{"$ref":"#/components/schemas/ExportOptions"}},"title":"ExportPresetUpdate","additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"presetId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/ExportPreset"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteExportPreset","summary":"Delete an export preset","tags":["Exports"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"presetId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/plans":{"get":{"operationId":"listPlans","summary":"Plans, prices, limits and features","tags":["Billing"],"description":"For the pricing page and the in-app upgrade screens. No credential needed. Nothing about prices or limits is hardcoded in a client: it all comes from here.","security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/BillingPlans"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing":{"get":{"operationId":"getBilling","summary":"The team's subscription and grants","tags":["Billing"],"description":"What the billing page shows. Needs the admin scope across the team. The plan itself, with limits and usage, is GET /v1/me/entitlements.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Billing"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/checkout":{"post":{"operationId":"createCheckout","summary":"Start a subscription (Stripe Checkout)","tags":["Billing"],"description":"Returns the address of a Stripe Checkout page for a Pro or Studio subscription. The plan is granted as soon as Stripe reports the Checkout complete. A team has one subscription: with one already running this answers 409 ALREADY_SUBSCRIBED with a portal_url in the details; change it with PATCH /v1/billing/subscription instead. Promotion codes can be typed at Checkout, or passed here. Needs the admin scope.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["plan","interval"],"properties":{"plan":{"type":"string","enum":["pro","studio"]},"interval":{"type":"string","enum":["month","year"]},"seats":{"type":"integer","minimum":1,"maximum":500,"description":"Total seats. Studio includes 5; more are billed per seat per month."},"addons":{"type":"object","properties":{"connection_packs":{"type":"integer","minimum":0,"maximum":40,"description":"Each pack adds 25 screens per room."},"api_plus":{"type":"boolean","description":"Metered API usage: a higher rate limit, billed per 1,000 requests at the end of each month. Monthly billing only."}}},"promo_code":{"type":"string","maxLength":64},"trial":{"type":"boolean","description":"Start with the free trial (card required). Only for a team that never had a subscription."},"email":{"type":"string","maxLength":191,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","description":"Billing email for receipts. Stored on the team's Stripe customer."},"return_url":{"type":"string","maxLength":500,"description":"Where Stripe sends the browser back to. Must be an address of the runofsho app and must not carry a credential. \"checkout=success\" or \"checkout=cancelled\" is added to it."}},"title":"CheckoutCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["url","session_id"],"properties":{"url":{"type":"string","description":"Send the browser here."},"session_id":{"type":"string"}},"title":"CheckoutUrl"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/event-pass":{"post":{"operationId":"createEventPassCheckout","summary":"Buy an Event Pass (Stripe Checkout)","tags":["Billing"],"description":"One payment for 30 days of Pro or Studio. It does not renew. Buying another pass while one is running adds its days to the first. A reminder email goes out three days before the end. Needs the admin scope.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["tier"],"properties":{"tier":{"type":"string","enum":["pro","studio"]},"promo_code":{"type":"string","maxLength":64},"email":{"type":"string","maxLength":191,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","description":"Billing email for receipts. Stored on the team's Stripe customer."},"return_url":{"type":"string","maxLength":500,"description":"Where Stripe sends the browser back to. Must be an address of the runofsho app and must not carry a credential. \"checkout=success\" or \"checkout=cancelled\" is added to it."}},"title":"EventPassCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["url","session_id"],"properties":{"url":{"type":"string","description":"Send the browser here."},"session_id":{"type":"string"}},"title":"CheckoutUrl"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/checkout/{sessionId}":{"get":{"operationId":"getCheckoutResult","summary":"How a Checkout ended","tags":["Billing"],"description":"Reads a Checkout of this team from Stripe: whether it was completed and paid, what for, and the amount. For the page a buyer comes back to (the account site uses it to measure a purchase). Another team's Checkout, or an unknown id, is 404 NOT_FOUND. Needs the admin scope.","parameters":[{"schema":{"type":"string","pattern":"^cs_[A-Za-z0-9_]{1,250}$"},"in":"path","name":"sessionId","required":true,"description":"The session_id from POST /v1/billing/checkout or POST /v1/billing/event-pass, or the one Stripe puts in the return address."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["session_id","status","paid","kind","plan","interval","amount_total_cents","currency","return_url"],"properties":{"session_id":{"type":"string"},"status":{"type":"string","enum":["open","complete","expired"],"description":"complete: the buyer finished Checkout. open: not yet. expired: abandoned."},"paid":{"type":"boolean","description":"Stripe has the money, or nothing was due (a free trial or a 100% discount). Access follows the webhook, usually within seconds."},"kind":{"type":"string","enum":["subscription","event_pass"]},"plan":{"anyOf":[{"type":"string","enum":["pro","studio"]},{"type":"null"}]},"interval":{"anyOf":[{"type":"string","enum":["month","year"],"description":"Subscriptions only."},{"type":"null"}]},"amount_total_cents":{"type":"integer","description":"What the buyer paid at Checkout, after discounts. A free trial is 0."},"currency":{"type":"string","description":"ISO 4217, upper case."},"return_url":{"type":"string","description":"Where to send the buyer next: the return_url the Checkout was started with, with checkout=success."}},"title":"CheckoutResult"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/subscription":{"patch":{"operationId":"changeSubscription","summary":"Change the subscription","tags":["Billing"],"description":"Upgrades, downgrades, seats, connection packs and API Plus. The existing subscription is updated and Stripe prorates the difference; a second subscription is never created. Send the whole choice, not a difference: what is left out is removed. Answers 409 CONFLICT when there is no subscription. Needs the admin scope.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["plan","interval"],"properties":{"plan":{"type":"string","enum":["pro","studio"]},"interval":{"type":"string","enum":["month","year"]},"seats":{"type":"integer","minimum":1,"maximum":500,"description":"Total seats. Studio includes 5; more are billed per seat per month."},"addons":{"type":"object","properties":{"connection_packs":{"type":"integer","minimum":0,"maximum":40,"description":"Each pack adds 25 screens per room."},"api_plus":{"type":"boolean","description":"Metered API usage: a higher rate limit, billed per 1,000 requests at the end of each month. Monthly billing only."}}}},"title":"SubscriptionChange"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Billing"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/portal":{"post":{"operationId":"createPortalSession","summary":"Open the Stripe Customer Portal","tags":["Billing"],"description":"Returns the address of the Stripe-hosted page for cards, invoices and cancelling. Needs the admin scope.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"return_url":{"type":"string","maxLength":500,"description":"Where Stripe sends the browser back to. Must be an address of the runofsho app and must not carry a credential. \"checkout=success\" or \"checkout=cancelled\" is added to it."}},"title":"PortalCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["url"],"properties":{"url":{"type":"string"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/usage":{"get":{"operationId":"getBillingUsage","summary":"API requests this period","tags":["Billing"],"description":"How many API requests the team's keys and sessions made in the current period and on each of the last 30 days (UTC), counted within a few minutes. Screens, guest links and trial rooms are not counted, nor are requests refused with 429. With API Plus on, the period is the subscription's month and billable_requests is what Stripe will bill; estimated_cents is an estimate, the invoice is what counts. Needs the admin scope.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/BillingUsage"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/invoices":{"get":{"operationId":"listInvoices","summary":"List invoices","tags":["Billing"],"description":"The last 24 invoices, newest first, read from Stripe: subscription charges and invoices sent for a term. An open one has a due date and is paid on its hosted page. Needs the admin scope.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Invoice"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/billing/resync":{"post":{"operationId":"adminResyncBilling","summary":"Bring a team in line with Stripe","tags":["Billing admin"],"description":"Compares the team's grants with Stripe and fixes every difference, the way the nightly job does. Returns what it fixed. Staff only.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"team_id":{"type":"string","maxLength":32},"email":{"type":"string","maxLength":191}},"title":"BillingResync","description":"One of the two."}}},"description":"One of the two."},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["team_id","fixed"],"properties":{"team_id":{"type":"string"},"fixed":{"type":"array","items":{"type":"object","required":["team_id","kind","ref","local","stripe"],"properties":{"team_id":{"type":"string"},"kind":{"type":"string","enum":["subscription","event_pass","event_pass_ended","orphan_grant","customer","invoice"],"description":"invoice: a term invoice and its grant disagree. subscription: plan or status differs. event_pass: paid, never granted. event_pass_ended: in force, but its payment was refunded or disputed. orphan_grant: the subscription is gone. customer: deleted in Stripe, or its email changed."},"ref":{"type":"string"},"local":{"type":"string"},"stripe":{"type":"string"}},"title":"BillingMismatch"}}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/billing/mismatches":{"get":{"operationId":"adminListBillingMismatches","summary":"Where grants and Stripe disagree","tags":["Billing admin"],"description":"A dry run of the reconciliation over the teams that have a Stripe customer (changes nothing), the number of Stripe events that have not been processed, plus what was fixed or flagged recently. Staff only.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"in":"query","name":"limit","required":false,"description":"How many teams to check."},{"schema":{"type":"integer","minimum":0,"default":0},"in":"query","name":"offset","required":false}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["checked","total_teams","failed_events","mismatches","errors","recent"],"properties":{"checked":{"type":"integer"},"total_teams":{"type":"integer"},"failed_events":{"type":"integer","description":"Stripe events that are stored but have not been processed successfully. They are retried every fifteen minutes for three days."},"mismatches":{"type":"array","items":{"type":"object","required":["team_id","kind","ref","local","stripe"],"properties":{"team_id":{"type":"string"},"kind":{"type":"string","enum":["subscription","event_pass","event_pass_ended","orphan_grant","customer","invoice"],"description":"invoice: a term invoice and its grant disagree. subscription: plan or status differs. event_pass: paid, never granted. event_pass_ended: in force, but its payment was refunded or disputed. orphan_grant: the subscription is gone. customer: deleted in Stripe, or its email changed."},"ref":{"type":"string"},"local":{"type":"string"},"stripe":{"type":"string"}},"title":"BillingMismatch"}},"errors":{"type":"array","items":{"type":"string"}},"recent":{"type":"array","items":{"type":"object","required":["id","team_id","action","before","after","actor","at"],"properties":{"id":{"type":"string"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"action":{"type":"string"},"before":{"anyOf":[{"type":"object","additionalProperties":{}},{"type":"null"}]},"after":{"anyOf":[{"type":"object","additionalProperties":{}},{"type":"null"}]},"actor":{"type":"string"},"at":{"type":"integer","description":"When (ms since Unix epoch)"}}}}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/billing/invoices":{"post":{"operationId":"adminCreateInvoice","summary":"Bill a team by invoice for a term","tags":["Billing admin"],"description":"For Enterprise contracts and purchase orders. Creates a Stripe invoice for the agreed amount with payment terms (net 30 by default), prints the purchase order number on it, sends it to the billing email and gives the team the plan from term_start to term_end. The plan starts when the invoice is sent; voiding the invoice, or Stripe marking it uncollectible, ends it. Paying is done on the Stripe-hosted invoice page (card or bank transfer). Staff only.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["team_id","amount_cents","description","term_end"],"properties":{"team_id":{"type":"string","minLength":1,"maxLength":32},"plan":{"type":"string","enum":["pro","studio","enterprise"],"description":"Enterprise when left out."},"addon":{"type":"object","properties":{"connection_packs":{"type":"integer","minimum":1,"maximum":40},"extra_seats":{"type":"integer","minimum":1,"maximum":500}}},"amount_cents":{"type":"integer","minimum":100,"maximum":100000000,"description":"The agreed price of the term, before tax, in the smallest unit of the currency."},"currency":{"type":"string","pattern":"^[a-z]{3}$","default":"usd"},"description":{"type":"string","minLength":1,"maxLength":300,"description":"The line on the invoice, e.g. \"runofsho Enterprise, 1 Jan 2027 to 31 Dec 2027\"."},"term_start":{"type":"integer","description":"First day of the term. Leave out to start now. (ms since Unix epoch)"},"term_end":{"type":"integer","description":"When the term ends (ms since Unix epoch)"},"days_until_due":{"type":"integer","minimum":1,"maximum":120,"default":30,"description":"Payment terms: net this many days."},"po_number":{"type":"string","minLength":1,"maxLength":30,"description":"Printed on the invoice as \"PO number\"."},"billing_email":{"type":"string","maxLength":191,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","description":"Where the invoice goes. Needed the first time; later it changes the team's billing email."},"billing_name":{"type":"string","minLength":1,"maxLength":200,"description":"The company name on the invoice."},"send":{"type":"boolean","default":true,"description":"False finalizes the invoice without emailing it (the hosted page and PDF still work)."}},"title":"TermInvoiceCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["invoice","team_id","plan","addons","term_start","term_end","overdue","in_force"],"properties":{"invoice":{"$ref":"#/components/schemas/Invoice"},"team_id":{"type":"string"},"plan":{"type":"string","enum":["pro","studio","enterprise"]},"addons":{"type":"object","required":["connection_packs","extra_seats","api_plus"],"properties":{"connection_packs":{"type":"integer"},"extra_seats":{"type":"integer"},"api_plus":{"type":"boolean","description":"Metered API usage with a higher rate limit."}}},"term_start":{"type":"integer","description":"First day of the term (ms since Unix epoch)"},"term_end":{"type":"integer","description":"When the term, and the plan it carries, ends (ms since Unix epoch)"},"overdue":{"type":"boolean","description":"Open and past its due date. The plan stays until staff void the invoice."},"in_force":{"type":"boolean","description":"Whether the invoice carries a grant right now."}},"title":"TermInvoice","description":"An invoice for a term of a plan (Enterprise contracts, purchase orders). The plan starts when the invoice is sent, not when it is paid."},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"adminListInvoices","summary":"Term invoices and whether they are paid","tags":["Billing admin"],"description":"The term invoices that carry or carried a plan, newest first, each read from Stripe: status, due date, and whether it is overdue. Staff only.","parameters":[{"schema":{"type":"string","maxLength":32},"in":"query","name":"team_id","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":50},"in":"query","name":"limit","required":false}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","required":["invoice","team_id","plan","addons","term_start","term_end","overdue","in_force"],"properties":{"invoice":{"$ref":"#/components/schemas/Invoice"},"team_id":{"type":"string"},"plan":{"type":"string","enum":["pro","studio","enterprise"]},"addons":{"type":"object","required":["connection_packs","extra_seats","api_plus"],"properties":{"connection_packs":{"type":"integer"},"extra_seats":{"type":"integer"},"api_plus":{"type":"boolean","description":"Metered API usage with a higher rate limit."}}},"term_start":{"type":"integer","description":"First day of the term (ms since Unix epoch)"},"term_end":{"type":"integer","description":"When the term, and the plan it carries, ends (ms since Unix epoch)"},"overdue":{"type":"boolean","description":"Open and past its due date. The plan stays until staff void the invoice."},"in_force":{"type":"boolean","description":"Whether the invoice carries a grant right now."}},"title":"TermInvoice","description":"An invoice for a term of a plan (Enterprise contracts, purchase orders). The plan starts when the invoice is sent, not when it is paid."}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/billing/invoices/{invoiceId}/void":{"post":{"operationId":"adminVoidInvoice","summary":"Void a term invoice","tags":["Billing admin"],"description":"Voids the invoice in Stripe (it can no longer be paid) and ends the plan it carried. A paid invoice cannot be voided; refund it in Stripe with a credit note and end access with a new invoice or a comp as agreed. Staff only.","parameters":[{"schema":{"type":"string","maxLength":191},"in":"path","name":"invoiceId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["invoice","team_id","plan","addons","term_start","term_end","overdue","in_force"],"properties":{"invoice":{"$ref":"#/components/schemas/Invoice"},"team_id":{"type":"string"},"plan":{"type":"string","enum":["pro","studio","enterprise"]},"addons":{"type":"object","required":["connection_packs","extra_seats","api_plus"],"properties":{"connection_packs":{"type":"integer"},"extra_seats":{"type":"integer"},"api_plus":{"type":"boolean","description":"Metered API usage with a higher rate limit."}}},"term_start":{"type":"integer","description":"First day of the term (ms since Unix epoch)"},"term_end":{"type":"integer","description":"When the term, and the plan it carries, ends (ms since Unix epoch)"},"overdue":{"type":"boolean","description":"Open and past its due date. The plan stays until staff void the invoice."},"in_force":{"type":"boolean","description":"Whether the invoice carries a grant right now."}},"title":"TermInvoice","description":"An invoice for a term of a plan (Enterprise contracts, purchase orders). The plan starts when the invoice is sent, not when it is paid."},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/entitlements/comp":{"post":{"operationId":"adminCompEntitlement","summary":"Give a team a plan or an add-on","tags":["Billing admin"],"description":"The only way to set a plan by hand. Writes a grant with source \"comp\"; Stripe events never touch it. Send a plan, an add-on, or both. Staff only.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["team_id"],"properties":{"team_id":{"type":"string","minLength":1,"maxLength":32},"plan":{"type":"string","enum":["pro","studio","enterprise"]},"addon":{"type":"object","properties":{"connection_packs":{"type":"integer","minimum":1,"maximum":40},"extra_seats":{"type":"integer","minimum":1,"maximum":500}}},"expires_at":{"anyOf":[{"type":"integer","description":"When the comp ends. Leave out for no end. (ms since Unix epoch)"},{"type":"null"}]}},"title":"CompCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","source","plan","addons","starts_at","expires_at"],"properties":{"id":{"type":"string"},"source":{"type":"string","enum":["stripe_subscription","event_pass","trial","comp","invoice"]},"plan":{"type":"string","enum":["free","pro","studio","enterprise"]},"addons":{"type":"object","required":["connection_packs","extra_seats","api_plus"],"properties":{"connection_packs":{"type":"integer"},"extra_seats":{"type":"integer"},"api_plus":{"type":"boolean","description":"Metered API usage with a higher rate limit."}}},"starts_at":{"type":"integer","description":"When it began (ms since Unix epoch)"},"expires_at":{"anyOf":[{"type":"integer","description":"When it ends; null when it has no end (ms since Unix epoch)"},{"type":"null"}]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/entitlements/comp/{grantId}":{"delete":{"operationId":"adminRevokeComp","summary":"End a comp","tags":["Billing admin"],"description":"Ends a grant made with the comp endpoint. Grants that come from Stripe cannot be ended here. Staff only.","parameters":[{"schema":{"type":"string"},"in":"path","name":"grantId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/webhook":{"post":{"operationId":"receiveStripeWebhook","summary":"Stripe webhook","tags":["Billing"],"description":"For Stripe only. The Stripe-Signature header is checked against the raw body; anything else gets 400. The event id is stored once (a replay answers 200 and does nothing), the answer is sent at once and the work happens in the background. Handlers fetch the object from Stripe again instead of trusting the payload, so events out of order are harmless.","security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["received","duplicate"],"properties":{"received":{"type":"boolean","enum":[true]},"duplicate":{"type":"boolean"}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/message-presets":{"get":{"operationId":"listMessagePresets","summary":"List the team's message presets","tags":["Messages"],"description":"One-tap messages such as \"Time up\" or \"Wrap up\". A team gets a default set with its first room. Send one with POST /v1/rooms/{roomId}/messages/from-preset/{presetId}.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/MessagePreset"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createMessagePreset","summary":"Create a message preset","tags":["Messages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["label","text"],"properties":{"label":{"type":"string","minLength":1,"maxLength":40},"text":{"type":"string","minLength":1,"maxLength":1000},"color":{"type":"string","enum":["white","green","red"]},"chime":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"position":{"type":"integer","minimum":0}},"title":"MessagePresetCreate"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MessagePreset"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/message-presets/{presetId}":{"get":{"operationId":"getMessagePreset","summary":"Get a message preset","tags":["Messages"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"presetId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MessagePreset"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateMessagePreset","summary":"Update a message preset","tags":["Messages"],"description":"Rooms pick up the new text the next time the preset is sent.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"text":{"type":"string","minLength":1,"maxLength":1000},"color":{"type":"string","enum":["white","green","red"]},"chime":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"position":{"type":"integer","minimum":0}},"title":"MessagePresetUpdate"}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"presetId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MessagePreset"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteMessagePreset","summary":"Delete a message preset","tags":["Messages"],"description":"Messages already sent to rooms from this preset stay there as ordinary messages.","parameters":[{"schema":{"type":"string"},"in":"path","name":"presetId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/trial-rooms/settings":{"get":{"operationId":"getTrialRoomSettings","summary":"What a client needs before creating a trial room","tags":["Trial rooms"],"description":"No credentials needed. When captcha_site_key is set, render a Cloudflare Turnstile widget with that key and send its token as captcha_token to POST /v1/trial-rooms.","security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["captcha_site_key","expires_after_days"],"properties":{"captcha_site_key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cloudflare Turnstile site key, or null when no captcha is required."},"expires_after_days":{"type":"integer","description":"Days an unclaimed trial room is kept."}},"title":"TrialRoomSettings"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/trial-rooms":{"post":{"operationId":"createTrialRoom","summary":"Create a trial room without signing up","tags":["Trial rooms"],"description":"No credentials needed. Returns a room with sample timers, a trial token that manages it, and an output token for a second device. The room is deleted after 7 days unless it is claimed. Rate-limited per IP address.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"preset":{"anyOf":[{"type":"string","enum":["broadcast-close"]},{"type":"string","enum":["quick-timer"]}],"description":"broadcast-close seeds the final three on-air broadcast cues; quick-timer seeds one 5-minute timer and nothing else. Omit for the generic first show."},"timezone":{"type":"string","description":"IANA timezone of the visitor. Defaults to UTC."},"captcha_token":{"type":"string","description":"Turnstile token. Required when the server has captcha protection switched on."}},"title":"TrialRoomCreate"}}}},"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/TrialRoom"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/trial-rooms/{roomId}/claim":{"post":{"operationId":"claimTrialRoom","summary":"Claim a trial room","tags":["Trial rooms"],"description":"Called by a signed-in user (or a team key with the manage scope). Moves the room, its rundown, timers, messages and output links into the caller's team; connected screens keep running. The trial token stops working.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["trial_token"],"properties":{"trial_token":{"type":"string","description":"The trial token returned when the room was created."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Room"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/auth/mcp-token":{"post":{"operationId":"exchangeMcpToken","summary":"Trade an assistant's OAuth access token for an API token","tags":["Account"],"description":"For MCP servers. An AI assistant connected to runofsho with OAuth (through the account site, for one team, with the scopes read or read and edit) holds an access token for the MCP server, not for this API. This trades it for a short-lived API token (`token`, at most five minutes, and never longer than the access token) to send as `Authorization: Bearer`. That token reads what the person can read in that team and, with edit, makes the planning changes the MCP server offers (events, rundowns, rows, service times); it cannot run a show or change settings. It has its own rate budget, counts as API usage, and the change history names it like \"Claude via MCP (Mike)\". No credential needed: the access token is the credential. An invalid or expired one answers 401. Rate limited per connection (120 a minute) and per assistant app (3,000 a minute), not per address; a token that does not verify counts against the caller's address.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["subject_token"],"properties":{"subject_token":{"type":"string","minLength":1,"maxLength":8192,"description":"The OAuth access token the assistant sent to the MCP server."}}}}}},"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/McpSession"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/stream":{"get":{"operationId":"streamRoom","summary":"Stream a room's events (SSE)","tags":["Real-time"],"description":"Read-only alternative to socket.io. Starts with state.snapshot unless Last-Event-ID can be resumed.","parameters":[{"schema":{"type":"string","maxLength":80},"in":"query","name":"device","required":false,"description":"Device name shown in the room's connections list."},{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"header","name":"last-event-id","required":false,"description":"Resume after this event id. The server replays from a short buffer or sends a fresh state.snapshot."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"A text/event-stream. Each message has `id` (the room version), `event` (the event type) and JSON `data` (the event, see the AsyncAPI document). A comment line is sent every 15 s as a heartbeat.","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/stream":{"get":{"operationId":"streamRooms","summary":"Stream several rooms (SSE)","tags":["Real-time"],"description":"Event ids are \"<room_id>:<version>\". Always starts with one state.snapshot per room.","parameters":[{"schema":{"type":"string"},"in":"query","name":"rooms","required":true,"description":"Comma-separated room ids (max 50)."},{"schema":{"type":"string","maxLength":80},"in":"query","name":"device","required":false,"description":"Device name shown in the room's connections list."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"A text/event-stream. Each message has `id` (the room version), `event` (the event type) and JSON `data` (the event, see the AsyncAPI document). A comment line is sent every 15 s as a heartbeat.","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/connections":{"get":{"operationId":"listConnections","summary":"List the devices connected to a room","tags":["Connections"],"description":"Every live socket and SSE stream, oldest first. The connections.changed event says when to refetch.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Connection"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rooms/{roomId}/connections/{connectionId}":{"delete":{"operationId":"disconnectConnection","summary":"Disconnect a device","tags":["Connections"],"description":"The device receives connection.closed and stops reconnecting. To keep it out for good, revoke its output link.","parameters":[{"schema":{"type":"string"},"in":"path","name":"roomId","required":true},{"schema":{"type":"string"},"in":"path","name":"connectionId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean","enum":[true]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"getHealth","summary":"Health of the team's rooms and integrations","tags":["Health"],"description":"Connected devices per room, scheduler delay, event throughput, webhook failures, rate-limit usage per credential and the state of the production canary. Needs the manage scope across the team.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Health"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/status":{"get":{"operationId":"getStatus","summary":"Public service status","tags":["Health"],"description":"What the status page shows: overall status, components, the last canary run, thirty days of results and recent incidents. No credential needed.","security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Status"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/status/canary-runs":{"post":{"operationId":"reportCanaryRun","summary":"Report a canary run","tags":["Health"],"description":"Used by the canary show (see /canary in the repository) to hand in its result. Accepted only from an admin key of the team named in the server's CANARY_TEAM_ID; every other credential gets 403. The first failure, a recovery and a run that turns slow send the configured email and Slack alerts.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["started_at","duration_ms","ok","steps"],"properties":{"started_at":{"type":"integer","description":"When the run began (ms since Unix epoch)"},"duration_ms":{"type":"number","minimum":0},"ok":{"type":"boolean"},"steps":{"type":"array","items":{"type":"object","required":["name","ok","ms"],"properties":{"name":{"type":"string","maxLength":80,"description":"Steps starting with \"api\" and \"realtime\" feed those components on the status page."},"ok":{"type":"boolean"},"ms":{"type":"number","minimum":0},"error":{"type":"string"}}},"maxItems":40},"error":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"title":"CanaryReport"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"header","name":"idempotency-key","required":false,"description":"Makes the change safe to retry. The first response is replayed for 24 h; reusing the key with a different request returns 409 IDEMPOTENCY_CONFLICT."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["run","alerted","alert_error"],"properties":{"run":{"$ref":"#/components/schemas/CanaryRun"},"alerted":{"anyOf":[{"type":"string","description":"Subject of the alert this run caused, if any."},{"type":"null"}]},"alert_error":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/system":{"get":{"operationId":"adminGetSystem","summary":"State of the servers","tags":["Admin"],"description":"CPU, memory and load of the machine, every process with its sockets, connected devices, active shows, the database, Valkey, queues, the scheduler and the canary, with warnings where a number is out of range. Processes report every five seconds. Staff only.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["generated_at","status","warnings","host","hosts","servers_expected","processes","realtime","shows","database","cache","queues","scheduler","canary"],"properties":{"generated_at":{"type":"integer","description":"When these numbers were read (ms since Unix epoch)"},"status":{"type":"string","enum":["ok","warning","critical"],"description":"The worst of the warnings below."},"warnings":{"type":"array","items":{"type":"object","required":["level","code","message"],"properties":{"level":{"type":"string","enum":["warning","critical"]},"code":{"type":"string"},"message":{"type":"string"}}}},"host":{"anyOf":[{"type":"object","required":["name","cores","cpu_percent","load1","load5","memory_total_mb","memory_available_mb"],"properties":{"name":{"type":"string"},"cores":{"type":"integer"},"cpu_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"load1":{"type":"number"},"load5":{"type":"number"},"memory_total_mb":{"type":"integer"},"memory_available_mb":{"type":"integer"}},"description":"The machine, as the process that reported last saw it. Null when no process has reported for 20 seconds. With several servers, see hosts."},{"type":"null"}]},"hosts":{"type":"array","items":{"type":"object","required":["name","cores","cpu_percent","load1","load5","memory_total_mb","memory_available_mb","api_processes","sockets"],"properties":{"name":{"type":"string"},"cores":{"type":"integer"},"cpu_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"load1":{"type":"number"},"load5":{"type":"number"},"memory_total_mb":{"type":"integer"},"memory_available_mb":{"type":"integer"},"api_processes":{"type":"integer"},"sockets":{"type":"integer","description":"Open sockets on this server's API processes."}}},"description":"Every server with a process that reported in the last 20 seconds, by name."},"servers_expected":{"type":"integer","description":"How many servers should be reporting (SERVERS_EXPECTED)."},"processes":{"type":"array","items":{"type":"object","required":["name","pid","host","cpu_percent","memory_mb","heap_mb","event_loop_lag_ms","sockets","uptime_s"],"properties":{"name":{"type":"string","enum":["api","scheduler","worker"]},"pid":{"type":"integer"},"host":{"type":"string","description":"The server it runs on."},"cpu_percent":{"type":"number","description":"Of one core."},"memory_mb":{"type":"integer"},"heap_mb":{"type":"integer"},"event_loop_lag_ms":{"type":"number","description":"Longest the process was blocked in the last five seconds (99th percentile)."},"sockets":{"anyOf":[{"type":"integer"},{"type":"null"}]},"uptime_s":{"type":"integer"}}}},"realtime":{"type":"object","required":["sockets","devices","viewers","rooms_connected"],"properties":{"sockets":{"type":"integer","description":"Open sockets on all API processes."},"devices":{"type":"integer","description":"Devices registered on rooms: sockets and event streams."},"viewers":{"type":"integer"},"rooms_connected":{"type":"integer"}}},"shows":{"type":"object","required":["rooms","active","running"],"properties":{"rooms":{"type":"integer","description":"Every room of every team."},"active":{"type":"integer","description":"Rooms with a running clock or a connected device."},"running":{"type":"integer","description":"Rooms whose clock is running."}}},"database":{"type":"object","required":["ok","ping_ms","version","connections","max_connections","running_threads","queries_per_second","uptime_s"],"properties":{"ok":{"type":"boolean"},"ping_ms":{"type":"number"},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"connections":{"anyOf":[{"type":"integer"},{"type":"null"}]},"max_connections":{"anyOf":[{"type":"integer"},{"type":"null"}]},"running_threads":{"anyOf":[{"type":"integer"},{"type":"null"}]},"queries_per_second":{"anyOf":[{"type":"number"},{"type":"null"}]},"uptime_s":{"anyOf":[{"type":"integer"},{"type":"null"}]}}},"cache":{"type":"object","required":["ok","ping_ms","version","memory_mb","max_memory_mb","clients","ops_per_second"],"properties":{"ok":{"type":"boolean"},"ping_ms":{"type":"number"},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"integer"},{"type":"null"}]},"max_memory_mb":{"anyOf":[{"type":"integer"},{"type":"null"}]},"clients":{"anyOf":[{"type":"integer"},{"type":"null"}]},"ops_per_second":{"anyOf":[{"type":"integer"},{"type":"null"}]}}},"queues":{"type":"object","required":["outbox_pending","webhook_deliveries_pending"],"properties":{"outbox_pending":{"type":"integer"},"webhook_deliveries_pending":{"type":"integer"}}},"scheduler":{"type":"object","required":["p95_ms","target_p95_ms","late"],"properties":{"p95_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]},"target_p95_ms":{"type":"integer"},"late":{"type":"integer"}}},"canary":{"type":"object","required":["state","last_run_at"],"properties":{"state":{"type":"string","enum":["passing","failing","slow","stale","unknown"]},"last_run_at":{"anyOf":[{"type":"integer","description":"Start of the last run (ms since Unix epoch)"},{"type":"null"}]}}}},"title":"AdminSystem"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/stats":{"get":{"operationId":"adminGetStats","summary":"Paying teams, revenue and trends","tags":["Admin"],"description":"Teams on paid plans and where each plan comes from, subscriptions, monthly recurring revenue, money collected (from the payments ledger, which the Stripe webhook fills and `pnpm billing:backfill-payments` can fill from Stripe), and twelve months of revenue, paying teams, new and lost teams, rooms created, shows run and API requests. People are the account site's: it joins them to paid_teams. Staff only.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["generated_at","paid_teams","teams","subscriptions","mrr_cents","arr_cents","subscription_mrr_cents","invoice_mrr_cents","trial_mrr_cents","arpa_cents","revenue","months"],"properties":{"generated_at":{"type":"integer","description":"When these numbers were read (ms since Unix epoch)"},"paid_teams":{"type":"array","items":{"type":"object","required":["team_id","plan","source","past_due","cancelling"],"properties":{"team_id":{"type":"string"},"plan":{"type":"string","enum":["pro","studio","enterprise"]},"source":{"type":"string","enum":["subscription","invoice","event_pass","trial","comp"]},"past_due":{"type":"boolean"},"cancelling":{"type":"boolean","description":"The subscription is set to end."}}},"description":"Every team on a plan above Free right now, with what the plan rests on: a subscription, a term invoice, an Event Pass, a Stripe trial or a comp. When several grants apply, the strongest source is given (in that order)."},"teams":{"type":"object","required":["paying","trialing","gifted","by_source","by_plan","past_due","with_rooms","active_30d"],"properties":{"paying":{"type":"integer","description":"Teams on a subscription, a term invoice or an Event Pass."},"trialing":{"type":"integer"},"gifted":{"type":"integer","description":"Teams whose only paid plan is a comp."},"by_source":{"type":"object","additionalProperties":{"type":"integer"}},"by_plan":{"type":"object","required":["pro","studio","enterprise"],"properties":{"pro":{"type":"integer"},"studio":{"type":"integer"},"enterprise":{"type":"integer"}},"description":"Paying teams by plan."},"past_due":{"type":"integer"},"with_rooms":{"type":"integer","description":"Teams the core has seen with at least one room."},"active_30d":{"type":"integer","description":"Teams that changed a room or used the API in the last 30 days (at least)."}}},"subscriptions":{"type":"object","required":["active","trialing","past_due","cancelling","monthly","yearly"],"properties":{"active":{"type":"integer"},"trialing":{"type":"integer"},"past_due":{"type":"integer"},"cancelling":{"type":"integer"},"monthly":{"type":"integer"},"yearly":{"type":"integer"}}},"mrr_cents":{"type":"integer","description":"Monthly recurring revenue: live subscriptions at list price (yearly divided by twelve, add-ons included, discounts and metered API Plus not) plus paid term invoices spread over their term."},"arr_cents":{"type":"integer","description":"mrr_cents times twelve."},"subscription_mrr_cents":{"type":"integer"},"invoice_mrr_cents":{"type":"integer"},"trial_mrr_cents":{"type":"integer","description":"What the subscriptions in trial would add at list price if they all converted."},"arpa_cents":{"anyOf":[{"type":"integer","description":"Average monthly value of a team on a subscription or term invoice."},{"type":"null"}]},"revenue":{"type":"object","required":["last_30d_cents","prev_30d_cents","this_month_cents","refunded_30d_cents","payments_30d","all_time_cents","by_kind_30d","currencies"],"properties":{"last_30d_cents":{"type":"integer"},"prev_30d_cents":{"type":"integer"},"this_month_cents":{"type":"integer"},"refunded_30d_cents":{"type":"integer"},"payments_30d":{"type":"integer"},"all_time_cents":{"type":"integer"},"by_kind_30d":{"type":"object","required":["subscription","invoice","event_pass"],"properties":{"subscription":{"type":"integer"},"invoice":{"type":"integer"},"event_pass":{"type":"integer"}}},"currencies":{"type":"array","items":{"type":"string"},"description":"Currencies seen in the ledger. Amounts are summed as they are; with more than one, the totals mix them."}},"description":"Money collected, from the payments ledger: what Stripe charged after discounts, less refunds, before Stripe fees."},"months":{"type":"array","items":{"type":"object","required":["month","starts_at","partial","revenue_cents","gross_cents","refunded_cents","payments","paying_teams","new_paying_teams","lost_paying_teams","rooms_created","shows_run","api_requests"],"properties":{"month":{"type":"string","description":"YYYY-MM, UTC."},"starts_at":{"type":"integer","description":"First moment of the month (ms since Unix epoch)"},"partial":{"type":"boolean","description":"The current month, up to now."},"revenue_cents":{"type":"integer"},"gross_cents":{"type":"integer"},"refunded_cents":{"type":"integer"},"payments":{"type":"integer"},"paying_teams":{"type":"integer","description":"Teams paying at the end of the month (or now). Taken from grant start and end times."},"new_paying_teams":{"type":"integer","description":"Teams whose first paid grant started this month."},"lost_paying_teams":{"type":"integer","description":"Teams paying at the end of the previous month and not at the end of this one."},"rooms_created":{"type":"integer"},"shows_run":{"type":"integer","description":"Run sessions started."},"api_requests":{"type":"integer"}}},"description":"The last twelve months, oldest first. The canary team is left out of everything."}},"title":"AdminStats"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/room-stats":{"get":{"operationId":"adminGetRoomStats","summary":"Rooms created by day, with and without an account","tags":["Admin"],"description":"Rooms created each UTC day, split into rooms made by a team with an account and trial rooms made without signing up, with trials claimed and expired, rooms deleted, rooms used and timers started. Also the trial claim rate, how many new rooms started a timer, and rooms in use now. Read from the room log, so deleted rooms and expired trials still count on the day they were made (trials that expired before the log existed are not in it). The canary team is left out. Staff only.","parameters":[{"schema":{"type":"integer","minimum":7,"maximum":90,"default":30},"in":"query","name":"days","required":false,"description":"Days to cover, today included."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["generated_at","days","from","by_day","totals","previous","trials","activation","now"],"properties":{"generated_at":{"type":"integer","description":"When these numbers were read (ms since Unix epoch)"},"days":{"type":"integer","description":"How many UTC days by_day covers, today included."},"from":{"type":"integer","description":"Start of the first day (ms since Unix epoch)"},"by_day":{"type":"array","items":{"type":"object","required":["date","starts_at","partial","account","anonymous","claimed","expired","deleted","active_rooms","active_account","active_anonymous","timers_started"],"properties":{"date":{"type":"string","description":"YYYY-MM-DD, UTC."},"starts_at":{"type":"integer","description":"First moment of the day (ms since Unix epoch)"},"partial":{"type":"boolean","description":"Today, up to now."},"account":{"type":"integer","description":"Rooms created by a team with an account."},"anonymous":{"type":"integer","description":"Trial rooms created without signing up."},"claimed":{"type":"integer","description":"Trial rooms claimed into an account this day, whenever they were made."},"expired":{"type":"integer","description":"Trial rooms whose time ran out unclaimed this day."},"deleted":{"type":"integer","description":"Rooms deleted by their team this day."},"active_rooms":{"type":"integer","description":"Rooms that started at least one timer this day."},"active_account":{"type":"integer"},"active_anonymous":{"type":"integer"},"timers_started":{"type":"integer","description":"Timer starts this day, in every room."}}},"description":"Oldest first."},"totals":{"type":"object","required":["account","anonymous","claimed","expired","deleted","timers_started","teams_creating_rooms"],"properties":{"account":{"type":"integer"},"anonymous":{"type":"integer"},"claimed":{"type":"integer"},"expired":{"type":"integer"},"deleted":{"type":"integer"},"timers_started":{"type":"integer"},"teams_creating_rooms":{"type":"integer","description":"Teams that created at least one room in the window."}},"description":"by_day summed."},"previous":{"type":"object","required":["account","anonymous"],"properties":{"account":{"type":"integer"},"anonymous":{"type":"integer"}},"description":"Rooms created in the same number of days just before the window."},"trials":{"type":"object","required":["created","claimed","claim_rate","median_ms_to_claim","open","ttl_ms"],"properties":{"created":{"type":"integer","description":"Trial rooms created in the window."},"claimed":{"type":"integer","description":"Of those, how many have been claimed so far."},"claim_rate":{"anyOf":[{"type":"number","minimum":0,"maximum":1,"description":"claimed / created. Trials made in the last ttl_ms may still be claimed."},{"type":"null"}]},"median_ms_to_claim":{"anyOf":[{"type":"integer","description":"From creating the trial room to claiming it, for the claimed ones."},{"type":"null"}]},"open":{"type":"integer","description":"Trial rooms that exist now and have not been claimed."},"ttl_ms":{"type":"integer","description":"How long an unclaimed trial room lives."}}},"activation":{"type":"object","required":["account","anonymous"],"properties":{"account":{"type":"object","required":["created","used","rate"],"properties":{"created":{"type":"integer"},"used":{"type":"integer"},"rate":{"anyOf":[{"type":"number","minimum":0,"maximum":1,"description":"used / created"},{"type":"null"}]}}},"anonymous":{"type":"object","required":["created","used","rate"],"properties":{"created":{"type":"integer"},"used":{"type":"integer"},"rate":{"anyOf":[{"type":"number","minimum":0,"maximum":1,"description":"used / created"},{"type":"null"}]}}}},"description":"Rooms created in the window that have started at least one timer, ever."},"now":{"type":"object","required":["rooms","open_trials","active_7d","active_30d"],"properties":{"rooms":{"type":"integer","description":"Rooms in teams with an account, claimed trials included."},"open_trials":{"type":"integer"},"active_7d":{"type":"integer","description":"Rooms that started a timer in the last 7 days."},"active_30d":{"type":"integer","description":"Rooms that started a timer in the last 30 days."}}}},"title":"AdminRoomStats"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/shows":{"get":{"operationId":"adminListShows","summary":"Shows running now","tags":["Admin"],"description":"Rooms of every team whose clock is running or that have devices connected: running rooms first, then by devices. Staff only.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"in":"query","name":"limit","required":false}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","required":["room_id","name","team_id","running","on_air","current_item","ends_at","devices","viewers","operators","slowest_latency_ms"],"properties":{"room_id":{"type":"string"},"name":{"type":"string"},"team_id":{"type":"string"},"running":{"type":"boolean"},"on_air":{"type":"boolean"},"current_item":{"anyOf":[{"type":"string"},{"type":"null"}]},"ends_at":{"anyOf":[{"type":"integer","description":"When the running timer reaches zero (ms since Unix epoch)"},{"type":"null"}]},"devices":{"type":"integer"},"viewers":{"type":"integer"},"operators":{"type":"integer"},"slowest_latency_ms":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"title":"AdminShow"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/teams":{"get":{"operationId":"adminListTeams","summary":"Plans of several teams","tags":["Admin"],"description":"The plan and room count of up to 100 teams, for lists. Teams the core has never seen come back on the Free plan with no rooms. Staff only.","parameters":[{"schema":{"type":"string","maxLength":4000},"in":"query","name":"ids","required":true,"description":"Team ids, separated by commas."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"type":"object","required":["team_id","plan","plan_name","plan_expires_at","gifted","rooms","last_room_change_at"],"properties":{"team_id":{"type":"string"},"plan":{"type":"string","enum":["free","pro","studio","enterprise"]},"plan_name":{"type":"string"},"plan_expires_at":{"anyOf":[{"type":"integer","description":"When the plan ends (ms since Unix epoch)"},{"type":"null"}]},"gifted":{"type":"boolean","description":"Part of the current plan is a gift from staff"},"rooms":{"type":"integer"},"last_room_change_at":{"anyOf":[{"type":"integer","description":"Last change to any of its rooms (ms since Unix epoch)"},{"type":"null"}]}},"title":"AdminTeamBrief"}},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/admin/teams/{teamId}":{"get":{"operationId":"adminGetTeam","summary":"One team, as the core sees it","tags":["Admin"],"description":"Plan, limits and usage, every grant (subscriptions, passes, invoices and comps, ended ones too), rooms with their connected devices, and counts. Staff only.","parameters":[{"schema":{"type":"string","maxLength":32},"in":"path","name":"teamId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok","data","meta"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"object","required":["team_id","plan","plan_name","plan_expires_at","limits","usage","grants","rooms","counts"],"properties":{"team_id":{"type":"string"},"plan":{"type":"string","enum":["free","pro","studio","enterprise"]},"plan_name":{"type":"string"},"plan_expires_at":{"anyOf":[{"type":"integer","description":"When the plan ends (ms since Unix epoch)"},{"type":"null"}]},"limits":{"type":"object","required":["rooms","items_per_rundown","connections_per_room","seats","api_requests_per_minute","questions_per_room"],"properties":{"rooms":{"anyOf":[{"type":"integer","description":"Rooms. Null means unlimited."},{"type":"null"}]},"items_per_rundown":{"anyOf":[{"type":"integer","description":"Timers per rundown. Null means unlimited."},{"type":"null"}]},"connections_per_room":{"type":"integer","description":"Connected viewer screens per room."},"seats":{"type":"integer","description":"Team members. Guests are not counted."},"api_requests_per_minute":{"type":"integer","description":"API requests per minute per API key. Sessions of signed-in people, output links, guest links and trial rooms have a fixed limit of their own that does not depend on the plan."},"questions_per_room":{"anyOf":[{"type":"integer","description":"Audience questions a room can hold at once. Null means unlimited."},{"type":"null"}]}}},"usage":{"type":"object","required":["rooms","items_max"],"properties":{"rooms":{"type":"integer"},"items_max":{"type":"integer","description":"Timers in the team's largest rundown."}}},"grants":{"type":"array","items":{"type":"object","required":["id","source","plan","addons","starts_at","expires_at","revoked_at","created_by","active"],"properties":{"id":{"type":"string"},"source":{"type":"string","enum":["stripe_subscription","event_pass","trial","comp","invoice"]},"plan":{"type":"string","enum":["free","pro","studio","enterprise"]},"addons":{"type":"object","required":["connection_packs","extra_seats"],"properties":{"connection_packs":{"type":"integer"},"extra_seats":{"type":"integer"}}},"starts_at":{"type":"integer","description":"When it began (ms since Unix epoch)"},"expires_at":{"anyOf":[{"type":"integer","description":"When it ends (ms since Unix epoch)"},{"type":"null"}]},"revoked_at":{"anyOf":[{"type":"integer","description":"When it was ended by hand or by Stripe (ms since Unix epoch)"},{"type":"null"}]},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"}}},"description":"Newest first, ended ones included."},"rooms":{"type":"array","items":{"type":"object","required":["id","name","running","devices","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"running":{"type":"boolean"},"devices":{"type":"integer"},"updated_at":{"type":"integer","description":"Last change (ms since Unix epoch)"}}}},"counts":{"type":"object","required":["rooms","rundowns","events","api_keys"],"properties":{"rooms":{"type":"integer"},"rundowns":{"type":"integer"},"events":{"type":"integer"},"api_keys":{"type":"integer"}}}},"title":"AdminTeam"},"meta":{"type":"object","required":["server_time"],"properties":{"server_time":{"type":"integer","description":"Server clock when the response was produced (ms since Unix epoch)"},"next_cursor":{"anyOf":[{"type":"string","description":"Pass as ?cursor= to fetch the next page; null on the last page."},{"type":"null"}]},"idempotent_replay":{"type":"boolean"}}}}}}}},"400":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error envelope returned with every non-2xx status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"servers":[{"url":"https://api.runofsho.com","description":"Production"},{"url":"http://localhost:4000","description":"Local development"}],"tags":[{"name":"State","description":"Room state for displays, and the server clock."},{"name":"Playback","description":"Transport commands. All times are relative to the server clock."},{"name":"Rooms"},{"name":"Events"},{"name":"Rundowns"},{"name":"Items","description":"Rundown items (rows). Every item is a timer."},{"name":"Columns","description":"Columns of the rundown grid."},{"name":"Groups","description":"Blocks of rows with rolled-up timing."},{"name":"Timing","description":"Planned times, computed by the server."},{"name":"History","description":"Change history with restore, the archive, and search and replace."},{"name":"Views","description":"Personal views and presence."},{"name":"Import","description":"Bring rows in from spreadsheets or from another rundown."},{"name":"Guest passes","description":"Read-only links for people outside the team, limited to the columns you choose."},{"name":"Exports","description":"PDF, Word and CSV files of a rundown, made in the background and fetched through signed links."},{"name":"Compatibility (GET)","description":"Opt-in GET aliases of the playback, message and display commands for Bitfocus Companion, vMix and plain HTTP buttons. Off unless a key has the compat scope and compat_enabled."},{"name":"Analytics","description":"On-time rate, overrun per speaker and segment type, drift per room and peak connections."},{"name":"Integrations","description":"Read-only feeds for vision mixers and graphics. See also the GET compatibility layer and /docs/integrations."},{"name":"Checkpoints","description":"Named snapshots of a rundown with diff and restore."},{"name":"Q&A","description":"Audience questions: a public page to ask, moderation before anything reaches a screen, and one question at a time on the stage screen or the presenter view."},{"name":"Health","description":"The team's health dashboard and the public service status fed by the production canary."},{"name":"Reports","description":"Post-show reports built from stamps and the show caller's actual times."},{"name":"Show calling","description":"The show caller tracks the live row; crew follow it. Can drive a room's timer."},{"name":"Messages"},{"name":"Display","description":"Flash, blackout and on-air."},{"name":"Connections","description":"Devices connected to a room right now."},{"name":"Webhooks","description":"Signed HTTP callbacks for the same events as the real-time channel, with retries and a delivery log."},{"name":"Outputs"},{"name":"API keys"},{"name":"Workspaces","description":"One workspace per client: its events and rooms, and API keys that reach nothing else."},{"name":"Account","description":"The current credential, its preferences and the team's plan."},{"name":"Billing","description":"Plans and prices, Stripe Checkout, the Customer Portal and invoices. Paying changes the team's entitlement grants; nothing else sets a plan."},{"name":"Billing admin","description":"runofsho staff only: resync with Stripe, mismatches and comps."},{"name":"Admin","description":"runofsho staff only: the state of the servers, the shows running now, and teams as the core sees them."},{"name":"Trial rooms","description":"Try a room without signing up, then claim it."},{"name":"Real-time","description":"Server-sent events. For two-way socket.io see the AsyncAPI document."}]}