{"openapi":"3.1.0","info":{"title":"RobinPod API","version":"1.0.0","description":"Work with your studio account from scripts and other apps. Make a key on the API keys page and send it as `Authorization: Bearer <key>`. Limits are per key and depend on the account's plan; a 429 says when to try again in `Retry-After`. On Free the API needs the $1-a-month API add-on, and while a payment has been overdue for more than 7 days it's off: either way every call but `/me` is a 402 (`api_not_included`, `payment_overdue`). A suspended account's keys may still read (GET); anything else is a 403 `account_suspended`. Lists are paged: pass the response's `next_cursor` as `cursor` until it is null. An AI agent you already use can write a show's days: it asks what's due (`/shows/{id}/work`), reads a day's brief, takes the day, and saves its research, written steps and title with a key that has the `write` scope; every save is checked whole and refused with its reasons (`invalid_piece`), and nothing it writes is rendered before a person says so. Webhooks (under `webhooks` and the Webhooks tag) push events to your app instead; each request is signed in `Webhook-Signature`."},"tags":[{"name":"Webhooks","description":"Webhooks tell your app when something happens in your account, instead of your app asking. Add an endpoint on the **Webhooks** page of your studio (owners and admins): an `https://` address on the public internet and the events it wants. Each endpoint gets a signing secret, `whsec_…`, shown once (rotate it there if it's lost).\n\n**Events**\n\n- `episode.published`: a new episode is out — found in a measured show's feed (`data.source: \"prefix\"`), or released by the studio (`\"studio\"`).\n- `downloads.threshold_crossed`: a measured show or one of its episodes passes 100, 1,000, 10,000 or 100,000 counted downloads. Each threshold fires once per show and per episode.\n- `import.finished`: imported download history was saved.\n- `webhook.test`: sent only by the page's **Send test event**.\n\n**The request**\n\nA `POST` with a JSON body `{\"id\", \"type\", \"created_at\", \"account\": {\"id\", \"slug\"}, \"data\"}` and these headers:\n\n- `Webhook-Id`: the event's id (`evt_…`). It's the same on every retry and redelivery, so keep the ids you've handled and ignore repeats.\n- `Webhook-Event`: the event type.\n- `Webhook-Signature`: `t=<unix seconds>,v1=<signature>`, where the signature is the lowercase hex HMAC-SHA256 of `<t>.<raw body>` keyed with your endpoint's whole secret (`whsec_` included).\n\n**Verifying**\n\nCompute the HMAC over the timestamp, a full stop and the body exactly as received (before any JSON parsing), compare it with each `v1` in constant time, and refuse a `t` more than five minutes from your clock. In JavaScript:\n\n```js\nasync function verifyWebhook(secret, signatureHeader, rawBody, toleranceSeconds = 300) {\n  // signatureHeader: the Webhook-Signature header, \"t=<unix seconds>,v1=<hex>\".\n  // rawBody: the request body exactly as received (read it as text before parsing the JSON).\n  let t = NaN;\n  const signatures = [];\n  for (const part of signatureHeader.split(\",\")) {\n    const [key, value] = [part.slice(0, part.indexOf(\"=\")), part.slice(part.indexOf(\"=\") + 1)];\n    if (key === \"t\") t = Number(value);\n    if (key === \"v1\") signatures.push(value);\n  }\n  if (!Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false;\n  const enc = new TextEncoder();\n  const key = await crypto.subtle.importKey(\"raw\", enc.encode(secret), { name: \"HMAC\", hash: \"SHA-256\" }, false, [\"sign\"]);\n  const mac = new Uint8Array(await crypto.subtle.sign(\"HMAC\", key, enc.encode(t + \".\" + rawBody)));\n  const expected = Array.from(mac, (b) => b.toString(16).padStart(2, \"0\")).join(\"\");\n  // Compare without stopping at the first difference.\n  return signatures.some((s) => s.length === expected.length\n    && [...s].reduce((diff, c, i) => diff | (c.charCodeAt(0) ^ expected.charCodeAt(i)), 0) === 0);\n}\n```\n\nIn Python:\n\n```python\nimport hashlib, hmac, time\n\ndef verify_webhook(secret: str, signature_header: str, raw_body: bytes, tolerance_seconds: int = 300) -> bool:\n    parts = [p.split(\"=\", 1) for p in signature_header.split(\",\") if \"=\" in p]\n    t = next((v for k, v in parts if k == \"t\"), \"\")\n    signatures = [v for k, v in parts if k == \"v1\"]\n    if not t.isdigit() or abs(time.time() - int(t)) > tolerance_seconds:\n        return False\n    expected = hmac.new(secret.encode(), t.encode() + b\".\" + raw_body, hashlib.sha256).hexdigest()\n    return any(hmac.compare_digest(expected, s) for s in signatures)\n```\n\n**Answering and retries**\n\nAnswer with any 2xx within 10 seconds; do slow work after answering. Anything else (another status, a timeout, a redirect to a non-https or private address) is a failure, retried 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours later (retries go out from a check every 15 minutes, so the first ones can be a little later), then given up; the page can redeliver it. Redirects to other https addresses are followed (at most 3). An endpoint whose every delivery has failed for 3 days is turned off, and the page says so; turn it back on when it's fixed. Deliveries are at least once and not always in order."}],"servers":[{"url":"https://www.robinpod.com/api/v1"}],"security":[{"bearerAuth":[]}],"paths":{"/me":{"get":{"operationId":"getMe","summary":"The key's account and the key itself","description":"Any key may call this, whatever its scopes.","responses":{"200":{"description":"The account and the key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows":{"get":{"operationId":"listShows","summary":"The account's shows","description":"Every show (any status), oldest first, a page at a time. Needs the `read` scope.","parameters":[{"name":"limit","in":"query","description":"How many to return (1–100, default 50).","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","description":"The previous page's `next_cursor`.","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of shows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowList"}}}},"400":{"description":"A parameter or cursor isn't valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"read\" scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}":{"get":{"operationId":"getShow","summary":"One show","parameters":[{"name":"id","in":"path","required":true,"description":"The show's id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowResponse"}}}},"400":{"description":"A parameter or cursor isn't valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"read\" scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such show in this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}/episodes":{"get":{"operationId":"listEpisodes","summary":"A show's released episodes","description":"Released episodes only (published, out by today, with audio), newest first, a page at a time. Needs the `read` scope.","parameters":[{"name":"id","in":"path","required":true,"description":"The show's id.","schema":{"type":"string"}},{"name":"since","in":"query","description":"Released on or after this date.","schema":{"type":"string","format":"date"}},{"name":"until","in":"query","description":"Released on or before this date.","schema":{"type":"string","format":"date"}},{"name":"limit","in":"query","description":"How many to return (1–100, default 50).","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","description":"The previous page's `next_cursor`.","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of episodes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EpisodeList"}}}},"400":{"description":"A parameter or cursor isn't valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"read\" scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such show in this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}/episodes/{day}":{"get":{"operationId":"getEpisode","summary":"One released episode","parameters":[{"name":"id","in":"path","required":true,"description":"The show's id.","schema":{"type":"string"}},{"name":"day","in":"path","required":true,"description":"The episode's day number.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"The episode.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EpisodeResponse"}}}},"400":{"description":"A parameter or cursor isn't valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"read\" scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such show, or that day isn't released.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}/downloads":{"get":{"operationId":"getDownloads","summary":"A show's downloads","description":"Downloads counted as the studio's Analytics page counts them: once per listener per day; listeners are distinct hashed IPs; dates are UTC. By default bots, crawlers, link previewers and data-center networks are left out (`traffic=listeners`); `traffic=all` counts every download and `traffic=bots` only what was flagged, and `by=app` names each client and its `kind` (app, browser, bot, other). At most 366 days a request. Needs the `analytics` scope.","parameters":[{"name":"id","in":"path","required":true,"description":"The show's id.","schema":{"type":"string"}},{"name":"from","in":"query","description":"First day (default: 29 days before `to`).","schema":{"type":"string","format":"date"}},{"name":"to","in":"query","description":"Last day, inclusive (default: today).","schema":{"type":"string","format":"date"}},{"name":"by","in":"query","description":"How to group the rows.","schema":{"type":"string","enum":["day","episode","app","country","region"],"default":"day"}},{"name":"include_starts","in":"query","description":"Count the show's weekly starts too (for a series' main show).","schema":{"type":"boolean","default":false}},{"name":"traffic","in":"query","description":"listeners: bots left out; all: every download; bots: only what was flagged.","schema":{"type":"string","enum":["listeners","all","bots"],"default":"listeners"}}],"responses":{"200":{"description":"The counts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Downloads"}}}},"400":{"description":"A parameter or cursor isn't valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"analytics\" scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such show in this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}/downloads/hits":{"get":{"operationId":"getDownloadHits","summary":"A measured show's requests, one row each","description":"Every request through the measurement prefix for one of the account's measured (prefix) shows, counted or filtered (with why: bot, probe, partial, duplicate), oldest first, a page at a time. Kept 90 days. Never an IP address, user agent or postal code; coordinates are rounded to one decimal (about 10 km). Paid plans only (Prefix 5, Prefix 25). Needs the `analytics` scope. CSV with `format=csv` or `Accept: text/csv`: the columns are id, at, show_id, episode_id, episode_guid, counted, filtered, app, platform, country, region, region_code, city, metro_code, timezone, network, latitude, longitude, and the next page is in the `X-Next-Cursor` and `Link` headers.","parameters":[{"name":"id","in":"path","required":true,"description":"The measured show's id (from its Prefix stats page).","schema":{"type":"string"}},{"name":"since","in":"query","description":"From this time (a date = that UTC day's start; default 90 days ago).","schema":{"type":"string","examples":["2026-11-01","2026-11-07T10:00:00Z"]}},{"name":"until","in":"query","description":"Before this time (a date = through that UTC day; default now).","schema":{"type":"string","examples":["2026-11-01","2026-11-07T10:00:00Z"]}},{"name":"limit","in":"query","description":"Rows a page (1–1000, default 500).","schema":{"type":"integer","minimum":1,"maximum":1000,"default":500}},{"name":"cursor","in":"query","description":"The previous page's `next_cursor` (or `X-Next-Cursor`).","schema":{"type":"string"}},{"name":"format","in":"query","description":"json (default) or csv.","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"A page of hits.","headers":{"X-Next-Cursor":{"description":"CSV only: the next page's cursor, when there is one.","schema":{"type":"string"}},"Link":{"description":"CSV only: the next page's URL, rel=\"next\".","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HitList"}},"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"A parameter or cursor isn't valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"analytics\" scope, or the account's plan doesn't include the export (`upgrade_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such measured show in this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}/work":{"get":{"operationId":"listWork","summary":"The days of a show that need writing","description":"For an AI agent that writes the show. Only the days the show's schedule gives to an agent: the schedule says \"Written by your agent\", is on, and the day is inside its range. Of those, the days releasing from yesterday to `days` ahead that still need research, a written step or a title, soonest due first, each with `due_at`: when the day must be in. Replayed days and days with nothing left for an agent are left out. A show whose schedule isn't the agent's gets an empty list and a `note` saying how to turn it on. Needs the `read` scope.","parameters":[{"name":"id","in":"path","required":true,"description":"The show's id.","schema":{"type":"string"}},{"name":"days","in":"query","description":"How many days ahead to look (1–60, default 7).","schema":{"type":"integer","minimum":1,"maximum":60,"default":7}}],"responses":{"200":{"description":"The days.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Work"}}}},"400":{"description":"A parameter isn't valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"read\" scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such show in this account, or the show has no such day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}/days/{day}/brief":{"get":{"operationId":"getDayBrief","summary":"Everything an agent needs to write one day","description":"The show, the day's focus and readings, and every step of the day in order. A research step and each written step carry the exact system and user prompts the studio's own writer gets, the word target, the cast for a conversation, how to send the result, whether it's already written and whether it's locked (a host's recording, or ready Gemini Notebook audio). A research step's prompts hold the stories already covered and any mail the show received for research, so it needs the `write` scope.","parameters":[{"name":"id","in":"path","required":true,"description":"The show's id.","schema":{"type":"string"}},{"name":"day","in":"path","required":true,"description":"The day number, as list_work gives it.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"The day's brief.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DayBrief"}}}},"400":{"description":"A parameter isn't valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"write\" scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such show in this account, or the show has no such day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`replay_day` or `unsupported_format`: nothing for an agent to write.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}/days/{day}/claim":{"post":{"operationId":"startDay","summary":"Take the day before writing it","description":"Takes the day's claim, so the studio and a second agent can't write it at the same time, and gives back a token every save needs. The claim holds 15 minutes; send the token back here to renew it (the answer has a new token). For a show made from a fact library the day's facts are picked now, so the brief's prompts carry them. Needs the `write` scope.","parameters":[{"name":"id","in":"path","required":true,"description":"The show's id.","schema":{"type":"string"}},{"name":"day","in":"path","required":true,"description":"The day number, as list_work gives it.","schema":{"type":"integer","minimum":1}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"A token from an earlier start_day, to renew that claim. Leave out to take the day."}}}}}},"responses":{"200":{"description":"The claim.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DayClaim"}}}},"400":{"description":"A parameter or the body isn't valid (`invalid_parameter`, `invalid_body`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"write\" scope, or the account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such show in this account, or no such day or step.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`day_busy`: something else holds the day; `claim_lost`: the token to renew isn't current; `not_agent_day`; `replay_day`; `unsupported_format`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}/days/{day}/research/{step}":{"put":{"operationId":"saveResearch","summary":"Save a research step's brief","description":"The brief the later steps are written from, with the pages it relies on. Checked whole before anything is saved: the brief at most 100,000 characters, at least one source and at most 100, every source an http or https address. The same body twice is one save. Needs the `write` scope.","parameters":[{"name":"id","in":"path","required":true,"description":"The show's id.","schema":{"type":"string"}},{"name":"day","in":"path","required":true,"description":"The day number, as list_work gives it.","schema":{"type":"integer","minimum":1}},{"name":"step","in":"path","required":true,"description":"The step's id, as the day's brief gives it.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token","brief","sources"],"properties":{"token":{"type":"string","description":"The claim's token, from start_day."},"brief":{"type":"string","description":"The research brief, as plain text."},"sources":{"type":"array","description":"Every page the brief relies on.","items":{"type":"object","required":["url"],"properties":{"title":{"type":"string"},"url":{"type":"string","format":"uri"},"date":{"type":"string","description":"The page's publish date, when confirmed (YYYY-MM-DD)."}}}},"stories":{"type":"array","description":"Optional: the stories considered (at most 80), as the research prompts' <stories> list describes them.","items":{"type":"object","properties":{"title":{"type":"string"},"what_new":{"type":"string"},"category":{"type":"string"},"entities":{"type":"array","items":{"type":"string"}},"urls":{"type":"array","items":{"type":"string"}},"importance":{"type":"integer"},"pick":{"type":"string","enum":["today","shelf","skip"]},"why":{"type":"string"},"shelf_id":{"type":"integer"}}}}}}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedResearch"}}}},"400":{"description":"A parameter or the body isn't valid (`invalid_parameter`, `invalid_body`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"write\" scope, or the account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such show in this account, or no such day or step.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`claim_lost`: the token is missing, ran out or was replaced (call start_day again); `step_locked`: a host's recording or ready Gemini Notebook audio is what's played; `not_agent_day`: the show's schedule doesn't give this day to an agent; `wrong_step_kind`; `replay_day`; `unsupported_format`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`invalid_piece`: nothing was saved; `error.problems` lists every reason in plain words.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`too_many_saves`: the show took 200 saves from agents today (UTC); or too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}/days/{day}/pieces/{step}":{"put":{"operationId":"savePiece","summary":"Save one written step","description":"A step's spoken words: `text` for a one-voice step, `turns` for a conversation (every speaker must be in the step's cast). At most 40,000 characters; a {tag} the show doesn't have is refused. Checked whole before anything is saved; the same body twice is one save. A day that was rendered or marked ready goes back to draft. Needs the `write` scope.","parameters":[{"name":"id","in":"path","required":true,"description":"The show's id.","schema":{"type":"string"}},{"name":"day","in":"path","required":true,"description":"The day number, as list_work gives it.","schema":{"type":"integer","minimum":1}},{"name":"step","in":"path","required":true,"description":"The step's id, as the day's brief gives it.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"The claim's token, from start_day."},"text":{"type":"string","description":"The words, for a one-voice step."},"turns":{"type":"array","description":"The conversation, for a step with a cast.","items":{"type":"object","required":["speaker","text"],"properties":{"speaker":{"type":"string"},"text":{"type":"string"}}}}}}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedPiece"}}}},"400":{"description":"A parameter or the body isn't valid (`invalid_parameter`, `invalid_body`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"write\" scope, or the account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such show in this account, or no such day or step.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`claim_lost`: the token is missing, ran out or was replaced (call start_day again); `step_locked`: a host's recording or ready Gemini Notebook audio is what's played; `not_agent_day`: the show's schedule doesn't give this day to an agent; `wrong_step_kind`; `replay_day`; `unsupported_format`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`invalid_piece`: nothing was saved; `error.problems` lists every reason in plain words.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`too_many_saves`: the show took 200 saves from agents today (UTC); or too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}/days/{day}/title":{"put":{"operationId":"saveTitle","summary":"Save the episode's title","description":"One line, at most 120 characters. The token is optional here; one that's sent must be current. Needs the `write` scope.","parameters":[{"name":"id","in":"path","required":true,"description":"The show's id.","schema":{"type":"string"}},{"name":"day","in":"path","required":true,"description":"The day number, as list_work gives it.","schema":{"type":"integer","minimum":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title"],"properties":{"token":{"type":"string","description":"The claim's token, from start_day."},"title":{"type":"string","maxLength":120}}}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedTitle"}}}},"400":{"description":"A parameter or the body isn't valid (`invalid_parameter`, `invalid_body`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"write\" scope, or the account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such show in this account, or no such day or step.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`claim_lost`: the token is missing, ran out or was replaced (call start_day again); `step_locked`: a host's recording or ready Gemini Notebook audio is what's played; `not_agent_day`: the show's schedule doesn't give this day to an agent; `wrong_step_kind`; `replay_day`; `unsupported_format`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`invalid_piece`: nothing was saved; `error.problems` lists every reason in plain words.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`too_many_saves`: the show took 200 saves from agents today (UTC); or too many requests for this key's plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/shows/{id}/days/{day}/finish":{"post":{"operationId":"finishDay","summary":"Say the day is done","description":"Says whether the day now has everything, and what's missing if not. On a complete day of a show that reviews its scripts, the show's reviewer reads the steps the agent wrote: when it wants changes they come back as `review.edits` (by step), the claim stays held, and the agent rewrites those steps and calls this again, at most the show's review rounds per step. Otherwise the claim is let go (when the token is the current one) and, as the show's schedule says, the day is marked ready and its audio queued (`marked_ready`, `render_queued`), or it waits as a draft and the show's owners are emailed once (`owner_emailed`). `note` says which happened. Needs the `write` scope.","parameters":[{"name":"id","in":"path","required":true,"description":"The show's id.","schema":{"type":"string"}},{"name":"day","in":"path","required":true,"description":"The day number, as list_work gives it.","schema":{"type":"integer","minimum":1}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"The claim's token, from start_day."}}}}}},"responses":{"200":{"description":"Where the day stands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DayFinished"}}}},"400":{"description":"A parameter or the body isn't valid (`invalid_parameter`, `invalid_body`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that isn't valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the \"write\" scope, or the account is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such show in this account, or no such day or step.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"`not_agent_day`: the show's schedule doesn't give this day to an agent; `replay_day`: the day replays another; `unsupported_format`: the day has no designed steps.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/openapi.json":{"get":{"operationId":"getOpenApi","summary":"This document","security":[],"responses":{"200":{"description":"The OpenAPI document.","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"webhooks":{"episode.published":{"post":{"operationId":"webhook_episode_published","summary":"A new episode is out","tags":["Webhooks"],"parameters":[{"name":"Webhook-Id","in":"header","required":true,"description":"The event id; the same on every retry.","schema":{"type":"string"}},{"name":"Webhook-Event","in":"header","required":true,"description":"The event type.","schema":{"type":"string"}},{"name":"Webhook-Signature","in":"header","required":true,"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">`.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"episode.published"},"data":{"$ref":"#/components/schemas/EpisodePublishedData"}}}]}}}},"responses":{"2XX":{"description":"Received. Anything else is retried."}}}},"downloads.threshold_crossed":{"post":{"operationId":"webhook_downloads_threshold_crossed","summary":"A show or episode passed a downloads milestone","tags":["Webhooks"],"parameters":[{"name":"Webhook-Id","in":"header","required":true,"description":"The event id; the same on every retry.","schema":{"type":"string"}},{"name":"Webhook-Event","in":"header","required":true,"description":"The event type.","schema":{"type":"string"}},{"name":"Webhook-Signature","in":"header","required":true,"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">`.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"downloads.threshold_crossed"},"data":{"$ref":"#/components/schemas/ThresholdCrossedData"}}}]}}}},"responses":{"2XX":{"description":"Received. Anything else is retried."}}}},"import.finished":{"post":{"operationId":"webhook_import_finished","summary":"Imported download history was saved","tags":["Webhooks"],"parameters":[{"name":"Webhook-Id","in":"header","required":true,"description":"The event id; the same on every retry.","schema":{"type":"string"}},{"name":"Webhook-Event","in":"header","required":true,"description":"The event type.","schema":{"type":"string"}},{"name":"Webhook-Signature","in":"header","required":true,"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">`.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"import.finished"},"data":{"$ref":"#/components/schemas/ImportFinishedData"}}}]}}}},"responses":{"2XX":{"description":"Received. Anything else is retried."}}}},"webhook.test":{"post":{"operationId":"webhook_webhook_test","summary":"A test event from the Webhooks page","tags":["Webhooks"],"parameters":[{"name":"Webhook-Id","in":"header","required":true,"description":"The event id; the same on every retry.","schema":{"type":"string"}},{"name":"Webhook-Event","in":"header","required":true,"description":"The event type.","schema":{"type":"string"}},{"name":"Webhook-Signature","in":"header","required":true,"description":"`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">`.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"webhook.test"},"data":{"$ref":"#/components/schemas/TestEventData"}}}]}}}},"responses":{"2XX":{"description":"Received. Anything else is retried."}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key, `pcs_…`."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","examples":["unauthorized","invalid_key","key_revoked","account_suspended","insufficient_scope","api_not_included","payment_overdue","rate_limited","not_found","invalid_parameter","invalid_cursor","upgrade_required","invalid_piece","claim_lost","day_busy","step_locked","too_many_saves"]},"message":{"type":"string"},"problems":{"type":"array","items":{"type":"string"},"description":"With `invalid_piece`: every reason the save was refused, in plain words."}}}}},"Show":{"type":"object","required":["id","slug","title","description","status","start_date","series_root_id","feed_url","page_url","artwork_url","episode_count","created_at"],"properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["draft","active","archived"]},"start_date":{"type":"string","format":"date"},"series_root_id":{"type":"string","description":"The series' main show; the show's own id when it isn't a weekly start."},"feed_url":{"type":"string","format":"uri"},"page_url":{"type":"string","format":"uri"},"artwork_url":{"type":["string","null"],"format":"uri"},"episode_count":{"type":"integer","minimum":0,"description":"Released episodes."},"created_at":{"type":"string","format":"date-time"}}},"ShowList":{"type":"object","required":["shows","next_cursor"],"properties":{"shows":{"type":"array","items":{"$ref":"#/components/schemas/Show"}},"next_cursor":{"type":["string","null"]}}},"ShowResponse":{"type":"object","required":["show"],"properties":{"show":{"$ref":"#/components/schemas/Show"}}},"Episode":{"type":"object","required":["day","title","release_date","audio_url","duration_seconds","size_bytes","page_url","transcript_url"],"properties":{"day":{"type":"integer","minimum":1},"title":{"type":"string"},"release_date":{"type":"string","format":"date"},"audio_url":{"type":"string","format":"uri","description":"The MP3 as podcast apps get it."},"duration_seconds":{"type":["integer","null"]},"size_bytes":{"type":["integer","null"]},"page_url":{"type":"string","format":"uri"},"transcript_url":{"type":"string","format":"uri"}}},"EpisodeList":{"type":"object","required":["show_id","episodes","next_cursor"],"properties":{"show_id":{"type":"string"},"episodes":{"type":"array","items":{"$ref":"#/components/schemas/Episode"}},"next_cursor":{"type":["string","null"]}}},"EpisodeResponse":{"type":"object","required":["show_id","episode"],"properties":{"show_id":{"type":"string"},"episode":{"$ref":"#/components/schemas/Episode"}}},"Downloads":{"type":"object","required":["show_id","from","to","by","include_starts","traffic","series"],"properties":{"show_id":{"type":"string"},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"by":{"type":"string","enum":["day","episode","app","country","region"]},"include_starts":{"type":"boolean"},"traffic":{"type":"string","enum":["listeners","all","bots"]},"series":{"type":"array","items":{"type":"object","required":["source","total","rows"],"properties":{"source":{"type":"string","enum":["measured","imported"],"description":"\"measured\": counted by this studio. Imported stats will come as their own series."},"total":{"type":"object","required":["downloads","listeners"],"properties":{"downloads":{"type":"integer","minimum":0},"listeners":{"type":"integer","minimum":0}}},"rows":{"type":"array","description":"by=day: {date, downloads, listeners} for every day; episode: {day, downloads, listeners} (day 0 = the trailer); app: {app, kind, downloads, browsers?}; country: {country, name, downloads}; region: {country, region, region_code, downloads}.","examples":[[{"date":"2026-11-01","downloads":12,"listeners":9},{"date":"2026-11-02","downloads":15,"listeners":11}]],"items":{"type":"object","required":["downloads"],"properties":{"downloads":{"type":"integer","minimum":0},"listeners":{"type":"integer","minimum":0},"date":{"type":"string","format":"date"},"day":{"type":"integer","minimum":0},"app":{"type":"string"},"browsers":{"type":"array","items":{"type":"object","required":["browser","downloads"],"properties":{"browser":{"type":"string"},"downloads":{"type":"integer","minimum":0}}}},"country":{"type":["string","null"],"description":"ISO 3166 code; null = unknown."},"name":{"type":"string"},"region":{"type":"string"},"region_code":{"type":["string","null"]}}}}}}}}},"Hit":{"type":"object","required":["id","at","show_id","episode_id","episode_guid","counted","filtered","app","platform","country","region","region_code","city","metro_code","timezone","network","latitude","longitude"],"properties":{"id":{"type":"integer","description":"The hit's id; increases with time within a show."},"at":{"type":"string","format":"date-time"},"show_id":{"type":"string"},"episode_id":{"type":["integer","null"],"description":"The feed episode the file matched; null = not matched."},"episode_guid":{"type":["string","null"]},"counted":{"type":"boolean","description":"Whether it counted as a download."},"filtered":{"type":"string","enum":["","bot","probe","partial","duplicate"],"description":"Why it didn't count; \"\" when it did."},"app":{"type":"string"},"platform":{"type":"string"},"country":{"type":["string","null"],"description":"ISO 3166 code."},"region":{"type":["string","null"]},"region_code":{"type":["string","null"]},"city":{"type":["string","null"]},"metro_code":{"type":["string","null"],"description":"US metro (DMA) code."},"timezone":{"type":["string","null"]},"network":{"type":["string","null"],"description":"The listener's network (ISP)."},"latitude":{"type":["number","null"],"description":"Rounded to one decimal."},"longitude":{"type":["number","null"],"description":"Rounded to one decimal."}}},"HitList":{"type":"object","required":["show_id","since","until","hits","next_cursor"],"properties":{"show_id":{"type":"string"},"since":{"type":"string","format":"date-time"},"until":{"type":"string","format":"date-time"},"hits":{"type":"array","items":{"$ref":"#/components/schemas/Hit"}},"next_cursor":{"type":["string","null"]}}},"DayMissing":{"type":"object","required":["research","pieces","title","studio"],"properties":{"research":{"type":"array","description":"Research steps with no brief yet.","items":{"type":"object","required":["step","label"],"properties":{"step":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string"}}}},"pieces":{"type":"array","description":"Written steps with no words yet.","items":{"type":"object","required":["step","label"],"properties":{"step":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string"}}}},"title":{"type":"boolean","description":"The show titles its episodes and this day has none."},"studio":{"type":"array","description":"What the studio still has to make itself.","items":{"type":"string","enum":["scripture","facts","notebook_audio"]}}}},"Work":{"type":"object","required":["show_id","today","days_ahead","days"],"properties":{"show_id":{"type":"string"},"today":{"type":"string","format":"date"},"days_ahead":{"type":"integer"},"days":{"type":"array","items":{"type":"object","required":["day","release_date","due_at","status","missing","claimed","claimed_until"],"properties":{"day":{"type":"integer","minimum":1},"release_date":{"type":"string","format":"date"},"due_at":{"type":"string","format":"date-time","description":"When the day must be in: the schedule's time of day (UTC) on the day's release date, less the schedule's due hours. After it the show's missed-day rule applies."},"status":{"type":"string","enum":["none","draft","ready","rendering","rendered"],"description":"The day's script: none = nothing written yet."},"missing":{"$ref":"#/components/schemas/DayMissing"},"claimed":{"type":"boolean","description":"Something is working on the day right now."},"claimed_until":{"type":["string","null"],"format":"date-time"}}}},"note":{"type":"string"}}},"DayBrief":{"type":"object","required":["show","content","day","release_date","agent_day","due_at","focus","readings","status","title","claimed","claimed_until","missing","steps","tags"],"properties":{"show":{"type":"object","required":["id","title","description"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}},"content":{"type":"object","required":["name","description","total_days"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"total_days":{"type":"integer"}}},"day":{"type":"integer","minimum":1},"release_date":{"type":"string","format":"date"},"agent_day":{"type":"boolean","description":"Whether the show's schedule gives this day to an agent. Only such a day can be claimed and saved."},"due_at":{"type":["string","null"],"format":"date-time","description":"When the day must be in; null when it isn't an agent's day."},"focus":{"type":"string","description":"The day's theme line; empty when it has none."},"readings":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["none","draft","ready","rendering","rendered"],"description":"The day's script: none = nothing written yet."},"title":{"type":"object","required":["current","style","max_chars"],"properties":{"current":{"type":"string"},"style":{"type":"string","description":"How the show wants its titles; empty when it doesn't title episodes."},"max_chars":{"type":"integer"}}},"claimed":{"type":"boolean"},"claimed_until":{"type":["string","null"],"format":"date-time"},"missing":{"$ref":"#/components/schemas/DayMissing"},"steps":{"type":"array","description":"The day's steps in order.","items":{"type":"object","required":["id","kind","label","written","locked","writable","save_with","output"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["text","scripture","ai","dialogue","research","facts","music"]},"label":{"type":"string"},"written":{"type":"boolean"},"locked":{"type":"boolean"},"locked_reason":{"type":"string"},"writable":{"type":"boolean","description":"Whether an agent may save this step."},"save_with":{"type":["string","null"],"enum":["save_research","save_piece",null]},"output":{"type":["string","null"],"enum":["research","text","turns",null]},"output_note":{"type":"string"},"words":{"type":"integer","description":"The word target."},"prompts":{"type":"object","required":["system","user"],"properties":{"system":{"type":"string"},"user":{"type":"string"}}},"cast":{"type":"array","items":{"type":"object","required":["speaker","description"],"properties":{"speaker":{"type":"string"},"description":{"type":"string"}}}},"waiting_on":{"type":"array","description":"Earlier steps this one is written from that aren't there yet.","items":{"type":"object","required":["step","label"],"properties":{"step":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string"}}}},"limits":{"type":"object","properties":{"max_searches":{"type":"integer"},"max_fetches":{"type":"integer"},"allowed_domains":{"type":"array","items":{"type":"string"}},"blocked_domains":{"type":"array","items":{"type":"string"}},"about_date":{"type":"boolean"}}}}}},"tags":{"type":"object","required":["built_in","yours","note"],"properties":{"built_in":{"type":"array","items":{"type":"object","required":["name","says"],"properties":{"name":{"type":"string"},"says":{"type":"string"}}}},"yours":{"type":"array","items":{"type":"object","required":["name","says"],"properties":{"name":{"type":"string"},"says":{"type":"string"}}}},"note":{"type":"string"}}}}},"DayClaim":{"type":"object","required":["show_id","day","token","expires_at","renewed"],"properties":{"show_id":{"type":"string"},"day":{"type":"integer","minimum":1},"token":{"type":"string","description":"Send it with every save. A renewal gives a new one."},"expires_at":{"type":"string","format":"date-time"},"renewed":{"type":"boolean"},"facts":{"type":"object","required":["picked"],"properties":{"picked":{"type":"boolean"},"note":{"type":"string"}}}}},"SavedResearch":{"type":"object","required":["show_id","day","step","saved","changed","sources","stories","status"],"properties":{"show_id":{"type":"string"},"day":{"type":"integer","minimum":1},"step":{"type":"string"},"saved":{"type":"boolean"},"changed":{"type":"boolean","description":"False when it was already saved exactly so."},"sources":{"type":"integer","minimum":0},"stories":{"type":["integer","null"],"description":"Stories kept; null when none were sent."},"status":{"type":"string","enum":["none","draft","ready","rendering","rendered"],"description":"The day's script: none = nothing written yet."}}},"SavedPiece":{"type":"object","required":["show_id","day","step","kind","saved","changed","words","target_words","status"],"properties":{"show_id":{"type":"string"},"day":{"type":"integer","minimum":1},"step":{"type":"string"},"kind":{"type":"string","enum":["ai","dialogue"]},"saved":{"type":"boolean"},"changed":{"type":"boolean","description":"False when it was already saved exactly so."},"words":{"type":"integer","minimum":0},"target_words":{"type":"integer","minimum":0},"status":{"type":"string","enum":["none","draft","ready","rendering","rendered"],"description":"The day's script: none = nothing written yet."}}},"SavedTitle":{"type":"object","required":["show_id","day","saved","changed","title"],"properties":{"show_id":{"type":"string"},"day":{"type":"integer","minimum":1},"saved":{"type":"boolean"},"changed":{"type":"boolean"},"title":{"type":"string"}}},"DayFinished":{"type":"object","required":["show_id","day","complete","missing","status","marked_ready","render_queued","owner_emailed","released","note"],"properties":{"show_id":{"type":"string"},"day":{"type":"integer","minimum":1},"complete":{"type":"boolean","description":"The studio's own rule: everything the episode needs is there."},"missing":{"$ref":"#/components/schemas/DayMissing"},"status":{"type":"string","enum":["none","draft","ready","rendering","rendered"],"description":"The day's script: none = nothing written yet."},"marked_ready":{"type":"boolean","description":"The day is marked ready (the schedule's \"Mark ready and render without me\" is on). False: it waits as a draft for a person."},"render_queued":{"type":"boolean","description":"This call queued the day's audio."},"owner_emailed":{"type":"boolean","description":"This call emailed the show's owners that the day waits for them (once per day)."},"released":{"type":"boolean","description":"The claim was let go. False while the reviewer wants changes: the claim stays held for the rewrite."},"review":{"type":"object","description":"What the show's reviewer said about the steps the agent wrote; absent when the show doesn't review, or nothing of the agent's was there to read.","required":["verdict","edits"],"properties":{"verdict":{"type":"string","enum":["pass","revise"],"description":"revise: make the edits, save the steps again and call finish_day again."},"edits":{"type":"array","items":{"type":"object","required":["step","label","issue","suggestion","round","rounds_allowed"],"properties":{"step":{"type":"string"},"label":{"type":"string"},"issue":{"type":"string"},"suggestion":{"type":"string"},"round":{"type":"integer","description":"How many times this step's edits have come back."},"rounds_allowed":{"type":"integer","description":"The most they will; after that the step stands as written."}}}},"notes":{"type":"array","items":{"type":"string"}}}},"note":{"type":"string"}}},"WebhookEvent":{"type":"object","required":["id","type","created_at","account","data"],"properties":{"id":{"type":"string","description":"Stable: `evt_` + 24 hex. The same event never gets another id."},"type":{"type":"string","enum":["episode.published","downloads.threshold_crossed","import.finished","webhook.test"]},"created_at":{"type":"string","format":"date-time"},"account":{"type":"object","required":["id","slug"],"properties":{"id":{"type":"string"},"slug":{"type":"string"}}},"data":{"type":"object"}}},"EpisodePublishedData":{"type":"object","required":["source","show","episode"],"properties":{"source":{"type":"string","enum":["prefix","studio"],"description":"\"prefix\": found in a measured show's feed; \"studio\": released by the studio."},"show":{"type":"object","required":["id","title"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"feed_url":{"type":["string","null"]}}},"episode":{"type":"object","description":"For \"prefix\": guid, title, audio_url (the feed's enclosure) and published_at. For \"studio\": the same fields as GET /shows/{id}/episodes/{day}.","properties":{"guid":{"type":"string"},"day":{"type":"integer"},"title":{"type":"string"},"published_at":{"type":["string","null"]},"release_date":{"type":"string","format":"date"},"audio_url":{"type":["string","null"]},"page_url":{"type":"string"},"transcript_url":{"type":"string"},"duration_seconds":{"type":["integer","null"]},"size_bytes":{"type":["integer","null"]}}}}},"ThresholdCrossedData":{"type":"object","required":["scope","threshold","downloads","show","episode"],"properties":{"scope":{"type":"string","enum":["show","episode"]},"threshold":{"type":"integer","enum":[100,1000,10000,100000]},"downloads":{"type":"integer","description":"Counted downloads when the check ran (at least the threshold)."},"show":{"type":"object","required":["id","title"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"slug":{"type":"string"},"feed_url":{"type":["string","null"]}}},"episode":{"oneOf":[{"type":"null"},{"type":"object","properties":{"id":{"type":"integer"},"guid":{"type":"string"},"title":{"type":"string"}}}]}}},"ImportFinishedData":{"type":"object","required":["import"],"properties":{"import":{"type":"object","properties":{"id":{"type":"integer"},"show":{"type":"string","description":"The show's name as given at import."},"source":{"type":"string"},"filename":{"type":"string"},"rows":{"type":"integer"},"downloads":{"type":"integer"},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"saved_at":{"type":"string","format":"date-time"}}}}},"TestEventData":{"type":"object","properties":{"message":{"type":"string"},"endpoint_id":{"type":"string"}}},"Me":{"type":"object","required":["account","key"],"properties":{"account":{"type":"object","required":["id","slug","name","plan","status"],"properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"plan":{"type":"string"},"status":{"type":"string","enum":["active","suspended"]}}},"key":{"type":"object","required":["name","prefix","scopes"],"properties":{"name":{"type":"string"},"prefix":{"type":"string","description":"The key's first characters, as the API keys page shows them."},"scopes":{"type":"array","items":{"type":"string","enum":["read","write","analytics"]}}}}}}}}}