{"openapi":"3.1.0","info":{"title":"BlastCP API","version":"1.0.0","description":"Every BlastCP MCP tool as a POST endpoint. The request body is the tool's arguments; the rules (approval, email confirm tokens, never retrying an ambiguous publish) are the same as over MCP. Make a key at https://blastcp.com/app/api-keys; the guide is at https://blastcp.com/docs/api."},"servers":[{"url":"https://blastcp.com/api/v1"}],"security":[{"bearer":[]}],"paths":{"/tools/get_started":{"post":{"operationId":"get_started","summary":"Call this ONCE when you first connect to BlastCP in a conversation, before any other BlastCP tool.","description":"Call this ONCE when you first connect to BlastCP in a conversation, before any other BlastCP tool. Returns what BlastCP is, the user's workspaces and connected channels, and the best first move. Do NOT re-call it later in the same conversation.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/whoami":{"post":{"operationId":"whoami","summary":"Return the authenticated user's Supabase user_id and email.","description":"Return the authenticated user's Supabase user_id and email. Use this to verify the bearer is wired up correctly.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_skills":{"post":{"operationId":"list_skills","summary":"This property's writing library: the always-applied VOICE plus every post-type playbook, with a one-line description …","description":"This property's writing library: the always-applied VOICE plus every post-type playbook, with a one-line description each (no bodies — call get_skill for those). CALL THIS BEFORE DRAFTING ANY POST. A property's voice is how its author actually writes; drafting without reading it produces posts they will rewrite. The first call on a property seeds the starter library automatically, so this never comes back empty. Skills with enabled=false are ones the author turned off — list them, don't use them.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"kind":{"type":"string","enum":["voice","post_type"],"description":"Filter to one kind. Omit for the whole library."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_skill":{"post":{"operationId":"get_skill","summary":"One skill in full, including its body — the actual instructions.","description":"One skill in full, including its body — the actual instructions. Normal drafting flow: get_skill on the voice (kind \"voice\" in list_skills), get_skill on whichever post type fits what the user is writing, then draft. APPLY BOTH, and when they conflict THE VOICE WINS: a post-type playbook describes a shape, the voice describes a person, and the person is the one whose feed this is. If no post type fits, the voice alone is enough.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"slug":{"type":"string","description":"The skill's slug, as returned by list_skills (e.g. \"link-share\", \"house-voice\")."}},"required":["property_slug","slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/update_skill":{"post":{"operationId":"update_skill","summary":"Edit a skill — most often the VOICE, in response to what the user tells you about their writing.","description":"Edit a skill — most often the VOICE, in response to what the user tells you about their writing. When someone says \"I never use emoji\", \"stop opening with a question\", \"I'm a solo founder, not a we\", or rewrites your draft in a way that reveals a rule, that belongs in the voice so it holds for every future post instead of only this one. Read the current body with get_skill first and send back the WHOLE edited body — `body` replaces, it does not append. Tell the user what you changed. Omitted fields keep their current value. The voice can't be disabled (it applies to every post).","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"slug":{"type":"string","description":"The skill's slug, as returned by list_skills (e.g. \"link-share\", \"house-voice\")."},"name":{"type":"string","description":"New display name. Max 60 characters."},"description":{"type":"string","description":"New one-line summary, shown in list_skills. Max 200 characters."},"body":{"type":"string","description":"The FULL replacement body, in markdown. Replaces the existing body outright — include everything you mean to keep."},"enabled":{"type":"boolean","description":"Turn a post-type skill off without deleting it. Refused for the voice."},"new_slug":{"type":"string","description":"Rename the skill's slug. Note: renaming a starter skill means reset_skill can no longer restore it, because the default is addressed by slug."}},"required":["property_slug","slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/create_skill":{"post":{"operationId":"create_skill","summary":"Add a new post-type playbook to this property — a shape of post the starter library doesn't cover (a recurring series…","description":"Add a new post-type playbook to this property — a shape of post the starter library doesn't cover (a recurring series, a customer story, a release note, whatever this author actually writes). Write the body the way the starter skills are written: when to use it, the shape in numbered steps, hard rules, and one worked example. Call get_skill on an existing post type first and match its structure. Don't create a second voice — a property has exactly one; edit it with update_skill.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"name":{"type":"string","description":"Display name, e.g. \"Release note\". Max 60 characters."},"description":{"type":"string","description":"One line on when to reach for it — this is what list_skills shows. Max 200 characters."},"body":{"type":"string","description":"The playbook itself, in markdown."},"slug":{"type":"string","description":"Optional slug. Derived from the name when omitted."}},"required":["property_slug","name","body"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/delete_skill":{"post":{"operationId":"delete_skill","summary":"Remove a post-type skill from this property for good.","description":"Remove a post-type skill from this property for good. Prefer update_skill with enabled=false unless the user clearly wants it gone — a disabled skill is recoverable in one click and a deleted one is not. Deleted starter skills do NOT come back on their own. The voice can't be deleted.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"slug":{"type":"string","description":"The skill's slug, as returned by list_skills (e.g. \"link-share\", \"house-voice\")."}},"required":["property_slug","slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/reset_skill":{"post":{"operationId":"reset_skill","summary":"Restore a starter skill to the text BlastCP ships — name, description and body.","description":"Restore a starter skill to the text BlastCP ships — name, description and body. Use it when an edit made a skill worse and the user wants the original back. Only works on skills still marked source=\"default\" under their original slug; a custom or renamed skill has no default to return to. Whether it's on and where it sits in the list are left alone.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"slug":{"type":"string","description":"The skill's slug, as returned by list_skills (e.g. \"link-share\", \"house-voice\")."}},"required":["property_slug","slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_channels":{"post":{"operationId":"list_channels","summary":"Every publishing channel this workspace has connected: platform, display name, connection status, and token expiry.","description":"Every publishing channel this workspace has connected: platform, display name, connection status, and token expiry. Tokens and session cookies are never returned. Includes connect_url — connecting or reconnecting a channel is a human action in the app, not something this tool does. LinkedIn self-serve tokens last 60 days with no refresh, and a Substack session can end at any time, so a channel can go 'expired' on its own — check status/usable rather than assuming create_post can auto-pick one.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/create_post":{"post":{"operationId":"create_post","summary":"Create a post, optionally promoting a link (any URL — its card is auto-filled from the link's OpenGraph tags unless y…","description":"Create a post, optionally promoting a link (any URL — its card is auto-filled from the link's OpenGraph tags unless you set link_title/link_description/link_image_url yourself), and — with intent — schedule or publish it in the same call. intent \"draft\" (default) only saves it; \"schedule\" approves it for scheduled_for (required); \"queue\" approves it into the posting schedule's next free slot; \"publish_now\" approves, claims and publishes synchronously and returns the outcome. For platform=\"linkedin\", \"substack\", \"facebook\", \"instagram\", \"threads\", \"youtube\", \"tiktok\", \"gmail\" or \"resend\" with channel_id omitted: exactly one usable connected channel of that platform is used automatically; none creates a MANUAL post instead (you paste it in yourself — BlastCP never posts it, and any intent is ignored); more than one is an error listing them so you can pass channel_id (with several Facebook Pages or Instagram accounts connected this is how one is chosen). \"other\" is always manual. A LinkedIn API post publishes to LinkedIn; a Substack API post becomes a DRAFT in Substack, and the author publishes it from Substack (BlastCP never publishes or emails a newsletter). Returns the post, review_url, and next_step. If the intent step fails (no usable channel, or this workspace requires a person to approve), the draft is kept and the error carries its post_id — fix the cause, then schedule_post or publish_post, or send a person to review_url. A manual post needs you to paste the link in wherever you publish it, then call mark_post_published. platform \"youtube\" uploads ONE video: `title` is required (the video's title, at most 100 characters), and `parts` must be a single part whose `media` is exactly one video (mp4/mov/webm up to 1GB — upload it with create_media_upload, PUT the bytes, then complete_media_upload) plus, optionally, one JPEG or PNG used as the thumbnail, and one SRT/VTT caption file (set youtube.caption_language). The part's body (and its link_url, on its own line) becomes the description; neither title nor description may contain < or >. Prefer intent \"schedule\" or \"queue\" over \"publish_now\": an upload can take minutes, and a video too big to finish inside one tool call is left scheduled for now — the next publish run, within five minutes, sends it (the returned status says \"scheduled\"). `youtube` sets privacy, tags, category, made-for-kids and a playlist (list_youtube_options lists the channel's playlists and categories); `first_comment` is posted from the channel once the video is up. YouTube may lock an upload from an unaudited project to Private — the published post's last_error says so when it happens. platform \"instagram\" posts to an Instagram professional account as a photo, a carousel, a Reel or a story — always a single part, its `media` uploaded with create_media_upload → PUT → complete_media_upload. One image is a photo; 2–10 images and videos are a carousel; one video (plus, optionally, one image as its cover) is a Reel; set instagram.format to \"story\" for one image or video as a story (or \"feed\" for a carousel of one video and one image). Images: JPEG, PNG or WebP (BlastCP sends Meta a JPEG), at most 8MB, and in a photo or carousel between 4:5 and 1.91:1 — a 9:16 image only fits a story; a media item's `alt` becomes the image's alt text. Videos: mp4 or mov, not webm — a Reel 3 seconds to 15 minutes and at most 300MB, a story or carousel video 3 to 60 seconds and at most 100MB. The part's body is the caption, exactly (at most 2,200 characters, 30 hashtags, 20 @-mentions); a story has no caption, so its body isn't sent. link_url is NOT added to it, because Instagram renders no link in a caption clickable — write \"link in bio\" in the body if the post should point somewhere. title is ignored. get_post (and create_post/update_post) returns `instagram`: the saved format (`current`) and, for each choice, what this media makes or why it can't (`options`). Prefer intent \"schedule\" or \"queue\" over \"publish_now\" for video: Instagram processes it before it posts, which can take a minute or two. platform \"tiktok\" sends ONE video to the TikTok account's DRAFTS (TikTok's Upload mode): `parts` must be a single part whose `media` is exactly one video (mp4/mov/webm, at most 10 minutes, up to 1GB — upload it with create_media_upload, PUT the bytes, then complete_media_upload) and nothing else. TikTok takes NO caption from apps in this mode: the part's body (plus link_url, on its own line) is kept as the caption for the user to copy, at most 2,200 characters. title is ignored. \"published\" means the video is in the user's TikTok inbox; they tap the notification in the TikTok app to finish and post it — say so when you report it. If TikTok is still processing the video, the post stays \"publishing\" until TikTok confirms (get_post a few minutes later) — never publish it again. TikTok allows five such drafts per account in 24 hours. EVERY TikTok post comes back with approve_url: ALWAYS give it to the user, as a link, with the post. It opens on their phone (signed in) at TikTok's own posting screen: they choose who can see it, comments/duet/stitch and the branded-content disclosure, see the video and caption, and tap Approve, which keeps the post's time (or posts now if that has passed). TikTok requires a PERSON to make those choices and consent, so you can't approve it yourself and no tool argument sets them. A post left in drafts mode goes to the user's TikTok drafts at its time; a direct post still unapproved at its time is held (status awaiting_human) and the property's Slack gets the link. Prefer intent \"schedule\" or \"queue\" over \"publish_now\": the upload and TikTok's processing can take minutes. platform \"gmail\" SENDS an email from the user's own connected Gmail — \"send Steve an email\": `title` is the subject (required), the body is the email (markdown; attached images go inline, a video becomes a link, and a link_url closes it as a card), and `gmail.to` / `cc` / `bcc` are plain addresses (at least one; at most 500). Ask for an address you don't have — never guess one. THE USER CONFIRMS EVERY EMAIL: an intent other than draft (and schedule_post / publish_post) sends nothing the first time — it returns the exact email and a confirm_token. Show the user who it's from, every recipient, the subject and the text, ask, and only after their yes call publish_post or schedule_post with that confirm_token. If Gmail doesn't answer a send, the post fails with a note to check Sent — it is never sent twice. platform \"resend\" emails from the sender chosen at connect, with `title` as the subject (required), to one of two audiences (`resend`; list_resend_options lists the account's segments and a segment's people): a SEGMENT (resend.segment_id, else the channel's own) becomes a DRAFT broadcast with Resend's unsubscribe link — BlastCP never sends a broadcast, \"published\" means it's in their Resend broadcasts for them to send, so say so; or SPECIFIC PEOPLE (resend.to, at most 100) each get their own copy, SENT when it publishes, never twice — confirmed by the user first exactly as for gmail, and never with someone list_resend_options shows as unsubscribed. The result carries `preview`: the exact string each part publishes as, the fold (LinkedIn's “see more” cut), how the attachments and the link resolve against each other, and `blocked_reason` when the platform will refuse the post. READ IT BEFORE SENDING: `body` is markdown, and LinkedIn renders none — **bold** publishes as four asterisks and an inline ![image](url) publishes as a URL and no picture. `preview.notes` names anything that was flattened or dropped. A CHAIN is several posts replying to each other (a thread) — that's `parts`, one entry per post. A CAROUSEL is ONE post carrying several images — that's ONE entry with several `media`. They are not interchangeable: three images in one part is a single post with three pictures; three parts is three posts. Don't use `parts` for a single post — send `body` and `link_url` as usual. If a post with the same video or the same title and text went to the same account in the last 30 minutes (scheduled, publishing, published or failed), a call that would send this one creates nothing and returns created: false with duplicate_of — retry that post with publish_post, or, once the user confirms a second post is meant, call again with allow_duplicate: true. A draft is still created, with a note.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"parts":{"type":"array","description":"Optional. The post as an ordered CHAIN: parts[0] is the post itself and 1, 2, … are replies to the one before, published in this order. A CHAIN is several posts replying to each other (a thread) — that's `parts`, one entry per post. A CAROUSEL is ONE post carrying several images — that's ONE entry with several `media`. They are not interchangeable: three images in one part is a single post with three pictures; three parts is three posts. Don't use `parts` for a single post — send `body` and `link_url` as usual. Sending `parts` replaces the post's whole chain, so always send every part you want to keep — and it can't be combined with body/link_url/link_title/link_description/link_image_url, which are parts[0]'s fields under another name. A part that is already live on the platform can't be edited or removed; send it back unchanged.","items":{"type":"object","properties":{"index":{"type":"number","description":"Optional cross-check: must equal this part's position in the array (0, 1, 2… with no gaps). Position is what counts; this only catches a mistake."},"body":{"type":"string","description":"This part's text. Each part is its own post on the platform, so a platform's length limit applies per part. May be empty ONLY if this part has media."},"link_url":{"type":"string","description":"A link this part promotes; its card is auto-filled from OpenGraph. A chain often links only in its last part."},"link_title":{"type":"string","description":"Override this part's link card title."},"link_description":{"type":"string","description":"Override this part's link card description."},"link_image_url":{"type":"string","description":"Override this part's link card image."},"media":{"type":"array","description":"Images or video on THIS part, in order — several here is a carousel. Upload with upload_media first (without post_id) and use the ids it returns. One file can only be attached once per post; upload it again to reuse it on another part.","items":{"type":"object","properties":{"media_id":{"type":"string","description":"The id from upload_media."},"alt":{"type":"string","description":"Alt text for this image, on this post. Write it — it is what screen readers read."}},"required":["media_id"],"additionalProperties":false}}},"additionalProperties":false}},"platform":{"type":"string","enum":["linkedin","substack","facebook","instagram","threads","youtube","tiktok","gmail","resend","slack","other"],"description":"Where this post is going. linkedin, substack, facebook (a Page — never a personal profile), instagram (a photo, carousel, Reel or story — see the tool description), threads, youtube (one video), tiktok (one video, to the account's drafts), gmail (an email sent from the user's Gmail) and resend (a draft broadcast to a list) — see the tool description — can go through a connected channel (see channel_id; Substack becomes a draft); other is always manual — BlastCP mints nothing and you paste the link in yourself."},"body":{"type":"string","description":"The post text. Required unless you send `parts` instead (whose parts[0] is this same field). LinkedIn: exactly as published, capped at 3000 characters. Substack: markdown, optionally a whole newsletter file (# Title on line 1, *Subtitle: …*, body after the first ---)."},"link_url":{"type":"string","description":"The URL this post promotes. Optional — a post with nothing to promote can omit it."},"link_title":{"type":"string","description":"Override the link card's title. Left blank, it's read from the URL's OpenGraph tags."},"link_description":{"type":"string","description":"Override the link card's description. Left blank, it's read from OpenGraph."},"link_image_url":{"type":"string","description":"Override the link card's image. Left blank, it's read from OpenGraph."},"title":{"type":"string","description":"Optional, except for YouTube, where it is REQUIRED and is the video's title (at most 100 characters, no < or >), and gmail/resend, where it is REQUIRED and is the email's subject. Substack: the newsletter headline (overrides a # Title line in the body). Shown in the post list either way — elsewhere it is the internal label, not the link card title."},"first_comment":{"type":"string","description":"LinkedIn and YouTube only (other platforms ignore it): a comment posted right after the post goes live — on LinkedIn under the post, on YouTube as a top-level comment from the channel. YouTube's API can't pin it (pin it in YouTube Studio), and YouTube allows no comments on a private or made-for-kids video, so it is skipped there with a note. Empty string clears it."},"youtube":{"type":"object","description":"platform \"youtube\" only: the video's own settings. Anything left out uses the default (public, category \"27\" Education, not made for kids, no synthetic-media disclosure, no tags, no playlist). On update_post this MERGES into what the post already has, and null clears one setting back to its default. Changing any of them is an edit, so an approved post goes back to draft.","properties":{"privacy":{"type":"string","enum":["public","unlisted","private"],"description":"public (default), unlisted or private."},"tags":{"type":"array","items":{"type":"string"},"description":"Search tags. At most 500 characters as YouTube counts them: a comma between each, and quotes around any tag with a space. No <, > or commas inside a tag."},"category_id":{"type":"string","description":"A YouTube category id, e.g. \"27\" Education or \"10\" Music — list_youtube_options lists the assignable ones."},"made_for_kids":{"type":"boolean","description":"YouTube's made-for-kids declaration. True turns comments off, so no first comment is posted."},"playlist_id":{"type":"string","description":"Add the video to this playlist after it uploads (list_youtube_options lists the channel's). Best-effort: a failure is a note on the published post, never a failed publish."},"contains_synthetic_media":{"type":"boolean","description":"Disclose realistic altered or synthetic content (YouTube's containsSyntheticMedia)."},"caption_language":{"type":"string","description":"BCP-47 language of the attached caption file, e.g. \"en\". Required when the post carries one."}}},"gmail":{"type":"object","description":"platform \"gmail\" only: who the email goes to. The post's `title` is the subject (required) and its body the email (markdown; images inline, a video as a link). Publishing SENDS it from the connected Gmail — only after the user confirms the exact email (schedule_post / publish_post return it with a confirm_token). On update_post each field you pass replaces that field; changing any of them is an edit, so an approved post goes back to draft.","properties":{"to":{"type":"array","items":{"type":"string"},"description":"Plain addresses (no display names), e.g. [\"steve@example.com\"]. An email needs at least one recipient across to, cc and bcc."},"cc":{"type":"array","items":{"type":"string"},"description":"Plain addresses to copy."},"bcc":{"type":"array","items":{"type":"string"},"description":"Plain addresses to blind-copy."}}},"resend":{"type":"object","description":"platform \"resend\" only: who gets it. A segment (segment_id — list_resend_options lists them; omitted, the channel's own from connect) becomes a DRAFT broadcast the user sends from Resend. Specific people (to) each get their own copy, SENT from the channel's sender when the post publishes — it can't be unsent, so read the list back first. to wins when both are set; pass to: [] to go back to a segment. Changing either is an edit.","properties":{"segment_id":{"type":"string","description":"A segment id from list_resend_options. Empty string: the channel's own segment."},"to":{"type":"array","items":{"type":"string"},"description":"Plain addresses, at most 100, one copy each (list_resend_options can list a segment's contacts)."}}},"instagram":{"type":"object","description":"platform \"instagram\" only: what kind of Instagram post this is. Left out, it follows the media: one video (with or without a cover image) is a Reel, anything else is a feed post. Changing it is an edit, so an approved post goes back to draft.","properties":{"format":{"type":"string","enum":["auto","reel","feed","story"],"description":"\"feed\": one image (a photo) or 2–10 images and videos (a carousel). \"reel\": one video, plus optionally a cover image. \"story\": one image or one video; no caption, gone after 24 hours. \"auto\" (the default) follows the media."}}},"linkedin":{"type":"object","description":"platform \"linkedin\" only: who the post @mentions inside its `commentary`. The body is plain markdown — write `@Acme` in the text, and the mapping here turns the FIRST `@Acme` into LinkedIn's `@[Acme](urn:li:organization:ID)` form; every other `@` is escaped as today. Other platforms read the body untouched. People mentions are limited to the workspace's connected LinkedIn channels (use list_mentions); companies are admin-URL / org-id / urn, one of the workspace's saved `linkedin_mentions` rows, or a new one (add_mention). At most 20 per post. On update_post this MERGES into what the post has, and null drops a mention by URN; an empty array clears them all. Changing any of them is an edit, so an approved post goes back to draft.","properties":{"mentions":{"type":"array","description":"The post's @mentions: { label, urn } pairs (the label is what the author writes as `@Label`, the urn is LinkedIn's `urn:li:person:ID` or `urn:li:organization:ID`). At most 20. A `@Label` not in the body fails at schedule_post with the missing name.","items":{"type":"object","properties":{"label":{"type":"string","description":"1–80 characters — letters, digits, spaces and `.,'&-`."},"urn":{"type":"string","description":"`urn:li:person:ID` or `urn:li:organization:ID`. People URNs must be a channel THIS app holds."}},"required":["label","urn"]}}}},"threads":{"type":"object","description":"platform \"threads\" only: the topic and location tags Threads adds to the root container. `topic_tag` is one free-text tag (1–50 characters, no '.' or '&', a leading '#' stripped); `location_id` is the location Meta returned from search_threads_locations (gated on the `threads_location_tagging` scope — the channel must have been connected with that scope, otherwise schedule_post refuses with a reconnect message). `location_name` is display only — set it to the same string the search returned so the picker can name the picked place. On update_post each field you pass replaces that field, and null clears it.","properties":{"topic_tag":{"type":"string","description":"1–50 characters, no '.' or '&', a leading '#' is stripped."},"location_id":{"type":"string","description":"A location id from search_threads_locations. Empty string clears it."},"location_name":{"type":"string","description":"The display name that came with `location_id` (search_threads_locations). Empty string clears it."}}},"channel_id":{"type":"string","description":"Publish through this specific connected channel (id from list_channels) — this is how you choose WHICH Facebook Page or Instagram account. Omit to let create_post pick automatically — see the tool description for the rules."},"scheduled_for":{"type":"string","description":"Publish time, ISO 8601. With intent \"schedule\" it's when the post goes out; with \"draft\" it's stored as the proposed time schedule_post uses by default. Ignored by \"queue\" and \"publish_now\"."},"intent":{"type":"string","enum":["draft","schedule","queue","publish_now"],"description":"What to do once the post exists: draft (default, save only), schedule (at scheduled_for), queue (the posting schedule's next free slot), publish_now (synchronous). You are recorded as the approver — the post goes out under the account this token belongs to, so read the body back before choosing anything but draft."},"blast_id":{"type":"string","description":"A Pipeline blast (add_blast, list_blasts) this post is made from: the post joins it, and its board card follows the post. Omit and the post is a blast of its own."},"allow_duplicate":{"type":"boolean","description":"Make the post even though the same content went to the same account in the last 30 minutes. Only after the user confirms they want a second post — it publishes a second copy."}},"required":["platform","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/schedule_post":{"post":{"operationId":"schedule_post","summary":"Approve an API post (any platform through a connected channel) and schedule it.","description":"Approve an API post (any platform through a connected channel) and schedule it. TikTok: EVERY TikTok post comes back with approve_url: ALWAYS give it to the user, as a link, with the post. It opens on their phone (signed in) at TikTok's own posting screen: they choose who can see it, comments/duet/stitch and the branded-content disclosure, see the video and caption, and tap Approve, which keeps the post's time (or posts now if that has passed). TikTok requires a PERSON to make those choices and consent, so you can't approve it yourself and no tool argument sets them. A post left in drafts mode goes to the user's TikTok drafts at its time; a direct post still unapproved at its time is held (status awaiting_human) and the property's Slack gets the link. Pass scheduled_for (ISO 8601) for an exact time, or queue: true for the posting schedule's next free slot (set_posting_schedule / Settings → Schedule; a clear error if no times are set). With neither, the post's own proposed scheduled_for is used. Also the way to MOVE a scheduled post: a new time re-approves in one step. The publish cron sends it within 5 minutes of the time — LinkedIn publishes; Gmail sends the email; Substack and Resend get a DRAFT the author sends themselves. A manual post becomes a reminder (awaiting_human at its time). Refuses an inactive channel, any status but draft/scheduled/failed, and a workspace that requires a person to approve (the error carries review_url). You are recorded as the approver: the post goes out under the account this token belongs to. A post that SENDS email (gmail, or resend to specific people) takes two calls: the first returns the exact email and a confirm_token for the user to approve, and only a second call with that token schedules it.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."},"scheduled_for":{"type":"string","description":"When to publish, ISO 8601. Ignored when queue is true."},"queue":{"type":"boolean","description":"Take the posting schedule's next free slot instead of a time you pick."},"whole_set":{"type":"boolean","description":"Schedule every post in this post's SET (create_post_set, or copies made in the app), not just this one. With queue: true, drafts join the slot the set already holds (or take the next free one together). With scheduled_for, every unpublished post in the set moves to that time. Published and canceled posts are left alone."},"confirm_token":{"type":"string","description":"Only for a post that SENDS an email (gmail, or resend to specific people): the confirm_token from this tool's first answer, AFTER the user has seen that exact email and said yes. Without it nothing is sent; you get the email and a token to show them. Never pass one the user hasn't confirmed."}},"required":["post_id","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/publish_post":{"post":{"operationId":"publish_post","summary":"Approve an API post and publish it NOW, synchronously: a LinkedIn post is live before this returns; a TikTok direct p…","description":"Approve an API post and publish it NOW, synchronously: a LinkedIn post is live before this returns; a TikTok direct post the user hasn't approved is NOT sent (published: false; give them approve_url); a Gmail email is sent; a Substack post or Resend broadcast is created as a DRAFT. Returns the post as it stands afterwards — published (with external_url), failed (with last_error), or scheduled for a retry after a transient platform error. Never re-sends on an ambiguous outcome (LinkedIn has no idempotency key; a double post can't be undone) — a post stuck in publishing is reported, not retried. Same refusals as schedule_post. You are recorded as the approver. A YouTube upload can take minutes, longer than some clients wait — prefer schedule_post for YouTube. An email (gmail, or resend to specific people) is never sent on the first call: it returns the email and a confirm_token; show the user, and call again with the token only after they say yes.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."},"confirm_token":{"type":"string","description":"Only for a post that SENDS an email (gmail, or resend to specific people): the confirm_token from this tool's first answer, AFTER the user has seen that exact email and said yes. Without it nothing is sent; you get the email and a token to show them. Never pass one the user hasn't confirmed."}},"required":["post_id","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_posts":{"post":{"operationId":"list_posts","summary":"List posts in this workspace, newest first: platform, status, link, and schedule.","description":"List posts in this workspace, newest first: platform, status, link, and schedule. Filter by status or link_url. Archived posts (archive_post) are left out unless `archived` asks for them. Call get_post on any one for the full detail.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"status":{"type":"string","enum":["draft","scheduled","publishing","awaiting_human","published","failed","canceled"],"description":"Only posts in this status."},"link_url":{"type":"string","description":"Only posts promoting this link."},"archived":{"type":"string","enum":["exclude","include","only"],"description":"Archived posts: left out (default), mixed in, or only them."},"limit":{"type":"number","description":"Max posts to return (default 100, capped at 500)."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_post":{"post":{"operationId":"get_post","summary":"One post in full: body, link card, schedule, status, review_url (and approve_url for a TikTok post: give it to the us…","description":"One post in full: body, link card, schedule, status, review_url (and approve_url for a TikTok post: give it to the user — EVERY TikTok post comes back with approve_url: ALWAYS give it to the user, as a link, with the post. It opens on their phone (signed in) at TikTok's own posting screen: they choose who can see it, comments/duet/stitch and the branded-content disclosure, see the video and caption, and tap Approve, which keeps the post's time (or posts now if that has passed). TikTok requires a PERSON to make those choices and consent, so you can't approve it yourself and no tool argument sets them. A post left in drafts mode goes to the user's TikTok drafts at its time; a direct post still unapproved at its time is held (status awaiting_human) and the property's Slack gets the link.), version (the latest saved version's number, or null if none is recorded yet) and approved_version (the newest version labeled \"approved\", once the post has actually been approved — null otherwise). Use list_post_versions / get_post_version / restore_post_version for the history behind those numbers. Also carries lint: the current version's voice-lint redline (quote/replacement/rule/severity/why per edit), or null if it hasn't been checked yet — apply these with update_post before scheduling. And editor: the Editor's verdict on the whole post against the property's post types (verdict fits/reshape/no_fit, reads_as, should_be, advice, reasons), or null. On reshape, get_skill{ should_be } and rewrite the post in that shape before asking for approval. The result carries `preview`: the exact string each part publishes as, the fold (LinkedIn's “see more” cut), how the attachments and the link resolve against each other, and `blocked_reason` when the platform will refuse the post. READ IT BEFORE SENDING: `body` is markdown, and LinkedIn renders none — **bold** publishes as four asterisks and an inline ![image](url) publishes as a URL and no picture. `preview.notes` names anything that was flattened or dropped.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."}},"required":["post_id","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/cancel_post":{"post":{"operationId":"cancel_post","summary":"Cancel a draft, scheduled, or failed post.","description":"Cancel a draft, scheduled, or failed post. A published post can't be canceled (it already went out), and a post mid-publish can't be canceled either — check back once it lands as published or failed.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."}},"required":["post_id","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/connect_channel":{"post":{"operationId":"connect_channel","summary":"Get a link that connects a channel (an account BlastCP posts as) to a property, for the user to open in their browser.","description":"Get a link that connects a channel (an account BlastCP posts as) to a property, for the user to open in their browser. It goes straight to the platform's own consent screen and ends on a BlastCP page that says whether it worked and to come back to you; the user never has to find their way around BlastCP. Pass `platform` for one link, or omit it for a link per platform this server can connect, each saying what is already connected. Facebook and Instagram add one BlastCP screen in between to tick which Pages or accounts to use. Substack and Resend can't be connected by a link (a pasted cookie or key): they come back under `by_hand` with the Channels page to send the user to. A link is reusable and reconnecting an account refreshes it, so it is also the fix for an expired or under-permissioned channel. When the user says they're done, call list_channels to confirm.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"platform":{"type":"string","enum":["linkedin","facebook","instagram","threads","youtube","tiktok","gmail","substack","resend"],"description":"The platform to connect. Omit for every platform this server can connect."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/create_property":{"post":{"operationId":"create_property","summary":"Add a property to a workspace: one brand or presence the user posts as (a person, a company, a show), which owns its …","description":"Add a property to a workspace: one brand or presence the user posts as (a person, a company, a show), which owns its own channels, queue, schedule and writing library (seeded with a starter voice and playbooks). A new workspace has none, so a user who just signed up needs one before anything can be connected or posted: ask what they post as and pass that as `name`. Returns the property's slug — the property_slug every other tool takes. Refuses a slug the workspace already has.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"name":{"type":"string","description":"What the user calls this brand, e.g. \"Groove 'n' Fill\"."},"slug":{"type":"string","description":"URL slug. Optional: derived from name (lowercase, hyphens)."}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/archive_post":{"post":{"operationId":"archive_post","summary":"Archive a post: it drops out of the Queue, Drafts, History and Calendar and out of list_posts (pass archived: \"only\" …","description":"Archive a post: it drops out of the Queue, Drafts, History and Calendar and out of list_posts (pass archived: \"only\" or \"include\" there to see it). Nothing is deleted, here or on the platform — a published post stays published wherever it went. archived: false brings it back. A scheduled post can't be archived (cancel_post first) and neither can one mid-publish; an archived post can't be scheduled until it's unarchived. When every post of a blast is archived, the blast leaves the Pipeline board for its Archived drawer, and unarchiving one brings the blast back.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) the post belongs to."},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."},"archived":{"type":"boolean","description":"true (the default) archives it; false unarchives it."}},"required":["post_id","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/pull_substack_draft":{"post":{"operationId":"pull_substack_draft","summary":"Read back a Substack DRAFT that BlastCP created, as it stands now, after the author edited it in Substack's editor: i…","description":"Read back a Substack DRAFT that BlastCP created, as it stands now, after the author edited it in Substack's editor: its title, subtitle and body as markdown (images as ![alt](src) with the caption on the next line in *italics*). Use it when the author says they changed the draft in Substack and wants those changes here. It reads only: nothing in Substack or in the BlastCP post changes. To make the post match, show the author what changed and save it with update_post. The post must be a Substack post that has been sent (it has an external_url); a draft the author already published is still readable until they delete it.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."}},"required":["post_id","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/update_post":{"post":{"operationId":"update_post","summary":"Edit a draft, scheduled, or failed post: body, title, link, attachments, or proposed time.","description":"Edit a draft, scheduled, or failed post: body, title, link, attachments, or proposed time. IMPORTANT: editing an already-scheduled API post sends it back to draft — approval was of those specific words and pictures at that time, so any change revokes it; call schedule_post or publish_post to approve it again. To only MOVE a scheduled post, call schedule_post with the new time instead (it re-approves in one step). A published, publishing, or canceled post can't be edited. Pass `media` to reorder, remove or re-add attachments (it replaces the list). Pass `parts` to replace the post's whole chain (it can't be combined with body/link_*, which are parts[0] under another name, or with `media`); a part that is already live on the platform can't be edited or removed, and the error names which ones those are. A person may be editing the same post in the app: send `base_version` (get_post's `version`) and a stale edit is refused instead of overwriting theirs. The result's `version` is the one to send next. On a YouTube post, `youtube` merges settings (null clears one), and the result's `warnings` say what would still stop it at schedule_post or what its channel isn't allowed to do yet. On an Instagram post, `instagram.format` switches between feed, reel and story, and `warnings` say what the media still needs. The result carries `preview`: the exact string each part publishes as, the fold (LinkedIn's “see more” cut), how the attachments and the link resolve against each other, and `blocked_reason` when the platform will refuse the post. READ IT BEFORE SENDING: `body` is markdown, and LinkedIn renders none — **bold** publishes as four asterisks and an inline ![image](url) publishes as a URL and no picture. `preview.notes` names anything that was flattened or dropped.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."},"base_version":{"type":"integer","minimum":0,"description":"Optional, recommended whenever someone else may be editing this post too (a person in the app or the post card). The `version` you last read from get_post (or from update_post's result). If the post has been saved since, NOTHING is saved and the error names the current version: call get_post, merge your change into what's there now, and retry with that number. Use 0 for a post with no version yet (get_post shows version: null). Omit it and the save always goes through, overwriting whatever is there."},"parts":{"type":"array","description":"Optional. The post as an ordered CHAIN: parts[0] is the post itself and 1, 2, … are replies to the one before, published in this order. A CHAIN is several posts replying to each other (a thread) — that's `parts`, one entry per post. A CAROUSEL is ONE post carrying several images — that's ONE entry with several `media`. They are not interchangeable: three images in one part is a single post with three pictures; three parts is three posts. Don't use `parts` for a single post — send `body` and `link_url` as usual. Sending `parts` replaces the post's whole chain, so always send every part you want to keep — and it can't be combined with body/link_url/link_title/link_description/link_image_url, which are parts[0]'s fields under another name. A part that is already live on the platform can't be edited or removed; send it back unchanged.","items":{"type":"object","properties":{"index":{"type":"number","description":"Optional cross-check: must equal this part's position in the array (0, 1, 2… with no gaps). Position is what counts; this only catches a mistake."},"body":{"type":"string","description":"This part's text. Each part is its own post on the platform, so a platform's length limit applies per part. May be empty ONLY if this part has media."},"link_url":{"type":"string","description":"A link this part promotes; its card is auto-filled from OpenGraph. A chain often links only in its last part."},"link_title":{"type":"string","description":"Override this part's link card title."},"link_description":{"type":"string","description":"Override this part's link card description."},"link_image_url":{"type":"string","description":"Override this part's link card image."},"media":{"type":"array","description":"Images or video on THIS part, in order — several here is a carousel. Upload with upload_media first (without post_id) and use the ids it returns. One file can only be attached once per post; upload it again to reuse it on another part.","items":{"type":"object","properties":{"media_id":{"type":"string","description":"The id from upload_media."},"alt":{"type":"string","description":"Alt text for this image, on this post. Write it — it is what screen readers read."}},"required":["media_id"],"additionalProperties":false}}},"additionalProperties":false}},"body":{"type":"string","description":"Replace the post text."},"title":{"type":"string","description":"Replace the title: a YouTube video's title or an email's subject (required there), elsewhere an internal label. Empty string clears it."},"first_comment":{"type":"string","description":"LinkedIn and YouTube only (other platforms ignore it): a comment posted right after the post goes live — on LinkedIn under the post, on YouTube as a top-level comment from the channel. YouTube's API can't pin it (pin it in YouTube Studio), and YouTube allows no comments on a private or made-for-kids video, so it is skipped there with a note. Empty string clears it."},"youtube":{"type":"object","description":"platform \"youtube\" only: the video's own settings. Anything left out uses the default (public, category \"27\" Education, not made for kids, no synthetic-media disclosure, no tags, no playlist). On update_post this MERGES into what the post already has, and null clears one setting back to its default. Changing any of them is an edit, so an approved post goes back to draft.","properties":{"privacy":{"type":"string","enum":["public","unlisted","private"],"description":"public (default), unlisted or private."},"tags":{"type":"array","items":{"type":"string"},"description":"Search tags. At most 500 characters as YouTube counts them: a comma between each, and quotes around any tag with a space. No <, > or commas inside a tag."},"category_id":{"type":"string","description":"A YouTube category id, e.g. \"27\" Education or \"10\" Music — list_youtube_options lists the assignable ones."},"made_for_kids":{"type":"boolean","description":"YouTube's made-for-kids declaration. True turns comments off, so no first comment is posted."},"playlist_id":{"type":"string","description":"Add the video to this playlist after it uploads (list_youtube_options lists the channel's). Best-effort: a failure is a note on the published post, never a failed publish."},"contains_synthetic_media":{"type":"boolean","description":"Disclose realistic altered or synthetic content (YouTube's containsSyntheticMedia)."},"caption_language":{"type":"string","description":"BCP-47 language of the attached caption file, e.g. \"en\". Required when the post carries one."}}},"gmail":{"type":"object","description":"platform \"gmail\" only: who the email goes to. The post's `title` is the subject (required) and its body the email (markdown; images inline, a video as a link). Publishing SENDS it from the connected Gmail — only after the user confirms the exact email (schedule_post / publish_post return it with a confirm_token). On update_post each field you pass replaces that field; changing any of them is an edit, so an approved post goes back to draft.","properties":{"to":{"type":"array","items":{"type":"string"},"description":"Plain addresses (no display names), e.g. [\"steve@example.com\"]. An email needs at least one recipient across to, cc and bcc."},"cc":{"type":"array","items":{"type":"string"},"description":"Plain addresses to copy."},"bcc":{"type":"array","items":{"type":"string"},"description":"Plain addresses to blind-copy."}}},"resend":{"type":"object","description":"platform \"resend\" only: who gets it. A segment (segment_id — list_resend_options lists them; omitted, the channel's own from connect) becomes a DRAFT broadcast the user sends from Resend. Specific people (to) each get their own copy, SENT from the channel's sender when the post publishes — it can't be unsent, so read the list back first. to wins when both are set; pass to: [] to go back to a segment. Changing either is an edit.","properties":{"segment_id":{"type":"string","description":"A segment id from list_resend_options. Empty string: the channel's own segment."},"to":{"type":"array","items":{"type":"string"},"description":"Plain addresses, at most 100, one copy each (list_resend_options can list a segment's contacts)."}}},"instagram":{"type":"object","description":"platform \"instagram\" only: what kind of Instagram post this is. Left out, it follows the media: one video (with or without a cover image) is a Reel, anything else is a feed post. Changing it is an edit, so an approved post goes back to draft.","properties":{"format":{"type":"string","enum":["auto","reel","feed","story"],"description":"\"feed\": one image (a photo) or 2–10 images and videos (a carousel). \"reel\": one video, plus optionally a cover image. \"story\": one image or one video; no caption, gone after 24 hours. \"auto\" (the default) follows the media."}}},"linkedin":{"type":"object","description":"platform \"linkedin\" only: who the post @mentions inside its `commentary`. The body is plain markdown — write `@Acme` in the text, and the mapping here turns the FIRST `@Acme` into LinkedIn's `@[Acme](urn:li:organization:ID)` form; every other `@` is escaped as today. Other platforms read the body untouched. People mentions are limited to the workspace's connected LinkedIn channels (use list_mentions); companies are admin-URL / org-id / urn, one of the workspace's saved `linkedin_mentions` rows, or a new one (add_mention). At most 20 per post. On update_post this MERGES into what the post has, and null drops a mention by URN; an empty array clears them all. Changing any of them is an edit, so an approved post goes back to draft.","properties":{"mentions":{"type":"array","description":"The post's @mentions: { label, urn } pairs (the label is what the author writes as `@Label`, the urn is LinkedIn's `urn:li:person:ID` or `urn:li:organization:ID`). At most 20. A `@Label` not in the body fails at schedule_post with the missing name.","items":{"type":"object","properties":{"label":{"type":"string","description":"1–80 characters — letters, digits, spaces and `.,'&-`."},"urn":{"type":"string","description":"`urn:li:person:ID` or `urn:li:organization:ID`. People URNs must be a channel THIS app holds."}},"required":["label","urn"]}}}},"threads":{"type":"object","description":"platform \"threads\" only: the topic and location tags Threads adds to the root container. `topic_tag` is one free-text tag (1–50 characters, no '.' or '&', a leading '#' stripped); `location_id` is the location Meta returned from search_threads_locations (gated on the `threads_location_tagging` scope — the channel must have been connected with that scope, otherwise schedule_post refuses with a reconnect message). `location_name` is display only — set it to the same string the search returned so the picker can name the picked place. On update_post each field you pass replaces that field, and null clears it.","properties":{"topic_tag":{"type":"string","description":"1–50 characters, no '.' or '&', a leading '#' is stripped."},"location_id":{"type":"string","description":"A location id from search_threads_locations. Empty string clears it."},"location_name":{"type":"string","description":"The display name that came with `location_id` (search_threads_locations). Empty string clears it."}}},"link_url":{"type":"string","description":"Change the promoted link. Empty string unlinks it."},"link_title":{"type":"string","description":"Override the link card's title. Empty string clears it."},"link_description":{"type":"string","description":"Override the link card's description. Empty string clears it."},"link_image_url":{"type":"string","description":"Override the link card's image. Empty string clears it."},"media":{"type":"array","description":"Optional. The post's attachments (images/video), in the order they should appear — this REPLACES the whole list: reorder by sending the ids in a new order, remove one by leaving it out, send [] to remove them all. Ids come from upload_media (its media.id) or from get_post's `media`; any media already in this workspace's library can be re-attached. Omit to leave attachments unchanged. Changing attachments is an edit: it revokes approval and records a version like a body change. On a multi-part post this is parts[0]'s attachments only — replies keep theirs; can't be combined with `parts` (use parts[0].media there).","items":{"type":"object","properties":{"media_id":{"type":"string","description":"The media's id."},"alt":{"type":"string","description":"Alt text for this attachment on this post. Omit to keep what it has; empty string clears it."}},"required":["media_id"],"additionalProperties":false}},"also_update":{"type":"array","items":{"type":"string"},"description":"Post ids of this post's copies on other platforms (get_post's `set.members`) that should get this post's text too, as saved. Each copy is edited as its own post: its approval is revoked like any edit, and it records its own version. Pass it only when the person asked for their edit to go to the other platforms (the post card does when they tick them); each platform's text is otherwise its own. The result's `also_updated` / `also_refused` say what happened to each."},"scheduled_for":{"type":"string","description":"Replace the proposed publish time, ISO 8601. Empty string clears it."},"checkpoint":{"type":"string","description":"Names this saved version so it can be found and restored later (list_post_versions / get_post_version / restore_post_version). Max 80 characters. Omit for an ordinary save, which still writes a version — just an unlabeled one."}},"required":["post_id","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/create_post_set":{"post":{"operationId":"create_post_set","summary":"Post one thing to several channels at once: a POST SET.","description":"Post one thing to several channels at once: a POST SET. The usual case is one vertical video to YouTube, TikTok and Instagram, each with words written for that platform. Each channel gets its own ordinary post (its own review_url, approval, versions and outcome; a TikTok post also its approve_url, which you ALWAYS give the user — TikTok requires them to approve posting it directly, one tap on their phone) and the posts share a blast_id. Give the shared fields once (title, body, link_url, media, youtube, scheduled_for) and override any of them per channel in `targets`. Media is shared by id: each channel takes what its platform publishes (YouTube the video plus a JPEG/PNG thumbnail and captions, TikTok the video only, Instagram the video as a Reel — or, with no video, the images as a photo or carousel; give Instagram a cover in its own target's media, and a story with the target's `instagram`). Each channel's rules are create_post's (a YouTube title, one video, Instagram mp4/mov, caption lengths), and EVERYTHING is checked before anything is saved: a refusal names every target that needs fixing, saves nothing, and the same call, fixed, is the retry. intent \"draft\" (default) saves them; \"queue\" puts every channel in the posting schedule's next free slot TOGETHER; \"schedule\" sends each at scheduled_for (a target's own scheduled_for staggers it). There is no publish_now for a set. You are recorded as the approver of each post. A channel whose platform refuses it at approval stays a draft and is listed in not_scheduled with the reason; the others are scheduled anyway — fix it with update_post and schedule_post{queue: true} and it joins their slot. Editing one post later revokes only that post's approval. In a workspace that requires a person to approve, every post stays a draft and review_url is where they approve the set. Write each channel's text in the property's voice (list_skills / get_skill first). For one channel, use create_post.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"targets":{"type":"array","items":{"type":"object","description":"One channel of the set. Name it by channel_id (from list_channels), or by platform when the property has exactly one usable channel of it. Every other field is optional and REPLACES the set's value for this channel only.","properties":{"channel_id":{"type":"string","description":"The connected channel this member goes to."},"platform":{"type":"string","enum":["linkedin","substack","facebook","instagram","threads","youtube","tiktok","gmail","resend","slack"],"description":"Instead of channel_id: the property's one usable channel of this platform."},"title":{"type":"string","description":"This channel's title (YouTube: the video's title, at most 100 characters)."},"body":{"type":"string","description":"This channel's text: YouTube's description, a TikTok or Instagram caption."},"first_comment":{"type":"string","description":"LinkedIn and YouTube only (other platforms ignore it): a comment posted right after the post goes live — on LinkedIn under the post, on YouTube as a top-level comment from the channel. YouTube's API can't pin it (pin it in YouTube Studio), and YouTube allows no comments on a private or made-for-kids video, so it is skipped there with a note. Empty string clears it."},"link_url":{"type":"string","description":"This channel's link, or \"\" for none (an Instagram caption can't carry a clickable link)."},"media":{"type":"array","description":"This channel's own media instead of the set's, e.g. a JPEG cover for an Instagram Reel.","items":{"type":"object","properties":{"media_id":{"type":"string","description":"The media's id."},"alt":{"type":"string","description":"Alt text for an image."}},"required":["media_id"],"additionalProperties":false}},"youtube":{"type":"object","description":"platform \"youtube\" only: the video's own settings. Anything left out uses the default (public, category \"27\" Education, not made for kids, no synthetic-media disclosure, no tags, no playlist). On update_post this MERGES into what the post already has, and null clears one setting back to its default. Changing any of them is an edit, so an approved post goes back to draft.","properties":{"privacy":{"type":"string","enum":["public","unlisted","private"],"description":"public (default), unlisted or private."},"tags":{"type":"array","items":{"type":"string"},"description":"Search tags. At most 500 characters as YouTube counts them: a comma between each, and quotes around any tag with a space. No <, > or commas inside a tag."},"category_id":{"type":"string","description":"A YouTube category id, e.g. \"27\" Education or \"10\" Music — list_youtube_options lists the assignable ones."},"made_for_kids":{"type":"boolean","description":"YouTube's made-for-kids declaration. True turns comments off, so no first comment is posted."},"playlist_id":{"type":"string","description":"Add the video to this playlist after it uploads (list_youtube_options lists the channel's). Best-effort: a failure is a note on the published post, never a failed publish."},"contains_synthetic_media":{"type":"boolean","description":"Disclose realistic altered or synthetic content (YouTube's containsSyntheticMedia)."},"caption_language":{"type":"string","description":"BCP-47 language of the attached caption file, e.g. \"en\". Required when the post carries one."}}},"instagram":{"type":"object","description":"An Instagram target only: its format, e.g. { format: \"story\" } to post the image or video as a story. Left out, it follows the media (a video is a Reel; images are a photo or carousel).","properties":{"format":{"type":"string","enum":["auto","reel","feed","story"],"description":"\"feed\": one image (a photo) or 2–10 images and videos (a carousel). \"reel\": one video, plus optionally a cover image. \"story\": one image or one video; no caption, gone after 24 hours. \"auto\" (the default) follows the media."}}},"scheduled_for":{"type":"string","description":"This channel's own time, ISO 8601, to stagger the set. Only with intent \"schedule\"."}},"additionalProperties":false},"minItems":2,"maxItems":10,"description":"The channels, 2 to 10, each once."},"title":{"type":"string","description":"Shared title. YouTube needs one (here or on its target)."},"body":{"type":"string","description":"Shared text, for every channel that doesn't set its own."},"first_comment":{"type":"string","description":"LinkedIn and YouTube only (other platforms ignore it): a comment posted right after the post goes live — on LinkedIn under the post, on YouTube as a top-level comment from the channel. YouTube's API can't pin it (pin it in YouTube Studio), and YouTube allows no comments on a private or made-for-kids video, so it is skipped there with a note. Empty string clears it."},"link_url":{"type":"string","description":"Shared link; its card is filled from OpenGraph."},"link_title":{"type":"string","description":"Override the shared link card's title."},"link_description":{"type":"string","description":"Override the shared link card's description."},"link_image_url":{"type":"string","description":"Override the shared link card's image."},"media":{"type":"array","description":"Shared media by id; each channel takes what its platform publishes.","items":{"type":"object","properties":{"media_id":{"type":"string","description":"The media's id."},"alt":{"type":"string","description":"Alt text for an image."}},"required":["media_id"],"additionalProperties":false}},"youtube":{"type":"object","description":"platform \"youtube\" only: the video's own settings. Anything left out uses the default (public, category \"27\" Education, not made for kids, no synthetic-media disclosure, no tags, no playlist). On update_post this MERGES into what the post already has, and null clears one setting back to its default. Changing any of them is an edit, so an approved post goes back to draft.","properties":{"privacy":{"type":"string","enum":["public","unlisted","private"],"description":"public (default), unlisted or private."},"tags":{"type":"array","items":{"type":"string"},"description":"Search tags. At most 500 characters as YouTube counts them: a comma between each, and quotes around any tag with a space. No <, > or commas inside a tag."},"category_id":{"type":"string","description":"A YouTube category id, e.g. \"27\" Education or \"10\" Music — list_youtube_options lists the assignable ones."},"made_for_kids":{"type":"boolean","description":"YouTube's made-for-kids declaration. True turns comments off, so no first comment is posted."},"playlist_id":{"type":"string","description":"Add the video to this playlist after it uploads (list_youtube_options lists the channel's). Best-effort: a failure is a note on the published post, never a failed publish."},"contains_synthetic_media":{"type":"boolean","description":"Disclose realistic altered or synthetic content (YouTube's containsSyntheticMedia)."},"caption_language":{"type":"string","description":"BCP-47 language of the attached caption file, e.g. \"en\". Required when the post carries one."}}},"scheduled_for":{"type":"string","description":"When the set goes out, ISO 8601, with intent \"schedule\"."},"intent":{"type":"string","enum":["draft","schedule","queue"],"description":"draft (default, save only), queue (every channel in the next free slot, together), schedule (at scheduled_for)."},"blast_id":{"type":"string","description":"A Pipeline blast (add_blast, list_blasts) this is made from: the posts join it, and its board card follows them. Omit for a blast of its own."},"external_id":{"type":"string","description":"Your own id for this set, e.g. \"gnf:post:123\" (at most 200 characters, unique per workspace). A repeat call with the same external_id makes nothing and returns the first call's set (created: false), so a retry never posts twice. Read it back with get_post_set{ external_id }. Not with blast_id."}},"required":["property_slug","targets"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/create_series":{"post":{"operationId":"create_series","summary":"Release many episode videos as a numbered run — a short drama, a lesson course, a 'Part 1/20' story — on TikTok, YouT…","description":"Release many episode videos as a numbered run — a short drama, a lesson course, a 'Part 1/20' story — on TikTok, YouTube and/or Instagram (Reels). Each episode is one video (upload each with create_media_upload → complete_media_upload first), in the order given. One caption_template numbers them all: {series} the name, {n} the part, {total} how many, {episode} the episode's own title (a line it leaves empty is dropped). YouTube titles read 'Series — Part 3: Episode title'. release: 'every' (one every every_days days at time HH:MM from start_date YYYY-MM-DD, in the property's posting time zone), 'queue' (the property's slots, in order) or 'draft'. EVERYTHING is checked first — a refusal names every problem and saves nothing. Then each episode becomes one blast (tagged with the series name on the Pipeline board) holding a post per account, made exactly as create_post / create_post_set would (approval policy, platform checks, queue slot). TikTok episodes go to the account's drafts (Upload mode); posting one directly still needs a person on its page. Returns every episode's posts and review_urls; an episode that failed says why and the rest go ahead.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"name":{"type":"string","description":"The series name, e.g. 'Drum Basics'. Also its Pipeline tag."},"caption_template":{"type":"string","description":"Default: \"{series} · Part {n}/{total}\\n\\n{episode}\"."},"episodes":{"type":"array","description":"The episodes in release order, 1 to 50.","items":{"type":"object","properties":{"media_id":{"type":"string","description":"The episode's uploaded video."},"title":{"type":"string","description":"The episode's own title ({episode}). Optional."}},"required":["media_id"],"additionalProperties":false}},"channel_ids":{"type":"array","description":"The TikTok / YouTube / Instagram channels (list_channels) every episode goes to.","items":{"type":"string"}},"release":{"type":"string","enum":["every","queue","draft"],"description":"How the episodes go out."},"start_date":{"type":"string","description":"release 'every': the first episode's date, YYYY-MM-DD, in the property's time zone."},"time":{"type":"string","description":"release 'every': the time of day, HH:MM (24h), in the property's time zone."},"every_days":{"type":"number","description":"release 'every': days between episodes. Default 1."}},"required":["property_slug","name","episodes","channel_ids","release"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_youtube_reach":{"post":{"operationId":"get_youtube_reach","summary":"Thumbnail impressions and click-through rate (CTR) for a connected YouTube channel's videos, one row per video per da…","description":"Thumbnail impressions and click-through rate (CTR) for a connected YouTube channel's videos, one row per video per day, newest day first. An impression counts when the thumbnail was shown for over a second with at least half of it visible; YouTube doesn't say whether the Shorts feed counts. `ctr` is YouTube's own figure for that day, as returned — do NOT average it or add rows into a blended rate (YouTube's policy forbids derived metrics); compare days, don't sum them. Data arrives from YouTube's bulk reports about 48 hours after a channel is first connected with analytics access, then daily, and YouTube may correct a past day — so a figure can change. `status` says whether data can arrive: `scope_missing` means the channel was connected before analytics access existed or the person declined it — give them connect_url to reconnect.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace slug. Optional with one workspace."},"property_slug":{"type":"string","description":"Property slug. Optional with one property."},"channel_id":{"type":"string","description":"A YouTube channel's id from list_channels. Optional when exactly one is connected."},"video_id":{"type":"string","description":"Only this YouTube video id (e.g. the post's external_id)."},"limit":{"type":"number","description":"Most rows to return, 1-500. Default 90."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_post_metrics":{"post":{"operationId":"get_post_metrics","summary":"How a published YouTube post is performing.","description":"How a published YouTube post is performing. Returns `analytics` (YouTube Analytics to-date totals, 48–72 hours behind: `data_through` is the last day YouTube had processed, a Pacific-time date) and `live` (current counts from the YouTube Data API, `as_of` when read). BlastCP reads YouTube every hour. `status` says what's missing and why: `pending` (published too recently for analytics), `awaiting_first_refresh`, `analytics_not_allowed` (give the person connect_url — they reconnect the channel and allow YouTube Analytics), `channel_disconnected`, `not_published`, `not_supported_platform`. Pass history: true for the daily series (one row per source per processed day, newest first) to see a trend. A TikTok post returns its PUBLIC video's lifetime counts under TikTok's names (view_count, like_count, comment_count, share_count) in `live`, read every hour; `awaiting_public_post` means it's still in the drafts or posted privately — TikTok reports on public videos only. A video TikTok says is no longer public keeps its last counts, and `message` says they stopped and when they were read. A TikTok post with stats also returns an IMAGE of its chart (the one on its page): total views as bars on the left axis, total likes / comments / shares as lines on the right, one point per day read — show it to the person. A YouTube post with stats returns the same chart image: YouTube Analytics running totals through each processed day once YouTube has them, its live counts (no shares) until then. Any platform's post can also return `website`: the visits its link sent to the property's own site, read from the property's connected Google Analytics 4 by the post's utm_content (sessions, engagedSessions, totalUsers, keyEvents, totalRevenue in the GA property's currency); null when Google Analytics isn't connected (Settings → Tracking) or no visit carried the tag yet. Every number is YouTube's own, under YouTube's metric name: engagedViews (plays past the first frame — the one YouTube anchors on), views (every play start, autoplay included), estimatedMinutesWatched, averageViewDuration (seconds), averageViewPercentage, subscribersGained/subscribersLost (subscriptions YouTube attributes to this video), likes, comments, shares; live counts are viewCount, likeCount, commentCount. Report them as given — do NOT present a ratio you computed from two of them (e.g. engagedViews/views as a 'keep-watching rate') as a metric: YouTube's API policy forbids derived metrics. Shorts 'viewed vs. swiped away' is not available through any YouTube API (Studio only); thumbnail impressions and CTR come from get_youtube_reach.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."},"history":{"type":"boolean","description":"Also return the stored daily snapshots, newest first (up to 120)."}},"required":["post_id","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_top_posts":{"post":{"operationId":"list_top_posts","summary":"This property's published YouTube posts ranked by one metric, highest first — the weekly 'what worked' read.","description":"This property's published YouTube posts ranked by one metric, highest first — the weekly 'what worked' read. Ranks by the newest snapshot of each post; the default metric is engagedViews. Filter to Shorts or long-form with content_type (YouTube's creatorContentType). Posts with no value for the metric yet (too new, or analytics not allowed) are left out and counted in `without_data`. Every number is YouTube's own, under YouTube's metric name: engagedViews (plays past the first frame — the one YouTube anchors on), views (every play start, autoplay included), estimatedMinutesWatched, averageViewDuration (seconds), averageViewPercentage, subscribersGained/subscribersLost (subscriptions YouTube attributes to this video), likes, comments, shares; live counts are viewCount, likeCount, commentCount. Report them as given — do NOT present a ratio you computed from two of them (e.g. engagedViews/views as a 'keep-watching rate') as a metric: YouTube's API policy forbids derived metrics. Shorts 'viewed vs. swiped away' is not available through any YouTube API (Studio only); thumbnail impressions and CTR come from get_youtube_reach.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"metric":{"type":"string","enum":["engagedViews","views","estimatedMinutesWatched","averageViewDuration","averageViewPercentage","subscribersGained","subscribersLost","likes","comments","shares","viewCount","likeCount","commentCount"],"description":"What to rank by. Default engagedViews."},"since":{"type":"string","description":"Only posts published on or after this ISO date (YYYY-MM-DD or a timestamp). Default: 90 days ago."},"content_type":{"type":"string","enum":["SHORTS","VIDEO_ON_DEMAND","LIVE_STREAM","STORY","UNSPECIFIED"],"description":"Only this content type: SHORTS, VIDEO_ON_DEMAND (long-form), LIVE_STREAM, …"},"limit":{"type":"number","description":"How many to return, 1-50. Default 10."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_analytics":{"post":{"operationId":"get_analytics","summary":"How the posts did overall — the weekly or monthly 'what worked' read across platforms.","description":"How the posts did overall — the weekly or monthly 'what worked' read across platforms. Over the last 7, 28 or 90 days (default 28; days are Pacific calendar days, as every platform's read-back is dated), for one property (property_slug) or every property in the workspace (omit it). Returns: `tiktok_and_instagram` — views, likes, comments and shares their posts GAINED in the period, added up, and per platform (`read_since`: the first day read in the window — earlier days are unknown, not zero), and `followers` (their accounts' newest follower counts added up, and what they gained in the period; TikTok's need a permission BlastCP doesn't ask for yet); `youtube` — one entry per YouTube channel: YouTube's own total for the channel's BlastCP-published videos over the same length of period, ending on the last day YouTube has processed (`data_through`, 48–72 h behind), under YouTube's metric names — subscribersGained and subscribersLost included — and `subscribers`, the channel's subscriber count as YouTube returns it (rounded by YouTube); `top_posts` — posts published in the period, most viewed first, each with its platform's lifetime numbers (and, for TikTok/Instagram, what it gained in the period); `blasts` — one piece of content across its platforms; `by_property` (workspace scope); `unread_platforms` — posts that went out on platforms that report nothing back (LinkedIn, Facebook, Threads, Substack, email); with include_days, `days` — the same split per day. RULES, from YouTube's API policy: never add a YouTube number to a TikTok or Instagram number, never add two YouTube channels together, never add up YouTube's days yourself, never present a ratio of two YouTube numbers as a metric, and never work out net subscribers or growth from two YouTube numbers. Report YouTube BESIDE the TikTok + Instagram total, attributed to YouTube. For one post's detail and chart use get_post_metrics.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"One property's slug. Omit for every property in the workspace."},"days":{"type":"number","enum":[7,28,90],"description":"The period: 7, 28 or 90 days, ending today (Pacific). Default 28."},"include_days":{"type":"boolean","description":"Also return the per-day series. Default false."},"limit":{"type":"number","description":"How many top posts and blasts to return, 1-50. Default 10."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_comments":{"post":{"operationId":"list_comments","summary":"The Inbox: comments people left on this workspace's videos that still need an answer, newest first, one per thread.","description":"The Inbox: comments people left on this workspace's videos that still need an answer, newest first, one per thread. Each has the comment, what it's on, the earlier messages in its thread, and `draft` — a reply BlastCP already wrote in the property's voice (null while it's still being drafted). YouTube only for now: LinkedIn and TikTok don't let apps read comments, and `cannot_see` lists YouTube channels that haven't granted comment access (give the user connect_url). A comment leaves the Inbox when it's answered — from here or on the platform itself — or dismissed. Workspace-wide unless property_slug narrows it. view=answered lists the last 30 days of closed ones.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"Only this property's comments. Omit for every property."},"view":{"type":"string","enum":["open","answered"],"description":"open (default): waiting for a reply. answered: closed in the last 30 days."},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"At most this many threads. Default 25."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/reply_to_comment":{"post":{"operationId":"reply_to_comment","summary":"Reply to a comment publicly, as the channel, in its thread.","description":"Reply to a comment publicly, as the channel, in its thread. It goes out immediately and can't be unsent from BlastCP — so show the user the exact reply and get their go-ahead before calling this. Start from the comment's `draft` and edit it to taste; keep it short and in the commenter's language. You are recorded as the sender. Sent once: if YouTube doesn't answer, BlastCP reads the thread to see whether it landed rather than sending again; an error saying to check on YouTube means exactly that — don't retry until the user has looked. Closes every open comment in the thread. Uses 50 units of the channel's daily YouTube quota.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"comment_id":{"type":"string","description":"The comment's id, from list_comments (`comment_id`)."},"body":{"type":"string","description":"The reply, as it should appear. Plain text; no links or hashtags."}},"required":["comment_id","body"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/dismiss_comment":{"post":{"operationId":"dismiss_comment","summary":"Take a comment's thread out of the Inbox without replying — spam, a thank-you that needs nothing back, or one the use…","description":"Take a comment's thread out of the Inbox without replying — spam, a thank-you that needs nothing back, or one the user answered somewhere BlastCP can't see. Nothing is posted. The person can reopen it from the Inbox page.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"comment_id":{"type":"string","description":"The comment's id, from list_comments (`comment_id`)."}},"required":["comment_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_youtube_options":{"post":{"operationId":"list_youtube_options","summary":"For a connected YouTube channel: its playlists (id, title, privacy, item count) and the video categories its region c…","description":"For a connected YouTube channel: its playlists (id, title, privacy, item count) and the video categories its region can assign (id, title) — the ids create_post / update_post take as youtube.playlist_id and youtube.category_id. Also `can_manage`: whether the channel has allowed BlastCP to add to playlists, upload captions and post the first comment; when false, those steps are skipped at publish until the person reconnects at connect_url.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace slug. Optional with one workspace."},"property_slug":{"type":"string","description":"Property slug. Optional with one property."},"channel_id":{"type":"string","description":"A YouTube channel's id from list_channels. Optional when exactly one is connected."},"region_code":{"type":"string","description":"ISO 3166-1 country for the category list. Default \"US\"."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_resend_options":{"post":{"operationId":"list_resend_options","summary":"For a connected Resend account: its segments (id, name, and which one the channel sends to by default) and — with seg…","description":"For a connected Resend account: its segments (id, name, and which one the channel sends to by default) and — with segment_id, or `contacts: true` for the default segment — the first 100 people in that segment (email, name, unsubscribed). Use them for create_post / update_post's resend.segment_id or resend.to. Never offer someone who unsubscribed. Read live from Resend; nothing is stored.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace slug. Optional with one workspace."},"property_slug":{"type":"string","description":"Property slug."},"channel_id":{"type":"string","description":"A Resend channel's id from list_channels. Optional when exactly one is connected."},"segment_id":{"type":"string","description":"List the people in this segment."},"contacts":{"type":"boolean","description":"List the people in the channel's default segment."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/add_blast":{"post":{"operationId":"add_blast","summary":"Put an idea on the property's Pipeline board — a BLAST: one piece of content in the making (a post, a thread, an arti…","description":"Put an idea on the property's Pipeline board — a BLAST: one piece of content in the making (a post, a thread, an article, a video), from half-thought to published. Use it whenever the user has an idea worth keeping that isn't ready to be a post: it lands in the Inbox unless you give a stage. format (post, thread, carousel, article, newsletter, reel/short, video, podcast — or anything) decides whether it needs production; a video format starts a production checklist. Returns the blast and its review_url (the blast's page). An Inbox idea is then fleshed out and judged by the property's Ideation agent (get_blast → ideation).","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"title":{"type":"string","description":"What it is, in a line."},"notes":{"type":"string","description":"The idea as it came: markdown."},"format":{"type":"string","description":"The medium: post, thread, carousel, article, newsletter, reel/short, video, podcast…"},"stage":{"type":"string","enum":["inbox","researching","writing","production","ready"],"description":"Where the work is. `production` (shoot, edit, record) only for a blast that needs production. Scheduled and Published aren't stages: they follow the blast's posts."},"tags":{"type":"array","items":{"type":"string"},"description":"Tag names. Matched to the workspace's tags ignoring case; a new name becomes a tag. Not \"Blocked\" — use blocked_reason."},"sources":{"type":"array","description":"Links the idea or its research came from.","items":{"type":"object","properties":{"url":{"type":"string"},"title":{"type":"string"},"note":{"type":"string"}},"required":["url"],"additionalProperties":false}}},"required":["property_slug","title"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_blasts":{"post":{"operationId":"list_blasts","summary":"The property's Pipeline board: every blast with its column (inbox, researching, writing, production, ready, scheduled…","description":"The property's Pipeline board: every blast with its column (inbox, researching, writing, production, ready, scheduled, published, archived), tags, badges (Blocked, Awaiting approval, Reserved, Due, Failed, Production 2/4) and the platforms its posts go to. Published blasts leave the board 14 days after their last post. Filter by column, tag or blocked. Read this before suggesting what to work on next.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"column":{"type":"string","enum":["inbox","researching","writing","production","ready","scheduled","published","archived"],"description":"Only blasts in this column."},"tag":{"type":"string","description":"Only blasts carrying this tag (ignoring case)."},"blocked":{"type":"boolean","description":"true: only blocked blasts. false: only unblocked ones."},"limit":{"type":"integer","minimum":1,"maximum":200,"description":"At most this many. Default 50."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_blast":{"post":{"operationId":"get_blast","summary":"One blast in full: notes, research, script, sources, production checklist, tags, badges, and every post it went out a…","description":"One blast in full: notes, research, script, sources, production checklist, tags, badges, and every post it went out as (each with status and review_url). Read it before drafting from a blast, so the posts use the research. Also carries ideation: the Ideation agent's take on the idea (verdict pursue/sharpen/pass with reasons, angle, hooks, post_type, format, outline, questions to answer), or null.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"blast_id":{"type":"string","description":"The blast's id, from add_blast or list_blasts (`blast_id`)."}},"required":["property_slug","blast_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/update_blast":{"post":{"operationId":"update_blast","summary":"Edit a blast: move its stage, write research back (append_research adds to what's there — prefer it to replacing), se…","description":"Edit a blast: move its stage, write research back (append_research adds to what's there — prefer it to replacing), set the script, tick the production checklist, replace tags, add sources, block it (blocked_reason says what it's stuck on; waiting_on who or what) or unblock it, archive it or bring it back, hold a queue slot for it (reserve). Omitted fields are left alone. A blast holds the work, never the publish: posts are made with create_post{ blast_id }.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"blast_id":{"type":"string","description":"The blast's id, from add_blast or list_blasts (`blast_id`)."},"title":{"type":"string"},"stage":{"type":"string","enum":["inbox","researching","writing","production","ready"],"description":"Where the work is. `production` (shoot, edit, record) only for a blast that needs production. Scheduled and Published aren't stages: they follow the blast's posts."},"notes":{"type":"string","description":"Replaces the notes."},"research":{"type":"string","description":"Replaces the research. To add to it, use append_research."},"append_research":{"type":"string","description":"Added to the end of the research, after a blank line."},"script":{"type":"string","description":"Replaces the script (a video's words, or a long post's)."},"format":{"type":"string"},"requires_production":{"type":"boolean","description":"Whether it needs a shoot/edit/record step."},"production_checklist":{"type":"array","description":"Replaces the checklist.","items":{"type":"object","properties":{"label":{"type":"string"},"done":{"type":"boolean"}},"required":["label"],"additionalProperties":false}},"tags":{"type":"array","items":{"type":"string"},"description":"Tag names. Matched to the workspace's tags ignoring case; a new name becomes a tag. Not \"Blocked\" — use blocked_reason. Replaces the blast's tags; [] clears them."},"add_sources":{"type":"array","description":"Added to the blast's sources.","items":{"type":"object","properties":{"url":{"type":"string"},"title":{"type":"string"},"note":{"type":"string"}},"required":["url"],"additionalProperties":false}},"target_date":{"type":"string","description":"YYYY-MM-DD, or \"\" to clear."},"blocked_reason":{"type":"string","description":"Marks the blast Blocked, with what it's stuck on."},"waiting_on":{"type":"string","description":"With blocked_reason: who or what it waits for."},"unblock":{"type":"boolean","description":"true clears Blocked."},"archived":{"type":"boolean","description":"true archives it: off the board into the Archived drawer, giving back any slot it held, and its posts archived with it (archive_post) — refused while a post is scheduled or publishing. false brings it and its archived posts back."},"reserve":{"type":"string","description":"Hold a queue slot for it: \"next\" (the next free slot), an ISO time that is one of the property's posting times (get_posting_schedule), or \"\" to release. The queue flows around a held slot, and the blast's first post queued with create_post{ blast_id, intent: \"queue\" } takes it over."}},"required":["property_slug","blast_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_tags":{"post":{"operationId":"list_tags","summary":"The workspace's tags for blasts, with their colors.","description":"The workspace's tags for blasts, with their colors. Blocked is built in and not listed.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_posting_goals":{"post":{"operationId":"get_posting_goals","summary":"A property's weekly posting goals and streak: each channel's goal and how many it published this week, days left, the…","description":"A property's weekly posting goals and streak: each channel's goal and how many it published this week, days left, the current streak (consecutive met weeks), and the last 8 weeks as met / missed / none. Today's goals are applied to every past week too (no goal history is stored; documented, not hidden). Channel names and platforms are returned alongside counts so the agent doesn't have to cross-reference list_channels. Returns `null` from a pre-migration database (the column isn't there yet) so the agent can tell the user to run the latest migration.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/set_posting_goal":{"post":{"operationId":"set_posting_goal","summary":"Set or clear a single channel's weekly posting goal.","description":"Set or clear a single channel's weekly posting goal. Pass weekly_goal 0 (or null) to clear it — a channel with no goal is excluded from the streak and from this-week rows. Goal is bounded 0-50; the server refuses anything outside that. Requires `workspace.manage` (owner or admin), the same gate as set_posting_schedule. Today's goals are applied to every past week (no goal history).","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"channel_id":{"type":"string","description":"The channel to set the goal on (from list_channels)."},"weekly_goal":{"type":"number","description":"Posts per week this channel aims for, 0-50. 0 or null clears the goal."}},"required":["channel_id","property_slug","weekly_goal"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_tiktok_approvals":{"post":{"operationId":"get_tiktok_approvals","summary":"The TikTok Direct Posts waiting for the user to approve them (TikTok requires a PERSON to choose who can see each pos…","description":"The TikTok Direct Posts waiting for the user to approve them (TikTok requires a PERSON to choose who can see each post and confirm it; you cannot approve for them), and approve_url: one link that opens every one of them on a single page, already signed in, with one Approve all button. ALWAYS give the user approve_url; it works for 24 hours (expires_at) and only for them, so don't post it anywhere others can read. Call it again for a fresh link. Omit property_slug for the whole workspace.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"Only this property's posts. Omit for every property in the workspace."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/set_property_settings":{"post":{"operationId":"set_property_settings","summary":"Change a property's settings.","description":"Change a property's settings. `always_update_other_platforms`: when true, a PERSON's save, approval or send of a post (in the app, or in the post card) goes to the post's copies on other platforms without asking; false asks each time (the default). It never changes what update_post does for you: an agent edits one post unless it passes `also_update`. Set it only when the person asks (\"always update TikTok too\"). Requires `workspace.manage` (owner or admin), like every property setting.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"always_update_other_platforms":{"type":"boolean","description":"true: a person's edits, approvals and sends go to the post's other platforms without asking."}},"required":["property_slug","always_update_other_platforms"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_mentions":{"post":{"operationId":"list_mentions","summary":"Every @mention target this property can use on a LinkedIn post: people (the workspace's connected LinkedIn channels, …","description":"Every @mention target this property can use on a LinkedIn post: people (the workspace's connected LinkedIn channels, kind \"person\") and saved companies (kind \"organization\"), each with the LinkedIn URN create_post / update_post take as linkedin.mentions[].urn. Other platforms have no @mention — LinkedIn's commentary is the only one that supports them. People are limited to the channels BlastCP already holds: LinkedIn person ids are scoped to the app that read them, so people outside this list can't be mentioned. Companies need a numeric id (their admin URL's company id, a bare id, or a `urn:li:organization:ID`); a vanity URL (`/company/acme`) is refused at add_mention with a sentence naming where to find the id.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/add_mention":{"post":{"operationId":"add_mention","summary":"Save a LinkedIn COMPANY as a mentionable target for this property.","description":"Save a LinkedIn COMPANY as a mentionable target for this property. People can't be added by hand — they come from the workspace's connected LinkedIn channels. `label` is what the author writes as `@Label` (1–80 characters, letters / digits / spaces / `.,'&-`); `company` is the company's page — an admin URL (`linkedin.com/company/<id>/admin`), a plain company URL with a numeric id, a bare numeric id, or a `urn:li:organization:ID`. A vanity URL is refused with the instruction to open the admin page (the id in that URL is what to paste here). The (property, URN) pair is unique, so re-saving the same URN is a rename. Returns the saved row's URN.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"label":{"type":"string","description":"What the author writes as `@Label`, 1–80 characters."},"company":{"type":"string","description":"The company's LinkedIn page: admin URL, plain URL with numeric id, bare numeric id, or URN. Vanity URLs are refused."}},"required":["property_slug","label","company"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/remove_mention":{"post":{"operationId":"remove_mention","summary":"Drop a saved company mention from this property.","description":"Drop a saved company mention from this property. Pass the row's id from list_mentions. People mentions (LinkedIn channels) can't be removed through this tool — disconnect the channel instead.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"id":{"type":"string","description":"The row's id from list_mentions."}},"required":["property_slug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/search_threads_locations":{"post":{"operationId":"search_threads_locations","summary":"Threads location search — the source for the location_id create_post / update_post take as threads.location_id.","description":"Threads location search — the source for the location_id create_post / update_post take as threads.location_id. Needs a Threads channel on this property connected with the `threads_location_tagging` scope (reconnect Threads if the call returns that error). `channel_id` picks one when several are connected; omit it when there's only one. Each result carries `id` (the value to set as threads.location_id), `name`, `address`, `city`, `country`; send it as threads.location_id AND threads.location_name in the same create_post / update_post call.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"channel_id":{"type":"string","description":"A Threads channel's id from list_channels. Optional when exactly one is connected."},"query":{"type":"string","description":"What to search for (Meta's `q=` text). Required."}},"required":["property_slug","query"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/upload_media":{"post":{"operationId":"upload_media","summary":"Put an image or a video in BlastCP's media storage (Cloudflare R2) and, optionally, attach it to a post.","description":"Put an image or a video in BlastCP's media storage (Cloudflare R2) and, optionally, attach it to a post. Pass exactly one of url (fetched and stored) or data (base64 bytes — content_type is required alongside it, e.g. \"image/png\") — never both, never neither. Storage is content-addressed: uploading bytes BlastCP already has, under this workspace, reuses the existing object instead of writing a second copy, so re-attaching a file you already uploaded costs nothing. With post_id, the stored media is APPENDED to whatever that post already carries — it never replaces existing attachments — after checking the post is in this workspace. Without post_id, nothing is attached; take the returned media.url and pass it as create_post/update_post's link_image_url yourself. An image outside JPEG, PNG, GIF and WEBP is converted to JPEG; video bytes are stored as-is, never transcoded. Send `data` only for files under 3MB: the whole call must fit the server's 4.5MB request limit and base64 adds a third, so a bigger payload is refused before this tool runs — use create_media_upload for those. Refuses a fetched url over 100MB, a content type that is neither image/* nor video/*, and any call at all when media storage isn't configured for this deployment. Returns the stored media's public fields, including its permanent url.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"url":{"type":"string","description":"A URL to fetch and store. Exactly one of url or data."},"data":{"type":"string","description":"Base64-encoded image or video bytes (a data: URI is also accepted), for a file under 3MB. Needs content_type alongside it. Bigger files: create_media_upload."},"content_type":{"type":"string","description":"MIME type of `data`, e.g. \"image/png\" or \"video/mp4\". Required with data; ignored with url, whose type is read from the response."},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/create_media_upload":{"post":{"operationId":"create_media_upload","summary":"Start a direct upload of an image or video to BlastCP's media storage, for files too big to send as upload_media's ba…","description":"Start a direct upload of an image or video to BlastCP's media storage, for files too big to send as upload_media's base64 `data` (videos especially). Returns upload_url, a presigned R2 URL: PUT exactly byte_size bytes to it with the returned headers (Content-Type must match content_type) before expires_at (10 minutes), then call complete_media_upload with the returned upload_id. The URL is signed for this exact size and type — a different file is refused. Accepts image/jpeg, image/png, image/gif and image/webp up to 100MB, and video/mp4, video/quicktime and video/webm up to 1GB. The PUT only has to START before expires_at; a big video may take longer to finish. Other image types need upload_media, which converts them. Refuses when media storage isn't configured.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"Optional. A post to attach the media to when the upload completes."},"content_type":{"type":"string","description":"MIME type of the file, e.g. \"image/png\" or \"video/mp4\". The PUT must send this exact Content-Type."},"byte_size":{"type":"number","description":"The file's exact size in bytes. The PUT must carry exactly this many."},"filename":{"type":"string","description":"Optional. The file's original name, kept for reference."}},"required":["property_slug","content_type","byte_size"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/complete_media_upload":{"post":{"operationId":"complete_media_upload","summary":"Finish an upload started with create_media_upload, after the PUT succeeded.","description":"Finish an upload started with create_media_upload, after the PUT succeeded. Checks the stored file is the size and type that was signed, stores it content-addressed (bytes BlastCP already has reuse the existing object), and returns the media's public fields. With post_id (here or on create_media_upload) the media is APPENDED to that post's attachments, never replacing them. Safe to call again: a completed upload returns the same media. Answers 'hasn't arrived yet' if the PUT hasn't finished — retry after it has. Only the account that created the upload can complete it.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"upload_id":{"type":"string","description":"The upload_id create_media_upload returned."},"post_id":{"type":"string","description":"Optional. A post to attach to; overrides the one given to create_media_upload."},"duration_ms":{"type":"number","description":"Optional, video only: the clip's duration in milliseconds, if you know it."},"width":{"type":"number","description":"Optional, video only: the clip's pixel width, if you know it. BlastCP can't measure a video itself, so without this the row's width stays unknown and platform rules that read it (TikTok's 360-4096 px per side) can't be enforced."},"height":{"type":"number","description":"Optional, video only: the clip's pixel height. Same rule as width."}},"required":["upload_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_image_models":{"post":{"operationId":"list_image_models","summary":"List the image models generate_image can use on this deployment, grouped by provider, with each one's price per image…","description":"List the image models generate_image can use on this deployment, grouped by provider, with each one's price per image (what the workspace is charged), what it's best for, whether it takes reference images (max_reference_images), and which is the default. Prices span from under a cent to over a dollar, so check before choosing. Call this before passing `model` to generate_image; it costs nothing.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/generate_image":{"post":{"operationId":"generate_image","summary":"Generate an image from a text prompt, store it in BlastCP's media storage, and optionally attach it to a post.","description":"Generate an image from a text prompt, store it in BlastCP's media storage, and optionally attach it to a post. Use this when a post needs artwork and none exists; use upload_media instead when you already have the bytes or a URL. Takes 3-80 seconds depending on the model. COST IS REAL: every call is charged to the workspace's image credit, so generate once and reuse media.url rather than regenerating. There is no seed, so the same prompt twice gives DIFFERENT images — if one is good, keep its media.id. Models: omit `model` for the default (FLUX.2 klein 9B, cheap and good at holding a brand style); call list_image_models for the rest and their prices. For legible TEXT in the image pick a text-strong model (Nano Banana Pro, GPT Image 2.5 Sunburst, Ideogram 3.0, Qwen Image) — the FLUX models approximate lettering wrongly. Never ask any model for a real brand's logo or a real person's likeness: leave empty space and let a person lay the real asset over it. If the safety classifier refuses a prompt, REWORD it — retrying it unchanged fails the same way. With post_id the image is APPENDED to that post's existing attachments, never replacing them. Returns the stored media's public fields including its permanent url, plus the model used and what was charged. To edit or build on existing images, pass their media ids as reference_media_ids.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"prompt":{"type":"string","description":"What the image should show. Be concrete about subject, style, palette and composition — including where to leave empty space for text or a logo. Max 2000 characters."},"model":{"type":"string","description":"Optional model id from list_image_models (e.g. \"google/gemini-3-pro-image\"). Omit for the default."},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."},"reference_media_ids":{"type":"array","items":{"type":"string"},"description":"Optional. Library images (media.id, from upload_media or an earlier generation) for the model to work from: edit this photo, keep this character or product, match this style. Refer to them in the prompt by order (\"the first image\"). Only models with max_reference_images in list_image_models accept them; others reject the call before charging. JPEG, PNG or WebP, 15 MB each."}},"required":["property_slug","prompt"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_video_models":{"post":{"operationId":"list_video_models","summary":"List the video models generate_video can use here, by provider: price per clip at each length (what the workspace is …","description":"List the video models generate_video can use here, by provider: price per clip at each length (what the workspace is charged), aspect ratios, whether the clip has SOUND, whether it can start from an image, and the default. Prices run from cents to dollars a clip, so check first. Free to call.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/generate_video":{"post":{"operationId":"generate_video","summary":"Generate a short video clip from a prompt — or animate a library image — and store it in BlastCP's media.","description":"Generate a short video clip from a prompt — or animate a library image — and store it in BlastCP's media. Takes 1-6 minutes: this call waits up to ~45 seconds, then returns a generation_id to check with get_video_generation. COST IS REAL and held from the start: never start a second job for the same clip while one is running. Vertical 9:16 is the default (Shorts, Reels, TikTok). Most models make sound (dialogue, effects, music) — describe it in the prompt. With post_id the finished video is APPENDED to the post when it lands. If the model refuses, REWORD the prompt; retrying unchanged fails the same way. Never ask for a real person's likeness or a brand's logo.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"prompt":{"type":"string","description":"The clip: subject, action, camera, setting, light, style — and sound (\"she says: …\", \"rain on a tin roof\"). Max 2000 characters."},"model":{"type":"string","description":"A model id from list_video_models. Omit for the default."},"duration_seconds":{"type":"integer","description":"One of the model's lengths. Omit for its default."},"aspect_ratio":{"type":"string","enum":["9:16","16:9"],"description":"9:16 (default) or 16:9."},"start_image_media_id":{"type":"string","description":"Optional. A library image (media.id) to use as the first frame, for models that can."},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."}},"required":["property_slug","prompt"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_video_generation":{"post":{"operationId":"get_video_generation","summary":"How a generate_video job is doing, and the stored video once it lands.","description":"How a generate_video job is doing, and the stored video once it lands. Checking moves it along. Status is running, succeeded (media has the video), failed or refused (nothing charged).","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"generation_id":{"type":"string","description":"The generation_id generate_video returned."}},"required":["generation_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_audio_models":{"post":{"operationId":"list_audio_models","summary":"List the audio models generate_audio can use here — speech (voiceovers), music and sound effects — with prices, voice…","description":"List the audio models generate_audio can use here — speech (voiceovers), music and sound effects — with prices, voices, lengths and the default per kind. Free to call.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["speech","music","sfx"],"description":"Only this kind."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/generate_audio":{"post":{"operationId":"generate_audio","summary":"Generate a voiceover (kind speech: `text` is read word for word), a music clip (music: `text` describes it) or a soun…","description":"Generate a voiceover (kind speech: `text` is read word for word), a music clip (music: `text` describes it) or a sound effect (sfx), and store it in the property's library. Returns its permanent media.url. Audio CAN'T be attached to a post: no channel takes an audio file. Charged to the workspace's credit — speech by the script's length. If the model refuses, REWORD; retrying unchanged fails the same way.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"kind":{"type":"string","enum":["speech","music","sfx"],"description":"Default speech, or the model's kind."},"text":{"type":"string","description":"Speech: the exact script. Music/sfx: what it should sound like."},"model":{"type":"string","description":"A model id from list_audio_models. Omit for the kind's default."},"voice":{"type":"string","description":"Speech: a voice id from list_audio_models."},"style":{"type":"string","description":"Speech, on models that take one: how to say it (\"warm, unhurried, smiling\"). Not read aloud."},"lyrics":{"type":"string","description":"Music, on models that take lyrics: the words to sing."},"duration_seconds":{"type":"integer","description":"Music/sfx: one of the model's lengths."}},"required":["property_slug","text"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/mark_post_published":{"post":{"operationId":"mark_post_published","summary":"Record that a MANUAL post (one with no connected channel: platform \"other\", or any platform the author posts by hand)…","description":"Record that a MANUAL post (one with no connected channel: platform \"other\", or any platform the author posts by hand) has been published. Call this after it's actually posted — not for API posts, which BlastCP sends itself (schedule_post / publish_post). Works on a manual post that is a draft, scheduled, awaiting_human (its reminder fired) or failed.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."},"external_url":{"type":"string","description":"The published post's URL, if you have it. Optional."}},"required":["post_id","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/import_posts":{"post":{"operationId":"import_posts","summary":"Read a connected Substack publication's ALREADY-PUBLISHED posts into this workspace as history.","description":"Read a connected Substack publication's ALREADY-PUBLISHED posts into this workspace as history. Use it once when a workspace connects a publication that has been going for a while, so the posting record is real: what landed, when, and under what link. Imported posts arrive 'published' and are never sent anywhere — do not schedule or publish them. Running it twice imports nothing the second time. LinkedIn CANNOT be imported: LinkedIn grants apps no read of a member's own posts, so record those by hand with create_post + mark_post_published.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"channel_id":{"type":"string","description":"The Substack channel to import from. Optional when exactly one Substack publication is connected. A disconnected or expired one still works — the archive is a public read."},"limit":{"type":"number","description":"Newest N posts. Defaults to 500, which is also the cap for one run."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_post_versions":{"post":{"operationId":"list_post_versions","summary":"Every saved version of a post, newest first: version number, labels (a checkpoint's name, or a system-stamped one lik…","description":"Every saved version of a post, newest first: version number, labels (a checkpoint's name, or a system-stamped one like \"first draft\"), created_via (app or mcp), when, and a short preview of the body — not the full content, call get_post_version for that. Every save writes a version (update_post's `checkpoint` argument just names one); an unchanged save adds no new version.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."}},"required":["post_id","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_post_version":{"post":{"operationId":"get_post_version","summary":"One version's full content (title, body, link card, media) and its metadata.","description":"One version's full content (title, body, link card, media) and its metadata. Get the version number from list_post_versions first.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."},"version":{"type":"number","description":"The version number, from list_post_versions."}},"required":["post_id","version","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/restore_post_version":{"post":{"operationId":"restore_post_version","summary":"Bring an old version's content back as the post's current content.","description":"Bring an old version's content back as the post's current content. This is a NORMAL EDIT, not a rewrite of history: it returns an approved post to draft exactly like any other edit (an edit revokes approval), and the post's CURRENT text is kept as its own version first, so nothing is ever lost. Call schedule_post or publish_post afterward to approve the restored text again.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"post_id":{"type":"string","description":"The post's id (from list_posts, get_post, or create_post)."},"version":{"type":"number","description":"The version number to restore, from list_post_versions."}},"required":["post_id","version","property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_posting_schedule":{"post":{"operationId":"get_posting_schedule","summary":"A property's weekly posting schedule: timezone, the slots its posts queue into, and whether its queue is paused.","description":"A property's weekly posting schedule: timezone, the slots its posts queue into, and whether its queue is paused. Each property has its own schedule, so pass property_slug (it may be omitted only when the workspace has one property). Also returns `week`: the next seven days' slots in the property's timezone and its posts filling them.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/set_posting_schedule":{"post":{"operationId":"set_posting_schedule","summary":"Replace fields of a property's posting schedule — omitted fields keep their current value.","description":"Replace fields of a property's posting schedule — omitted fields keep their current value. slots, when passed, is the FULL replacement list, not a merge; posts already in the queue move to the new slots in order. paused holds the queue without touching posts that are already scheduled. Each property has its own schedule, so pass property_slug (it may be omitted only when the workspace has one property).","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"},"tz":{"type":"string","description":"IANA timezone, e.g. \"America/New_York\"."},"slots":{"type":"array","description":"Full replacement list of weekly slots.","items":{"type":"object","properties":{"weekday":{"type":"number","description":"0-6, 0 = Sunday."},"hour":{"type":"number","description":"0-23."},"minute":{"type":"number","description":"0-59."}},"required":["weekday","hour","minute"],"additionalProperties":false}},"paused":{"type":"boolean","description":"Hold the queue without touching posts that are already scheduled."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/suggest_posting_times":{"post":{"operationId":"suggest_posting_times","summary":"Suggest weekly posting slots for a property, read from that property's own published posts.","description":"Suggest weekly posting slots for a property, read from that property's own published posts. Returns the current schedule alongside the suggestion, plus a one-line `next_step` (`call set_posting_schedule with these slots to adopt them` or `not enough data yet`). Uses ONE platform at a time — the one with the most published posts (YouTube, TikTok or Instagram today); a YouTube engaged view and a TikTok view aren't comparable, and ranking them together would let the louder platform pick the other's times. Ties go to YouTube. Returns three statuses: `ok` (with slots, each weekday+hour+score+posts, in week order); `insufficient_data` (still returns the leading platform's buckets so the UI can show progress); `no_metrics` (no posts with stats yet — connect a channel with metrics and post through it).","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"Workspace context. Optional when you belong to exactly one workspace (or have a current one)."},"property_slug":{"type":"string","description":"The property (brand or presence) this call operates on. Required: every tool that touches a post or a channel needs the property slug, because the URLs handed back live under /{orgSlug}/property/{propertySlug}/…"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/send_feedback":{"post":{"operationId":"send_feedback","summary":"Send feedback to the BlastCP team: request a CHANNEL BlastCP can't post to yet, request a FEATURE, or report a BUG.","description":"Send feedback to the BlastCP team: request a CHANNEL BlastCP can't post to yet, request a FEATURE, or report a BUG. Use it when the user wants to post somewhere list_channels can't connect (e.g. Bluesky, X, Pinterest), when a BlastCP tool behaves wrongly, or when the user says to tell BlastCP something. It emails real people, so say what you'll send and get the user's OK first, write it in their words, and never include tokens, passwords or post text they haven't asked you to share. A reply, if any, goes to the user's email.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["channel","feature","bug"],"description":"channel, feature or bug."},"platform":{"type":"string","description":"Required when kind is channel: the platform to support. Prefer one of: x, bluesky, mastodon, pinterest, reddit, medium, ghost, wordpress, beehiiv, kit, mailchimp, discord, telegram, google-business; otherwise its name."},"message":{"type":"string","description":"What the user wants or what went wrong. Required for feature and bug; for a bug, include the tool, what was expected and the error text. Optional for a channel request (what they'd post there)."},"org_slug":{"type":"string","description":"The workspace this is about, if any."},"property_slug":{"type":"string","description":"The property this is about, if any."}},"required":["kind"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_inbound_hooks":{"post":{"operationId":"list_inbound_hooks","summary":"List a property's inbound hooks (secret URLs another app's server POSTs a message to, which BlastCP puts in the prope…","description":"List a property's inbound hooks (secret URLs another app's server POSTs a message to, which BlastCP puts in the property's connected Slack channel), and the property's Slack channels. Never returns a hook's URL: that is shown once, when it is made.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"The workspace. Optional when the user has one, or a current one."},"property_slug":{"type":"string","description":"The property whose Slack channels the hook posts to."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/create_inbound_hook":{"post":{"operationId":"create_inbound_hook","summary":"Make an inbound hook for a property: a secret URL another app's SERVER can POST { \"text\": \"...\", \"channel_id\"?: \"...\"…","description":"Make an inbound hook for a property: a secret URL another app's SERVER can POST { \"text\": \"...\", \"channel_id\"?: \"...\" } to (Slack mrkdwn, at most 3000 characters), and BlastCP posts it to the property's connected Slack channel at once, with no review (or to the one named, when it has several). At most 60 a minute. Use it when the user wants alerts or notifications from their own app in Slack. The URL is shown ONCE, in this result: give it to the user to put in that app's server environment (never in browser code or a repo), and don't repeat it later.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"The workspace. Optional when the user has one, or a current one."},"property_slug":{"type":"string","description":"The property whose Slack channels the hook posts to."},"name":{"type":"string","description":"What it's for, e.g. \"groovenfill flags\" (at most 80 characters)."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/revoke_inbound_hook":{"post":{"operationId":"revoke_inbound_hook","summary":"Revoke one of a property's inbound hooks.","description":"Revoke one of a property's inbound hooks. Its URL stops working at once (404). Get the id from list_inbound_hooks.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"The workspace. Optional when the user has one, or a current one."},"property_slug":{"type":"string","description":"The property whose Slack channels the hook posts to."},"hook_id":{"type":"string","description":"The hook's id, from list_inbound_hooks."}},"required":["property_slug","hook_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/get_post_set":{"post":{"operationId":"get_post_set","summary":"Where a post set stands, by your external_id (or blast_id): each platform's post with state (draft, scheduled, publis…","description":"Where a post set stands, by your external_id (or blast_id): each platform's post with state (draft, scheduled, publishing, posted, failed, canceled, awaiting_human), scheduled_for, published_at, the platform's own post id and URL once it is out, and the error when it failed. metrics: true adds the latest numbers BlastCP read back (hourly) per post: views, likes, comments, shares, average view duration and percentage, subscribers gained — null where the platform doesn't give one — with when they were fetched.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"The workspace. Optional when the user has one, or a current one."},"property_slug":{"type":"string","description":"The property the set belongs to."},"external_id":{"type":"string","description":"Your own id for the set, as given to create_post_set{ external_id }."},"blast_id":{"type":"string","description":"Instead of external_id: the blast_id create_post_set returned."},"metrics":{"type":"boolean","description":"Add each post's latest metrics."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/cancel_post_set":{"post":{"operationId":"cancel_post_set","summary":"Cancel every post of a set that hasn't gone out (draft, scheduled, failed), by external_id or blast_id.","description":"Cancel every post of a set that hasn't gone out (draft, scheduled, failed), by external_id or blast_id. Posts already published or publishing are left as they are and listed in not_canceled with the reason.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"The workspace. Optional when the user has one, or a current one."},"property_slug":{"type":"string","description":"The property the set belongs to."},"external_id":{"type":"string","description":"Your own id for the set, as given to create_post_set{ external_id }."},"blast_id":{"type":"string","description":"Instead of external_id: the blast_id create_post_set returned."}},"required":["property_slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/create_api_key":{"post":{"operationId":"create_api_key","summary":"Make an API key for a script, cron or server that calls BlastCP over plain HTTP (POST {api_url}/tools/{tool} with `Au…","description":"Make an API key for a script, cron or server that calls BlastCP over plain HTTP (POST {api_url}/tools/{tool} with `Authorization: Bearer <key>`; every tool here is an endpoint). The key acts as you, in ONE workspace only, for a year, at most 30 calls a minute. The key is in this answer ONCE: hand it straight to where it will be stored (a secrets vault, an env var) and never repeat it in chat or write it into a file in a repo. Revoke it with revoke_api_key or on the API keys page. Can't be called with an API key.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"org_slug":{"type":"string","description":"The workspace the key is held to. Optional when the user has one, or a current one."},"label":{"type":"string","description":"What will use it, e.g. \"Groove 'n' Fill video engine\". At most 80 characters."}},"required":["label"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/list_api_keys":{"post":{"operationId":"list_api_keys","summary":"Your live API keys: label, the workspace each is held to, made, last used, expires, and key_id (for revoke_api_key).","description":"Your live API keys: label, the workspace each is held to, made, last used, expires, and key_id (for revoke_api_key). Never the keys themselves.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tools/revoke_api_key":{"post":{"operationId":"revoke_api_key","summary":"Revoke one of your API keys by key_id (from list_api_keys).","description":"Revoke one of your API keys by key_id (from list_api_keys). Every call with it fails from now on. Can't be called with an API key.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"key_id":{"type":"string","description":"The key_id from list_api_keys."}},"required":["key_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The tool's result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Result":{"type":"object","required":["data"],"properties":{"data":{"description":"The tool's JSON answer, or null when it answered in words only"},"text":{"type":"array","items":{"type":"string"},"description":"Plain-text blocks, as written"},"images":{"type":"array","items":{"type":"object","properties":{"mime_type":{"type":"string"},"data":{"type":"string","contentEncoding":"base64"}}}}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}