{"openapi":"3.1.0","info":{"title":"Wordflux Multi-Organization & Multi-Brand Social & CMS Publishing API (MCP & ChatGPT Actions)","version":"1.2.0","description":"Select any organization and brand, inspect Brand Voices and Context Profiles, check what is scheduled for today or any date range, generate visuals and carousels, create content as a Draft, or publish immediately across LinkedIn (Personal Profile, Company Pages, PDF carousels), Instagram (4:5 or 1:1 image or Reel), Threads (single posts & threads), Google Business Profile (Locations), Facebook Pages, X (single posts & threads), Pinterest Boards, Bluesky, Mastodon, TikTok, YouTube, WordPress, Webflow, Ghost, Shopify Blog, Custom Headless Webhooks, and Wordflux Hosted Public Blog (platform='blog'), with in-place CMS updates and Client Review Links (createReviewLink=true). IMPORTANT ASSISTANT RULE: Whenever you create, draft, update, schedule, or publish content, ALWAYS share the returned viewUrl (and reviewUrl or postUrl) with the user and explicitly offer to update it in place via updateContent (/mcp/content/update) or manageScheduledPost (/mcp/schedule/manage).","contact":{"name":"Wordflux Support","url":"https://www.word-flux.com/features/mcp-server"}},"servers":[{"url":"https://api.word-flux.com","description":"Wordflux Production API Server"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Generate your Wordflux MCP API Key in Organization Settings -> API Keys."},"oauth2":{"type":"oauth2","description":"Sign in or create a Wordflux account directly from ChatGPT, Gemini, or Claude via OAuth 2.1.","flows":{"authorizationCode":{"authorizationUrl":"https://api.word-flux.com/mcp/oauth/authorize","tokenUrl":"https://api.word-flux.com/mcp/oauth/token","scopes":{"mcp:tools":"Full access: manage brands, drafts, schedule posts, publish content, and configure webhooks","mcp:tools:draft_only":"Draft-Only safety mode: create and edit drafts, generate visuals/carousels, read review feedback, and configure sources without publishing live","mcp:tools:read_only":"Read-Only analyst mode: inspect brands, content, schedules, analytics, review feedback, and activity logs without modifying content"}}}}},"schemas":{"ChannelTarget":{"type":"object","required":["platform"],"properties":{"platform":{"type":"string","description":"Target channel: linkedin, instagram, instagram-direct, threads, google-business, facebook, x, pinterest, bluesky, mastodon, youtube, tiktok, wordpress, webflow, ghost, shopify, webhook, blog, article"},"assetId":{"type":"string","description":"Optional existing ContentAsset UUID inside contentId to schedule or publish"},"scheduledAt":{"type":"string","format":"date-time","description":"Optional per-target ISO 8601 UTC timestamp override for staggered multi-channel scheduling"},"integrationId":{"type":"string","description":"Optional connected account UUID from /mcp/brands"},"pageId":{"type":"string","description":"Destination page, location, or CMS collection/blog ID. For LinkedIn: \"profile\" or \"urn:li:organization:123\". For Webflow: collectionId. For Shopify: blogId. For Facebook/Google Business/Instagram/Pinterest: pageId from /mcp/brands."},"pageName":{"type":"string","description":"Human-readable page or location name (e.g. \"Personal Profile\", \"WordFlux Official\", \"Amsterdam Office\")"},"title":{"type":"string","description":"Optional title for CMS/Hosted Blog articles, Pinterest Pins, or YouTube"},"content":{"type":"string","description":"Platform-specific caption or CMS/Blog article body (Markdown or HTML; optional when threadPosts is provided)"},"threadPosts":{"type":"array","items":{"type":"string"},"description":"Optional ordered array of posts for native multi-post threads on X, Threads, Bluesky, or Mastodon"},"documentUrl":{"type":"string","description":"Optional HTTPS PDF URL (such as pdfUrl from /mcp/carousel/generate) for LinkedIn swipeable PDF document carousels"},"documentTitle":{"type":"string","description":"Optional title displayed on a LinkedIn PDF document carousel"},"videoUrl":{"type":"string","description":"Optional HTTPS MP4/MOV video URL for native video publishing (Reels, TikTok, Shorts, LinkedIn, X, Facebook, Threads, Bluesky, Mastodon)"},"firstComment":{"type":"string","description":"Optional first comment for links or hashtags"},"metaDescription":{"type":"string","description":"Optional SEO meta description / excerpt (150-160 chars) for WordPress, Webflow, Ghost, Shopify, Webhook, or Hosted Blog"},"tags":{"type":"array","items":{"type":"string"},"description":"Optional SEO tags array for CMS or Hosted Blog"},"slug":{"type":"string","description":"Optional custom URL slug for CMS or Wordflux Hosted Public Blog"},"imageUrl":{"type":"string","description":"Platform-specific HTTPS image URL (Instagram: 4:5 1080x1350 or 1:1 1080x1080 required; LinkedIn/Threads/Facebook: 1:1 or 4:5; Google Business: 1:1 or 4:3; X/WordPress/Blog: 16:9 or 1:1; Pinterest: 2:3 or 4:5)"},"imageUrls":{"type":"array","items":{"type":"string"},"description":"Optional array of platform-specific HTTPS image URLs for multi-image posts"},"base64Images":{"type":"array","items":{"type":"string"},"description":"Optional Base64 or Data URI images"},"openaiFileIdRefs":{"type":"array","items":{"type":"string"},"description":"Array of user-uploaded or AI-generated image files from the conversation to persist and attach"},"svgImages":{"type":"array","items":{"type":"string"},"description":"Optional SVG graphics (data:image/svg+xml;base64,...) to rasterize into social-ready PNG images"},"ctaUrl":{"type":"string","description":"Optional LEARN_MORE link URL for Google Business Profile updates"}}},"UpdateAssetItem":{"type":"object","properties":{"assetId":{"type":"string","description":"Existing ContentAsset UUID to update in place. Omit to match by platform/pageId or add a new platform asset to the campaign."},"platform":{"type":"string","description":"Target platform (required when adding a new channel asset)"},"addAsNewAsset":{"type":"boolean","description":"Set true to force adding a separate asset even if this platform already exists on the campaign"},"title":{"type":"string"},"content":{"type":"string"},"threadPosts":{"type":"array","items":{"type":"string"},"description":"Optional ordered array of posts for multi-post threads on X, Threads, Bluesky, or Mastodon"},"documentUrl":{"type":"string","description":"Optional HTTPS PDF URL for LinkedIn PDF document carousels (pass empty string to clear)"},"documentTitle":{"type":"string","description":"Optional title for LinkedIn PDF document carousels"},"videoUrl":{"type":"string","description":"Optional HTTPS MP4/MOV video URL (pass empty string to clear)"},"firstComment":{"type":"string"},"ctaUrl":{"type":"string"},"metaDescription":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"slug":{"type":"string"},"pageId":{"type":"string"},"pageName":{"type":"string"},"integrationId":{"type":"string"},"imageUrl":{"type":"string"},"imageUrls":{"type":"array","items":{"type":"string"}},"base64Images":{"type":"array","items":{"type":"string"}},"openaiFileIdRefs":{"type":"array","items":{"type":"string"},"description":"Array of user-uploaded or AI-generated image files from the conversation to persist and attach"},"svgImages":{"type":"array","items":{"type":"string"},"description":"Optional SVG graphics (data:image/svg+xml;base64,...) to rasterize into PNG images"},"clearImages":{"type":"boolean","description":"Set true to clear attached images on this asset"}}},"LinkedInProspect":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Prospect full name"},"role":{"type":"string","description":"Prospect role or headline"},"company":{"type":"string","description":"Prospect company name"},"linkedinUrl":{"type":"string","description":"Optional LinkedIn profile or post URL"},"context":{"type":"string","description":"Recent post topic, shared pain point, or trigger event"},"connectionNote":{"type":"string","description":"Optional custom connection note (<300 chars)"},"directMessage":{"type":"string","description":"Optional custom follow-up direct message"},"commentReply":{"type":"string","description":"Optional custom public post comment reply"}}}}},"security":[{"bearerAuth":[]},{"oauth2":["mcp:tools"]}],"paths":{"/mcp/organizations":{"get":{"operationId":"listOrganizations","summary":"List all organizations the authenticated user belongs to, along with their brands, roles, subscription tier, and credits","responses":{"200":{"description":"List of organizations and their brands so the user or AI agent can select which organization to work in"}}}},"/mcp/brands":{"get":{"operationId":"listBrands","summary":"List all brands, connected channels, selectable pages/locations (Personal Profile vs. Company Pages), and image aspect ratio rules for an organization","parameters":[{"name":"organizationId","in":"query","schema":{"type":"string"},"description":"Optional organization UUID from /mcp/organizations"},{"name":"organizationName","in":"query","schema":{"type":"string"},"description":"Optional organization name"}],"responses":{"200":{"description":"Array of brands with connected channels, destinations, and imageSpec"}}}},"/mcp/brand-context":{"get":{"operationId":"getBrandContext","summary":"Fetch Brand Voices (tone, style, vocabulary, examples) and Context Profiles (rules, target audience) for a brand","parameters":[{"name":"organizationId","in":"query","schema":{"type":"string"}},{"name":"organizationName","in":"query","schema":{"type":"string"}},{"name":"brandId","in":"query","schema":{"type":"string"}},{"name":"brandName","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Brand Voices and Context Profiles for on-brand content creation"}}}},"/mcp/content":{"get":{"operationId":"listContent","summary":"Search and list campaigns and drafts in the Wordflux Content Library across titles, source text, and post copy","parameters":[{"name":"organizationId","in":"query","schema":{"type":"string"}},{"name":"organizationName","in":"query","schema":{"type":"string"}},{"name":"brandId","in":"query","schema":{"type":"string"}},{"name":"brandName","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"},"description":"Keyword search across campaign titles, source text, and asset body copy"},{"name":"platform","in":"query","schema":{"type":"string"},"description":"Filter campaigns containing a specific platform asset (e.g. linkedin, instagram, x, threads, wordpress)"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Filter by status: DRAFT, CLIENT_APPROVED, or COMPLETED"},{"name":"page","in":"query","schema":{"type":"integer"},"description":"1-based page number (default 1)"},{"name":"limit","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Paginated list of drafts and campaigns with assetIds, previews, and editor links"}}},"post":{"operationId":"createContent","summary":"Create content in the Wordflux Content Library as a Draft (default), or publish live immediately (mode='publish_now'), or schedule (mode='schedule'). Always offer follow-up edits via /mcp/content/update.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentId":{"type":"string","description":"Optional existing draft contentId to update in place instead of creating a duplicate"},"title":{"type":"string","description":"Title for the draft, article, or campaign"},"mode":{"type":"string","enum":["draft","publish_now","schedule","pending_approval"],"description":"Defaults to 'draft'. Set to 'publish_now' to publish live immediately."},"saveAsDraft":{"type":"boolean","description":"Defaults to true. Set to false to publish immediately."},"createReviewLink":{"type":"boolean","description":"Set true to generate a shareable no-login Client Review URL (/review/:token)"},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"},"platform":{"type":"string"},"integrationId":{"type":"string"},"pageId":{"type":"string"},"pageName":{"type":"string"},"content":{"type":"string"},"threadPosts":{"type":"array","items":{"type":"string"},"description":"Optional ordered array of posts for X, Threads, Bluesky, or Mastodon multi-post threads"},"documentUrl":{"type":"string","description":"Optional HTTPS PDF URL for LinkedIn PDF document carousels"},"documentTitle":{"type":"string","description":"Optional title for LinkedIn PDF document carousels"},"videoUrl":{"type":"string","description":"Optional HTTPS MP4/MOV video URL for native video posts"},"firstComment":{"type":"string"},"ctaUrl":{"type":"string"},"metaDescription":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"slug":{"type":"string"},"scheduledAt":{"type":"string"},"imageUrl":{"type":"string"},"imageUrls":{"type":"array","items":{"type":"string"}},"base64Images":{"type":"array","items":{"type":"string"}},"openaiFileIdRefs":{"type":"array","items":{"type":"string"},"description":"Array of user-uploaded or AI-generated image files from the conversation to persist and attach"},"svgImages":{"type":"array","items":{"type":"string"},"description":"Optional SVG graphics (data:image/svg+xml;base64,...) to rasterize into social-ready PNG images"},"sourceUrl":{"type":"string"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/ChannelTarget"}}}}}}},"responses":{"200":{"description":"Created draft or published content details with Wordflux editor URL and agentGuidance"}}}},"/mcp/content/{contentId}":{"get":{"operationId":"getContent","summary":"Fetch full untruncated copy, per-asset assetIds, destination pages, attached imageUrls, and scheduled posts for a Wordflux campaign or draft","parameters":[{"name":"contentId","in":"path","required":true,"schema":{"type":"string"},"description":"Campaign or draft UUID from /mcp/content"},{"name":"assetId","in":"query","schema":{"type":"string"},"description":"Optional specific ContentAsset UUID to filter"},{"name":"platform","in":"query","schema":{"type":"string"},"description":"Optional platform filter"},{"name":"includeVisualPreview","in":"query","schema":{"type":"boolean"},"description":"Set true to render visual Social Feed Preview Card PNG URLs for each matching asset so AI chats can show a realistic post preview inline"},{"name":"organizationId","in":"query","schema":{"type":"string"}},{"name":"organizationName","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Full untruncated campaign details, assets, media, and scheduled posts"}}}},"/mcp/content/update":{"post":{"operationId":"updateContent","summary":"Update an existing Wordflux campaign in place: edit title/status, revise asset copy/media/SEO fields, clear images, add new platform assets to the same campaign, generate a Client Review Link, or remove assets without creating duplicates","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["contentId"],"properties":{"contentId":{"type":"string","description":"Existing campaign or draft UUID"},"title":{"type":"string"},"status":{"type":"string","description":"Optional campaign status (DRAFT, CLIENT_APPROVED, COMPLETED)"},"sourceUrl":{"type":"string"},"createReviewLink":{"type":"boolean","description":"Set true to generate a shareable no-login Client Review URL (/review/:token)"},"assetId":{"type":"string"},"platform":{"type":"string"},"addAsNewAsset":{"type":"boolean"},"content":{"type":"string"},"threadPosts":{"type":"array","items":{"type":"string"},"description":"Optional ordered array of posts for multi-post threads on X, Threads, Bluesky, or Mastodon"},"documentUrl":{"type":"string","description":"Optional HTTPS PDF URL for LinkedIn PDF document carousels (pass empty string to clear)"},"documentTitle":{"type":"string","description":"Optional title for LinkedIn PDF document carousels"},"videoUrl":{"type":"string","description":"Optional HTTPS MP4/MOV video URL (pass empty string to clear)"},"postTitle":{"type":"string"},"firstComment":{"type":"string"},"ctaUrl":{"type":"string"},"metaDescription":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"slug":{"type":"string"},"pageId":{"type":"string"},"pageName":{"type":"string"},"integrationId":{"type":"string"},"imageUrl":{"type":"string"},"imageUrls":{"type":"array","items":{"type":"string"}},"base64Images":{"type":"array","items":{"type":"string"}},"openaiFileIdRefs":{"type":"array","items":{"type":"string"},"description":"Array of user-uploaded or AI-generated image files from the conversation to persist and attach"},"svgImages":{"type":"array","items":{"type":"string"},"description":"Optional SVG graphics (data:image/svg+xml;base64,...) to rasterize into PNG images"},"clearImages":{"type":"boolean"},"assets":{"type":"array","items":{"$ref":"#/components/schemas/UpdateAssetItem"}},"removeAssetIds":{"type":"array","items":{"type":"string"}},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"}}}}}},"responses":{"200":{"description":"Updated campaign with full assets, synced pending scheduled posts count, and agentGuidance"}}}},"/mcp/content/delete":{"post":{"operationId":"deleteContent","summary":"Move an unwanted or duplicate draft campaign to trash (cancelling pending scheduled posts) or delete a single assetId from a campaign","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["contentId"],"properties":{"contentId":{"type":"string","description":"Campaign or draft UUID"},"assetId":{"type":"string","description":"Optional single ContentAsset UUID to delete while keeping the campaign intact"},"organizationId":{"type":"string"},"organizationName":{"type":"string"}}}}}},"responses":{"200":{"description":"Deletion confirmation"}}}},"/mcp/publish":{"post":{"operationId":"publishNow","summary":"Immediately publish a social post, multi-post thread, LinkedIn PDF carousel, video, or CMS article (WordPress, Webflow, Ghost, Shopify Blog, Custom Webhook, Hosted Blog), OR save as a Draft (saveAsDraft=true / mode='draft'), OR publish/re-export an existing draft contentId in place","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","description":"Optional organization UUID from /mcp/organizations"},"organizationName":{"type":"string","description":"Optional organization name"},"brandId":{"type":"string","description":"Target brand UUID"},"brandName":{"type":"string","description":"Target brand name (matched automatically)"},"contentId":{"type":"string","description":"Optional existing draft contentId from /mcp/content to publish live (or update WordPress, Webflow, Ghost, Shopify, or Webhook in place)"},"scheduledPostId":{"type":"string","description":"Optional existing scheduled post UUID to publish immediately"},"mode":{"type":"string","enum":["publish_now","draft","schedule","pending_approval"],"description":"Publication mode: 'publish_now' (default), 'draft' (save in Content Library without publishing yet), or 'schedule'"},"saveAsDraft":{"type":"boolean","description":"Set true to save as a Draft in Wordflux Content Library instead of publishing live immediately"},"createReviewLink":{"type":"boolean","description":"Set true to generate a shareable no-login Client Review URL (/review/:token)"},"scheduledAt":{"type":"string","description":"Optional ISO 8601 UTC timestamp when mode is 'schedule'"},"title":{"type":"string","description":"Optional title for the content item or article"},"platform":{"type":"string","description":"Single channel shorthand (linkedin, instagram, threads, google-business, facebook, x, pinterest, bluesky, mastodon, tiktok, youtube, wordpress, webflow, ghost, shopify, webhook, blog; omit if using targets[])"},"integrationId":{"type":"string"},"pageId":{"type":"string","description":"Single channel pageId or CMS collection/blog ID (\"profile\" or \"urn:li:organization:...\" for LinkedIn, Webflow collectionId, Shopify blogId)"},"pageName":{"type":"string","description":"Single channel page or location name"},"content":{"type":"string","description":"Post caption or article body text (Markdown or HTML; optional when threadPosts is provided)"},"threadPosts":{"type":"array","items":{"type":"string"},"description":"Optional ordered array of posts for native multi-post threads on X, Threads, Bluesky, or Mastodon"},"documentUrl":{"type":"string","description":"Optional HTTPS PDF URL (such as pdfUrl from /mcp/carousel/generate) for LinkedIn swipeable PDF document carousels"},"documentTitle":{"type":"string","description":"Optional title displayed on a LinkedIn PDF document carousel"},"videoUrl":{"type":"string","description":"Optional HTTPS MP4/MOV video URL for native video publishing"},"firstComment":{"type":"string","description":"Optional first comment"},"ctaUrl":{"type":"string"},"metaDescription":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"slug":{"type":"string"},"imageUrl":{"type":"string"},"imageUrls":{"type":"array","items":{"type":"string"},"description":"HTTPS image URLs to persist to R2 and attach (Instagram requires 4:5 or 1:1 image)"},"base64Images":{"type":"array","items":{"type":"string"},"description":"Base64 or Data URI images to upload to R2 and attach"},"openaiFileIdRefs":{"type":"array","items":{"type":"string"},"description":"Array of user-uploaded or AI-generated image files from the conversation to persist and attach"},"svgImages":{"type":"array","items":{"type":"string"},"description":"Optional SVG graphics (data:image/svg+xml;base64,...) to rasterize into social-ready PNG images"},"sourceUrl":{"type":"string","description":"Optional webpage URL to auto-extract an OpenGraph hero image from"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/ChannelTarget"},"description":"Publish to multiple channels and pages simultaneously"}}}}}},"responses":{"200":{"description":"Per-channel publication results including live postUrl permalinks, draft editor link, and agentGuidance"}}}},"/mcp/schedule":{"get":{"operationId":"getSchedule","summary":"Ask what is scheduled for today (date='today'), tomorrow (date='tomorrow'), this week (date='this_week'), a specific YYYY-MM-DD date, or a custom date range","parameters":[{"name":"date","in":"query","schema":{"type":"string"},"description":"Convenient date filter: 'today', 'tomorrow', 'this_week', or 'YYYY-MM-DD' (e.g. '2026-11-06')"},{"name":"organizationId","in":"query","schema":{"type":"string"}},{"name":"organizationName","in":"query","schema":{"type":"string"}},{"name":"brandId","in":"query","schema":{"type":"string"}},{"name":"brandName","in":"query","schema":{"type":"string"}},{"name":"platform","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"},"description":"Filter by status: SCHEDULED, PUBLISHED, PENDING_APPROVAL, FAILED"},{"name":"startDate","in":"query","schema":{"type":"string"}},{"name":"endDate","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Scheduled posts within timeframe with todayCount and isToday flags"}}},"post":{"operationId":"schedulePost","summary":"Schedule an existing campaign contentId/assetId or new post (or multi-channel targets with staggered scheduledAt timestamps) for a future ISO 8601 UTC timestamp, or publish immediately","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"organizationName":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"},"contentId":{"type":"string","description":"Optional existing campaign/draft contentId from /mcp/content to schedule without duplicating"},"assetId":{"type":"string","description":"Optional specific ContentAsset UUID inside contentId to schedule"},"title":{"type":"string"},"scheduledAt":{"type":"string","description":"ISO 8601 UTC timestamp"},"publishNow":{"type":"boolean","description":"Set true to publish live immediately instead of scheduling"},"saveAsDraft":{"type":"boolean","description":"Set true to save as a draft in Wordflux Content Library without scheduling"},"platform":{"type":"string"},"pageId":{"type":"string"},"pageName":{"type":"string"},"content":{"type":"string"},"threadPosts":{"type":"array","items":{"type":"string"},"description":"Optional ordered array of posts for X, Threads, Bluesky, or Mastodon multi-post threads"},"documentUrl":{"type":"string","description":"Optional HTTPS PDF URL for LinkedIn PDF document carousels"},"documentTitle":{"type":"string","description":"Optional title for LinkedIn PDF document carousels"},"videoUrl":{"type":"string","description":"Optional HTTPS MP4/MOV video URL for native video posts"},"firstComment":{"type":"string"},"metaDescription":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"slug":{"type":"string"},"imageUrls":{"type":"array","items":{"type":"string"}},"base64Images":{"type":"array","items":{"type":"string"}},"openaiFileIdRefs":{"type":"array","items":{"type":"string"},"description":"Array of user-uploaded or AI-generated image files from the conversation to persist and attach"},"svgImages":{"type":"array","items":{"type":"string"},"description":"Optional SVG graphics (data:image/svg+xml;base64,...) to rasterize into social-ready PNG images"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/ChannelTarget"}}}}}}},"responses":{"200":{"description":"Created scheduled post job details"}}}},"/mcp/campaign":{"post":{"operationId":"createCampaign","summary":"Create a multi-platform campaign draft in Wordflux Content Library across social, WordPress, and Hosted Blog channels, or publish immediately when publishNow=true. Always offer follow-up updates via /mcp/content/update.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title","assets"],"properties":{"title":{"type":"string"},"sourceText":{"type":"string"},"sourceUrl":{"type":"string"},"publishNow":{"type":"boolean"},"createReviewLink":{"type":"boolean","description":"Set true to generate a shareable no-login Client Review URL (/review/:token)"},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"},"imageUrls":{"type":"array","items":{"type":"string"}},"base64Images":{"type":"array","items":{"type":"string"}},"openaiFileIdRefs":{"type":"array","items":{"type":"string"},"description":"Array of user-uploaded or AI-generated image files from the conversation to persist and attach"},"svgImages":{"type":"array","items":{"type":"string"},"description":"Optional SVG graphics (data:image/svg+xml;base64,...) to rasterize into social-ready PNG images"},"assets":{"type":"array","items":{"$ref":"#/components/schemas/ChannelTarget"}}}}}}},"responses":{"200":{"description":"Created campaign draft with Wordflux editor URL and agentGuidance"}}}},"/mcp/pending":{"get":{"operationId":"getPendingContent","summary":"Fetch automated content awaiting review or approval with full copy and attached imageUrls","parameters":[{"name":"organizationId","in":"query","schema":{"type":"string"}},{"name":"organizationName","in":"query","schema":{"type":"string"}},{"name":"brandId","in":"query","schema":{"type":"string"}},{"name":"brandName","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"List of pending scheduled posts awaiting approval"}}}},"/mcp/approve":{"post":{"operationId":"approvePost","summary":"Approve a single pending post or all pending auto-created posts for a brand","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"postId":{"type":"string"},"approveAll":{"type":"boolean"},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"}}}}}},"responses":{"200":{"description":"Approval confirmation"}}}},"/mcp/media":{"get":{"operationId":"listMedia","summary":"Browse and search images in the Wordflux Media Library to reuse on posts","parameters":[{"name":"organizationId","in":"query","schema":{"type":"string"}},{"name":"organizationName","in":"query","schema":{"type":"string"}},{"name":"brandId","in":"query","schema":{"type":"string"}},{"name":"brandName","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"},"description":"Optional keyword search across visual prompts and captions"},{"name":"limit","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"List of stored brand visuals with URLs"}}}},"/mcp/upload-media":{"post":{"operationId":"uploadMedia","summary":"Persist an external image URL or Base64 image into Wordflux Cloudflare R2 storage","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"imageUrl":{"type":"string"},"base64Data":{"type":"string"},"openaiFileIdRefs":{"type":"array","items":{"type":"string"},"description":"Array of user-uploaded or AI-generated image files from the conversation to persist into Wordflux R2"},"svgMarkup":{"type":"string","description":"Optional SVG graphic (data:image/svg+xml;base64,...) to rasterize into PNG and store in Wordflux R2"},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"},"caption":{"type":"string"}}}}}},"responses":{"200":{"description":"Permanent Cloudflare R2 media URL"}}}},"/mcp/linkedin-outreach":{"post":{"operationId":"generateLinkedInOutreach","summary":"Generate and store personalized 1-to-1 LinkedIn outreach sequences (connection notes <300 chars, follow-up DMs, and public comment replies) for up to 100 prospects using Brand Voice and Context Profile","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prospects"],"properties":{"campaignTitle":{"type":"string"},"offerOrAngle":{"type":"string"},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"},"prospects":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInProspect"}}}}}}},"responses":{"200":{"description":"Personalized LinkedIn connection notes, DMs, and comment replies saved in Wordflux Content Library"}}}},"/mcp/auto-scheduler/inject":{"post":{"operationId":"injectUrlsToAutoScheduler","summary":"Inject 1 to 20 webpage, news article, blog post, or YouTube video URLs into the Wordflux Auto-Scheduler / Content Automation to scrape, convert into multi-channel social posts & carousels, and auto-schedule","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Single webpage, article, or YouTube URL to inject"},"urls":{"type":"array","items":{"type":"string"},"description":"Array of webpage, article, or YouTube URLs (up to 20 per call) to inject into the Wordflux Auto-Scheduler"},"items":{"type":"array","description":"Optional rich URL objects with pre-extracted title, description, contentText, and per-URL instructions","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"contentText":{"type":"string"},"thumbnailUrl":{"type":"string"},"customInstructions":{"type":"string"},"platforms":{"type":"array","items":{"type":"string"}},"autoSchedule":{"type":"boolean"},"convertYoutubeVideo":{"type":"boolean"}}}},"autoSchedule":{"type":"boolean","description":"True (default) to immediately run the Auto-Scheduler pipeline; false to save to Content Automation for reading/review first"},"platforms":{"type":"array","items":{"type":"string"},"description":"Optional target social platforms (e.g. ['linkedin', 'instagram', 'threads', 'x', 'google-business'])"},"customInstructions":{"type":"string","description":"Optional angle or instructions for how the Auto-Scheduler should repurpose the articles"},"language":{"type":"string"},"tone":{"type":"string"},"contextProfileId":{"type":"string"},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"}}}}}},"responses":{"200":{"description":"Confirmation of URLs injected into the Wordflux Auto-Scheduler or Content Automation"}}}},"/mcp/radar":{"get":{"operationId":"listRadarItems","summary":"List discovered articles, RSS feed items, and captured URLs in brand Content Automation so AI agents can tell the user which articles to read or convert to social posts today","parameters":[{"name":"organizationId","in":"query","schema":{"type":"string"}},{"name":"organizationName","in":"query","schema":{"type":"string"}},{"name":"brandId","in":"query","schema":{"type":"string"}},{"name":"brandName","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"},"description":"Optional keyword search across article titles and descriptions"},{"name":"limit","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Discovered articles and URLs in brand Content Automation"}}}},"/mcp/schedule/manage":{"post":{"operationId":"manageScheduledPost","summary":"Manage an existing scheduled post: reschedule to a new date/time, update post text/firstComment/images/destination page, clear images, cancel/unschedule, or publish immediately","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["postId","action"],"properties":{"postId":{"type":"string","description":"Scheduled post UUID from /mcp/schedule"},"action":{"type":"string","enum":["reschedule","cancel","delete","update","publish_now"],"description":"Action to perform on the scheduled post"},"scheduledAt":{"type":"string","format":"date-time","description":"New ISO 8601 UTC timestamp when action is 'reschedule'"},"content":{"type":"string","description":"Optional updated post text/copy"},"threadPosts":{"type":"array","items":{"type":"string"},"description":"Optional updated ordered array of posts for multi-post threads"},"documentUrl":{"type":"string","description":"Optional updated HTTPS PDF URL for LinkedIn PDF document carousels (pass empty string to clear)"},"documentTitle":{"type":"string","description":"Optional updated title for LinkedIn PDF document carousels"},"videoUrl":{"type":"string","description":"Optional updated HTTPS MP4/MOV video URL (pass empty string to clear)"},"firstComment":{"type":"string","description":"Optional updated first comment"},"title":{"type":"string"},"ctaUrl":{"type":"string"},"pageId":{"type":"string"},"pageName":{"type":"string"},"imageUrl":{"type":"string","description":"Optional single HTTPS image URL to attach"},"imageUrls":{"type":"array","items":{"type":"string"},"description":"Optional HTTPS image URLs array to replace post media"},"base64Images":{"type":"array","items":{"type":"string"},"description":"Optional Base64 or Data URI images to upload to R2 and attach"},"openaiFileIdRefs":{"type":"array","items":{"type":"string"},"description":"Array of user-uploaded or AI-generated image files from the conversation to persist and attach"},"svgImages":{"type":"array","items":{"type":"string"},"description":"Optional SVG graphics (data:image/svg+xml;base64,...) to rasterize into PNG images"},"clearImages":{"type":"boolean","description":"Set true to clear attached images on this scheduled post"},"organizationId":{"type":"string"},"organizationName":{"type":"string"}}}}}},"responses":{"200":{"description":"Updated, rescheduled, cancelled, or immediately published post confirmation with agentGuidance"}}}},"/mcp/analytics":{"get":{"operationId":"getAnalytics","summary":"Fetch live social engagement insights, hosted public page analytics, and publishing/scheduling breakdown for a brand","parameters":[{"name":"organizationId","in":"query","schema":{"type":"string"}},{"name":"organizationName","in":"query","schema":{"type":"string"}},{"name":"brandId","in":"query","schema":{"type":"string"}},{"name":"brandName","in":"query","schema":{"type":"string"}},{"name":"startDate","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"endDate","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"refresh","in":"query","schema":{"type":"boolean"},"description":"Bypass short-lived cache to fetch live social insights and hosted public page metrics"}],"responses":{"200":{"description":"Live social engagement insights, hosted public page analytics, and publishing breakdown"}}}},"/mcp/media/generate":{"post":{"operationId":"generateVisual","summary":"Generate native AI visuals or royalty-free stock photos with optional Brand Template overlays, and optionally attach directly in place to an existing campaign (contentId)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"AI image generation prompt or stock photo search topic"},"source":{"type":"string","description":"'ai' (default) or 'stock'"},"aspectRatio":{"type":"string","description":"'1:1', '4:5', '3:4', '4:3', '16:9', or '9:16'"},"quantity":{"type":"number","description":"Number of visuals to generate (1 to 3, default 1)"},"platform":{"type":"string"},"applyBrandTemplate":{"type":"boolean"},"templateId":{"type":"string"},"headline":{"type":"string"},"contentId":{"type":"string","description":"Optional existing campaign contentId to attach the generated visual(s) directly in place"},"assetId":{"type":"string"},"appendToExistingMedia":{"type":"boolean"},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"}}}}}},"responses":{"200":{"description":"Generated permanent R2 visual URLs and optional in-place campaign attachment summary"}}}},"/mcp/carousel/generate":{"post":{"operationId":"generateCarousel","summary":"Generate a multi-slide branded carousel (slide PNGs + optional LinkedIn swipeable PDF) using client brand colors, and optionally attach directly in place to an existing campaign (contentId)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string"},"contentText":{"type":"string"},"sourceUrl":{"type":"string"},"slideCount":{"type":"number"},"aspectRatio":{"type":"string"},"themeId":{"type":"string"},"colorMode":{"type":"string"},"disableStockPhotos":{"type":"boolean"},"exportPdf":{"type":"boolean"},"contentId":{"type":"string"},"assetId":{"type":"string"},"platform":{"type":"string"},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"}}}}}},"responses":{"200":{"description":"Generated multi-slide carousel R2 PNG URLs, optional pdfUrl, and in-place campaign attachment summary"}}}},"/mcp/brand":{"post":{"operationId":"manageBrand","summary":"Create, update, or delete a Brand (website, industry, colors, preferredTopics, timezone) or toggle organization public profile","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["create","update","delete","toggle_org_public_profile"]},"brandId":{"type":"string"},"brandName":{"type":"string"},"name":{"type":"string"},"websiteUrl":{"type":"string"},"industry":{"type":"string"},"preferredTopics":{"type":"array","items":{"type":"string"}},"brandPrimaryColor":{"type":"string"},"brandSecondaryColor":{"type":"string"},"timezone":{"type":"string"},"organizationId":{"type":"string"},"organizationName":{"type":"string"}}}}}},"responses":{"200":{"description":"Brand operation result"}}}},"/mcp/public-page":{"post":{"operationId":"managePublicPage","summary":"Publish or unpublish a campaign as a Wordflux Hosted Public Page with optional slug, tags, and author profile","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action","contentId"],"properties":{"action":{"type":"string","enum":["publish","unpublish"]},"contentId":{"type":"string"},"assetId":{"type":"string"},"customSlug":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"authorProfileId":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"}}}}}},"responses":{"200":{"description":"Hosted public page status and URL"}}}},"/mcp/integrations":{"post":{"operationId":"manageIntegrations","summary":"Manage connected social/CMS integrations, OAuth connect links, or signed outbound webhooks (list_webhooks, create_webhook, delete_webhook, test_webhook)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["list","test_connection","create","update","delete","get_wp_categories","refresh_social_token","get_social_connect_links","list_webhooks","create_webhook","delete_webhook","test_webhook"]},"integrationId":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"},"webhookId":{"type":"string"},"webhookEvents":{"type":"array","items":{"type":"string","enum":["radar.item_discovered","lead.opportunity_found","content.feedback_received","post.published","post.failed","*"]}},"description":{"type":"string"},"brandId":{"type":"string"},"brandName":{"type":"string"}}}}}},"responses":{"200":{"description":"Integration or outbound webhook operation result"}}}},"/mcp/social-inbox":{"post":{"operationId":"manageSocialInbox","summary":"Read social timeline posts, inspect post comments, or reply to a comment","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["get_timeline","get_comments","reply"]},"integrationId":{"type":"string"},"platform":{"type":"string"},"postId":{"type":"string"},"commentId":{"type":"string"},"message":{"type":"string"},"limit":{"type":"number"},"brandId":{"type":"string"},"brandName":{"type":"string"}}}}}},"responses":{"200":{"description":"Social inbox timeline, comments, or reply confirmation"}}}},"/mcp/content-extras":{"post":{"operationId":"manageContentExtras","summary":"Fetch client review feedback (get_review_feedback), restore trashed content, revert versions, move content between brands, or manage author profiles","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["restore","revert_version","move_to_brand","revoke_review_link","list_authors","create_author","delete_author","get_review_feedback"]},"contentId":{"type":"string"},"versionId":{"type":"string"},"targetBrandId":{"type":"string"},"authorId":{"type":"string"},"status":{"type":"string"},"limit":{"type":"number"},"brandId":{"type":"string"},"brandName":{"type":"string"}}}}}},"responses":{"200":{"description":"Client review feedback items or content management result"}}}}}}