{"openapi":"3.1.0","info":{"title":"RankControl API","version":"1.0.0","description":"The REST API behind the RankControl dashboard, CLI, and MCP server. Authenticate every request with an API key as a Bearer header; keys are minted in Settings > API and carry scopes (see each operation's x-required-scope). Full docs: https://rctrl.com/docs/api. MCP endpoint for AI agents: https://api.rctrl.com/mcp (OAuth 2.1, see https://rctrl.com/docs/mcp).","contact":{"email":"help@rctrl.com","url":"https://rctrl.com/contact"},"termsOfService":"https://rctrl.com/terms"},"servers":[{"url":"https://api.rctrl.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key from Settings > API, e.g. `Authorization: Bearer rctrl_pk_...`"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}},"paths":{"/api/v1/analytics/activate":{"post":{"operationId":"activate_analytics_screen","summary":"Turn on the Analytics or Reports screen for this workspace (they ship disabled; activation is one-time per screen).","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"screen":{"type":"string","enum":["analytics","reports"],"description":"The screen to turn on: analytics or reports"}},"required":["screen"]}}}}}},"/api/v1/analytics/ai-crawling":{"get":{"operationId":"get_ai_crawling","summary":"AI crawler visits to your site: totalCrawls; bots, each crawler with its botName, kind (search, user or training, for ChatGPT's, Claude's and Perplexity's crawlers) and crawlCount, most crawls first; and daily, each day with crawls, oldest first, with its crawlCount and the count per crawler (byBot). Null, with a hint, until the Analytics screen is turned on (activate_analytics_screen) or while no AI crawler source is selected (get_analytics_sources). The same numbers as Analytics' AI Crawling tab.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","enum":["7","30","90"],"description":"Window in days, default 30"}}]}},"/api/v1/analytics/engagement":{"get":{"operationId":"get_page_engagement","summary":"Per-page engagement for the last 30 days: views, AI citations, and a view sparkline per published page.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/analytics/google-vs-ai":{"get":{"operationId":"get_google_vs_ai","summary":"Every tracked question with its place in Google's top 30 from the weekly rank check, beside each of the seven AI engines' latest check of it (cited, mentioned or none). Each row has a state: both, google (ranks on Google, no engine mentions or cites you), ai, neither, or pending (not checked yet). The same rows as Analytics' Google vs AI tab.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/analytics/movers":{"get":{"operationId":"get_keyword_movers","summary":"The biggest Google position changes over the last 30 days, ten at most, climbs first: each keyword's first place in that window (from), its place now (to; a lower number is a better place) and its search volume when known. Only keywords that still rank in the latest check are listed. Null, with a hint, until the Analytics screen is turned on (activate_analytics_screen). Defaults to queries your published articles appear for.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"scope","in":"query","required":false,"schema":{"type":"string","description":"\"ours\" (default): queries your published articles appear for. \"site\": everything on the domain, including pages RankControl did not write."}}]}},"/api/v1/analytics/rankings":{"get":{"operationId":"get_rankings","summary":"Verified Google and Bing positions per keyword (top 30), with Search Console clicks, impressions and average position when connected (gscPosition is an average over the searches you appeared in, never a rank), which page earned each query and whether it is one of your articles (isOurs), and how often Google's AI Overview shows above each keyword and cites one of your pages (a rate over the last 8 weekly checks). Defaults to queries your published articles appear for.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"scope","in":"query","required":false,"schema":{"type":"string","description":"\"ours\" (default): queries your published articles appear for. \"site\": everything on the domain, including pages RankControl did not write."}}]}},"/api/v1/analytics/search-console":{"get":{"operationId":"get_search_console","summary":"Search Console totals for the last 7, 30 or 90 days (default 30): totalClicks, totalImpressions, avgCtr (a share of 1, so 0.05 is 5%), avgPosition (an average over the searches you appeared in, never a rank), and trends, each day's clicks and impressions, oldest first. connected says whether Search Console is connected, and lastSyncError appears when the last update from it failed. Null, with a hint, until the Analytics screen is turned on (activate_analytics_screen) or while Search Console is not connected. Per-keyword clicks are in get_rankings.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","enum":["7","30","90"],"description":"Window in days, default 30"}}]}},"/api/v1/analytics/search-console-queries":{"get":{"operationId":"get_search_console_queries","summary":"Search Console's top searches for the last 7, 30 or 90 days (default 30), 50 at most, most clicks first: each query with its clicks, impressions, ctr (a share of 1, so 0.05 is 5%) and position (an average over the searches you appeared in, never a rank). connected says whether Search Console is connected, and lastSyncError appears when the last update from it failed. Null, with a hint, until the Analytics screen is turned on (activate_analytics_screen) or while Search Console is not connected.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","enum":["7","30","90"],"description":"Window in days, default 30"}}]}},"/api/v1/analytics/search-console-trend":{"get":{"operationId":"get_search_console_trend","summary":"Search Console clicks and impressions for each day of the last 7, 30 or 90 days (default 30), oldest first: date, clicks and impressions; days with no data are left out. connected says whether Search Console is connected, and lastSyncError appears when the last update from it failed. Null, with a hint, until the Analytics screen is turned on (activate_analytics_screen) or while Search Console is not connected.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","enum":["7","30","90"],"description":"Window in days, default 30"}}]}},"/api/v1/analytics/sources":{"get":{"operationId":"get_analytics_sources","summary":"Per-workspace analytics source setup: the selected writer for human traffic and AI-crawler data, which sources the setup qualifies for, and install state (Cloudflare zone/sync, WordPress plugin version, embed liveness). Both Analytics and Reports screens ship disabled until activated.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"set_analytics_source","summary":"Select the active writer for a data type. Validated server-side against what the customer's setup supports. Switching aiCrawlers to cloudflare starts a backfill sync.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dataType":{"type":"string","enum":["aiCrawlers"],"description":"The data the source writes. aiCrawlers (AI crawler visits) is the only option."},"source":{"type":"string","description":"cloudflare, wordpress_plugin or site_hook"}},"required":["dataType","source"]}}}}}},"/api/v1/analytics/traffic":{"get":{"operationId":"get_traffic_overview","summary":"Traffic overview from RankControl's own page analytics: total page views, unique visitors, sessions, bounce rate, average time on page, average scroll depth, and trends, the change in page views and visitors from the same number of days before. With scope \"site\" and Google Analytics connected, the whole site from Google Analytics instead: visits with the same days before, visits from search and from AI by engine, a visits trend, and top pages. When Google Analytics tracks key events, aiConversions says what AI visitors did: key events, the key event rate beside all visits' rate, revenue in the property's currency, and the pages they landed on.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","enum":["7","30","90"],"description":"Window in days, default 30"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","enum":["ours","site"],"description":"\"ours\" (default): visits to your RankControl articles, from RankControl's own counter. \"site\": the whole site from Google Analytics, when it is connected."}}]}},"/api/v1/analytics/traffic-pages":{"get":{"operationId":"get_traffic_pages","summary":"Visits to each of your RankControl articles for the last 7, 30 or 90 days (default 30), from RankControl's own page analytics, most page views first: contentPageId, title, slug, pageViews, uniqueVisitors, avgTimeOnPage (seconds) and avgScrollDepth (percent of the page scrolled). Only articles with visits are listed. Null, with a hint, until the Analytics screen is turned on (activate_analytics_screen). For the whole site's top pages from Google Analytics, use get_traffic_overview with scope \"site\".","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","enum":["7","30","90"],"description":"Window in days, default 30"}}]}},"/api/v1/analytics/traffic-sources":{"get":{"operationId":"get_traffic_sources","summary":"Where visits to your RankControl articles came from in the last 7, 30 or 90 days (default 30), from RankControl's own page analytics, most page views first: each source (organic, ai_referral, direct, social, email or other) with its pageViews, visitors and percentage (its share of page views). Null, with a hint, until the Analytics screen is turned on (activate_analytics_screen). For the whole site from Google Analytics, use get_traffic_overview with scope \"site\".","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","enum":["7","30","90"],"description":"Window in days, default 30"}}]}},"/api/v1/analytics/traffic-trend":{"get":{"operationId":"get_traffic_trend","summary":"Visits to your RankControl articles over time, from RankControl's own page analytics: pageViews and visitors for each period, oldest first. One row a day for 7 or 30 days and one row a week, starting Monday, for 90 (default 30). Null, with a hint, until the Analytics screen is turned on (activate_analytics_screen). For the whole site from Google Analytics, use get_traffic_overview with scope \"site\".","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","enum":["7","30","90"],"description":"Window in days, default 30"}}]}},"/api/v1/approvals":{"get":{"operationId":"get_approval","summary":"Where a change that waits for the workspace owner stands: pending, running, done, failed, declined or expired, and what happened. The approvalId comes from an approval_required answer; only the owner approves, in RankControl.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"approvalId","in":"query","required":true,"schema":{"type":"string","description":"Id from an approval_required answer"}}]}},"/api/v1/articles":{"get":{"operationId":"get_articles","summary":"Read articles","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/auth/device/poll":{"post":{"operationId":"post_auth_device_poll","summary":"auth device poll","description":"Requires the `public` scope.","x-required-scope":"public","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/auth/device/start":{"post":{"operationId":"post_auth_device_start","summary":"auth device start","description":"Requires the `public` scope.","x-required-scope":"public","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/backlinks":{"get":{"operationId":"list_backlinks","summary":"Every backlink row for the workspace, newest first: the linking page (linkingUrl, linkingDomain), targetUrl, anchorText, dofollow, domainAuthority, the linking site's Domain Rating (dr, with drSource saying whether the rating is measured or estimated), status and dates, plus its source (index, outreach or managed). A link the Link Profile hides as spam carries spamKind (ad for a link ad, auto for an auto-generated page); spamScore is a 0 to 100 spam score for the link when the weekly check has one. Filter with status; get_backlink_stats gives the totals.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","description":"Filter: discovered, verified, lost, placed, identified, contacted, replied, link_placed, rejected"}}]}},"/api/v1/backlinks/stats":{"get":{"operationId":"get_backlink_stats","summary":"Backlink and outreach numbers in one call: total rows, discovered and lost links, average domain authority (avgDA), uniqueDomains, your site's indexed backlink and referring-domain totals once measured, outreach counts by stage (identified, contacted, replied, linkPlaced, rejected) for your article prospects, the same counts for AI sources in aiSources, and links built by source (outreach, social, managed). The spam the Link Profile hides is counted in spam (hidden, ads, auto) and left out of backlinksShown, referringDomainsShown, lostShown and avgDR, the average Ahrefs Domain Rating of the linking sites shown; checks lists the last 12 weekly checks, each with the new sites it found and how many were link ads or auto-generated pages. list_backlinks returns the rows.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/billing":{"get":{"operationId":"get_billing","summary":"This workspace's billing as Settings, Billing shows it: status (trial, active or cancelling), billing cycle, next charge, add-ons, usage against the plan's limits and recent payments. Read-only; changes are made in Settings, Billing.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/brand":{"get":{"operationId":"get_brand","summary":"The workspace's brand data in one read: brand profile (voice, colors, meta), links/CTAs, products, buyer profiles and brand guidelines. This is the context RankControl's writers use.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"update_brand_identity","summary":"Update workspace identity: name, industry and subIndustry (values from the dashboard's industry list; a new industry without a subIndustry clears the old one), productDescription, authors (EEAT bylines used in article JSON-LD), styleReferenceUrls (articles whose writing style the writer imitates), brandAliases (other spellings and short forms of the brand; pages using them count as brand mentions) and brandExclusions (same-name companies or products whose pages are skipped). Every array REPLACES the stored list — call get_brand first and send the full updated list. Saving a name change runs the brand-mention search once a day at most. websiteUrl is immutable and cannot be changed.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Brand name"},"industry":{"type":"string","description":"Your industry, from the dashboard's list"},"subIndustry":{"type":"string","description":"Specialty within the industry, from the same list"},"productDescription":{"type":"string","description":"What you sell, in a sentence or two"},"authors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Author's full name"},"bio":{"type":"string","description":"Short author bio"},"linkedinUrl":{"type":"string","description":"Person sameAs URL for article JSON-LD"}},"required":["name"]},"description":"Article bylines. Replaces the stored list."},"styleReferenceUrls":{"type":"array","items":{"type":"string"},"description":"Articles whose writing style your articles follow. Replaces the stored list."},"brandAliases":{"type":"array","items":{"type":"string"},"description":"Other spellings and short forms of your brand name. Replaces the stored list."},"brandExclusions":{"type":"array","items":{"type":"string"},"description":"Same-name companies or products to leave out of brand mentions. Replaces the stored list."}}}}}}}},"/api/v1/brand/facts":{"get":{"operationId":"list_brand_facts","summary":"The workspace's facts, as Brand Kit, Products & Buyers, Facts lists them: the prices, plans and promises AI's answers are checked against each week, each with its type, the product a seeded fact follows, and the open action item when an answer contradicts it. Also returns the contradictions of the last 30 days: the fact, the engine, the question, the answer's sentence and its sources.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"add_brand_fact","summary":"Add a fact, as the Facts card's Add Fact does: one sentence AI should get right (a price, a plan, an integration, a guarantee or another promise) and its type. AI's answers are checked against it from the next weekly check. Returns the new factId.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["price","plan","integration","guarantee","other"],"description":"Price, plan, integration, guarantee or other"},"text":{"type":"string","description":"The fact, one sentence, like \"Acme costs $400 a month.\""}},"required":["type","text"]}}}}}},"/api/v1/brand/facts/delete":{"post":{"operationId":"delete_brand_fact","summary":"Delete a fact: AI's answers stop being checked against it, and its action item goes. Fact ids come from list_brand_facts.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"factId":{"type":"string","description":"Fact id from list_brand_facts"}},"required":["factId"]}}}}}},"/api/v1/brand/facts/update":{"post":{"operationId":"update_brand_fact","summary":"Edit a fact's sentence or type. Fact ids come from list_brand_facts. Editing a seeded fact stops it following its product.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"factId":{"type":"string","description":"Fact id from list_brand_facts"},"text":{"type":"string","description":"The fact, one sentence, like \"Acme costs $400 a month.\""},"type":{"type":"string","enum":["price","plan","integration","guarantee","other"],"description":"Price, plan, integration, guarantee or other"}},"required":["factId"]}}}}}},"/api/v1/brand/guidelines":{"post":{"operationId":"add_brand_guideline","summary":"Add a brand guideline, as Brand Kit, Writing, Brand Guidelines does: a rule the writer follows in every article from now on, with its type, what to avoid and what to write instead (300 characters each). It starts switched on; set_brand_guideline_active turns it off. Returns the new guidelineId.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["tone","terminology","topic","style","factual"],"description":"What the guideline covers: tone, terminology, topic, style or factual"},"avoid":{"type":"string","description":"What the writer should avoid (300 characters max)"},"instead":{"type":"string","description":"What to write instead (300 characters max)"}},"required":["type","avoid","instead"]}}}}}},"/api/v1/brand/guidelines/active":{"post":{"operationId":"set_brand_guideline_active","summary":"Turn a brand guideline on or off. Guideline ids come from get_brand.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"guidelineId":{"type":"string","description":"Guideline id from get_brand"},"on":{"type":"boolean","description":"true turns the guideline on, false turns it off"}},"required":["guidelineId","on"]}}}}}},"/api/v1/brand/guidelines/remove":{"post":{"operationId":"remove_brand_guideline","summary":"Delete a brand guideline. This can't be undone; turning it off keeps it.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"guidelineId":{"type":"string","description":"Guideline id from get_brand"}},"required":["guidelineId"]}}}}}},"/api/v1/brand/icp":{"post":{"operationId":"write_brand_icp","summary":"Create, update, or delete a buyer profile (feeds article targeting + entity triples). Create: title+industry+demographics. Update: profileId + changed fields. Delete: profileId + del=true. Each list you send replaces that list; a list you leave out stays. Deleting or leaving out a list entry waits for the workspace owner to approve it in RankControl; the answer is then an approval link.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Buyer profile id from get_brand. Leave it out to create one."},"del":{"type":"boolean","description":"true deletes the buyer profile"},"title":{"type":"string","description":"Who the buyer is, like \"Head of marketing at a SaaS company\""},"industry":{"type":"string","description":"The buyer's industry"},"companySize":{"type":"string","description":"Company size, like \"11-50 employees\""},"painPoints":{"type":"array","items":{"type":"string"},"description":"Problems the buyer wants solved, one per item"},"buyingTriggers":{"type":"array","items":{"type":"string"},"description":"What makes them start looking, one per item"},"objections":{"type":"array","items":{"type":"string"},"description":"Why they hesitate to buy, one per item"},"preferredChannels":{"type":"array","items":{"type":"string"},"description":"Where they look for answers, like Google or Reddit, one per item"},"demographics":{"type":"object","description":"Demographics object; required on create (same shape the dashboard saves)","additionalProperties":true}}}}}}}},"/api/v1/brand/icp/draft":{"post":{"operationId":"draft_brand_icp","summary":"Draft one buyer profile from a one-sentence description or a suggestion from suggest_brand_icps. Returns the fields to review; nothing is saved until write_brand_icp. Fields passed in given are kept as written.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"describe":{"type":"string","description":"Who the audience is, in one sentence"},"title":{"type":"string","description":"Title of a suggestion from suggest_brand_icps"},"who":{"type":"string","description":"The suggestion's one-line description"},"given":{"type":"object","description":"Fields to keep as written (same keys as write_brand_icp, plus ageRange, seniority, department as strings). A key you pass is kept, empty included; a key you leave out is filled.","additionalProperties":true}}}}}}}},"/api/v1/brand/icp/suggest":{"post":{"operationId":"suggest_brand_icps","summary":"Suggest up to 8 audiences for this site from its brand, products, competitors and topics. Saves nothing. Pick one and pass it to draft_brand_icp, or write your own with write_brand_icp.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"exclude":{"type":"array","items":{"type":"string"},"description":"Audience titles already shown, to get different ones"}}}}}}}},"/api/v1/brand/product":{"post":{"operationId":"write_brand_product","summary":"Create, update, or delete a product in brand memory (feeds article context + entity triples). Create: name+description+category. Update: productId + changed fields. Delete: productId + del=true. Each list you send replaces that list; a list you leave out stays. Deleting, leaving out a list entry, or clearing the pricing waits for the workspace owner to approve it in RankControl; the answer is then an approval link.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"productId":{"type":"string","description":"Product id from get_brand. Leave it out to create a product."},"del":{"type":"boolean","description":"true deletes the product"},"name":{"type":"string","description":"Product name"},"description":{"type":"string","description":"What the product does, in a sentence or two"},"url":{"type":"string","description":"Product page URL"},"features":{"type":"array","items":{"type":"string"},"description":"One feature per item"},"pricing":{"type":"string","description":"Price as you'd say it, like \"$49/month\""},"category":{"type":"string","enum":["core_product","add_on","service","product"],"description":"Type of offer: core_product, add_on, service or product"},"usps":{"type":"array","items":{"type":"string"},"description":"What sets it apart, one point per item"}}}}}}}},"/api/v1/brand/profile":{"post":{"operationId":"update_brand_profile","summary":"Patch brand voice/style fields: tone, colors, defaultLocale, flexibleScheduling. They steer all future article generation. Also Brand Profile's Local business switch: localBusiness, and serviceArea (the area the business serves, like \"Austin, Texas\"; 100 characters at most, empty clears it). Only provided fields change.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"tone":{"type":"string","description":"One of: professional, conversational, technical, friendly, journalistic, persuasive"},"primaryColor":{"type":"string","description":"Hex color, like #0F172A"},"secondaryColor":{"type":"string","description":"Hex color, like #F59E0B"},"defaultLocale":{"type":"string","description":"BCP-47 tag from the supported registry"},"flexibleScheduling":{"type":"boolean","description":"true allows 1 to 5 articles a day and lets you move planned articles by hand"},"localBusiness":{"type":"boolean","description":"Brand Profile's Local business switch"},"serviceArea":{"type":"string","description":"The area the business serves, like \"Austin, Texas\". 100 characters at most; empty clears it."}}}}}}}},"/api/v1/brand/reviewed":{"post":{"operationId":"confirm_brand_reviewed","summary":"Mark your brand as reviewed, as the Overview's Mark reviewed button does. It completes the Confirm your brand step of Expedition I and can't be undone; marking it again changes nothing.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/citations":{"get":{"operationId":"list_citations","summary":"Recent AI citation checks: which tracked queries were checked on which AI model and whether the brand was cited. ChatGPT, Grok, Claude and Gemini checks also list the searches the engine ran for the answer, each with targetedBy when one of your articles targets that search. `branded` marks a check of a question that names your brand, which doesn't count toward your score. A check whose answer contradicts one of your facts carries contradiction: your fact and the answer's claim.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"model","in":"query","required":false,"schema":{"type":"string","description":"Filter by AI model, e.g. chatgpt, perplexity"}},{"name":"limit","in":"query","required":false,"schema":{"type":"number","maximum":200,"description":"Most recent checks to return (default 100, max 200)"}},{"name":"before","in":"query","required":false,"schema":{"type":"string","description":"Only checks older than this (ISO date or milliseconds). A full page returns nextBefore: pass it here for the next older page."}},{"name":"topic","in":"query","required":false,"schema":{"type":"string","description":"One topic's questions only: its id or name from get_topics, or none for questions with no topic. Leave it out for the whole workspace."}},{"name":"engines","in":"query","required":false,"schema":{"type":"string","description":"Only these engines' answers: their ids, comma-separated (chatgpt, perplexity, claude, gemini, grok, google_ai_mode, google_ai_overview). Leave it out for all seven."}}]}},"/api/v1/competitors":{"get":{"operationId":"get_competitors","summary":"Tracked competitors used in share-of-voice and visibility comparisons, with each one's other names and sites, AI visibility score, citations of checks over the last 30 days, win rate (the share of its last 30 days' answers that name it first among the brands they name), domain metrics and positioning analysis. Also returns you: the workspace's own win rate.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"topic","in":"query","required":false,"schema":{"type":"string","description":"One topic's questions only: its id or name from get_topics, or none for questions with no topic. Leave it out for the whole workspace."}},{"name":"engines","in":"query","required":false,"schema":{"type":"string","description":"Only these engines' answers: their ids, comma-separated (chatgpt, perplexity, claude, gemini, grok, google_ai_mode, google_ai_overview). Leave it out for all seven."}}]},"post":{"operationId":"add_competitor","summary":"Start tracking a competitor (10 at most). It joins the weekly share-of-voice comparison with your own citation rate and the weekly competitor checks. Leave out websiteUrl to have the site found from the name. remove_competitor stops it.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Competitor name"},"websiteUrl":{"type":"string","description":"Competitor website URL (optional; resolved from the name when omitted)"}},"required":["name"]}}}}}},"/api/v1/competitors/remove":{"post":{"operationId":"remove_competitor","summary":"Stop tracking a competitor: it leaves share of voice and the weekly competitor checks. It waits for the workspace owner to approve it in RankControl; the answer is an approval link.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"competitorId":{"type":"string","description":"Competitor id from get_competitors"}},"required":["competitorId"]}}}}}},"/api/v1/competitors/update":{"post":{"operationId":"update_competitor","summary":"Set a tracked competitor's other names and sites, so answers that use them count for it: aliases (other names, such as a former or a product name) and extraSites (other domains it runs). Each list you send replaces that list; a list you leave out stays. Up to 20 each. Removing a name or a site waits for the workspace owner to approve it in RankControl; the answer is then an approval link.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"competitorId":{"type":"string","description":"Competitor id from get_competitors"},"aliases":{"type":"array","items":{"type":"string"},"description":"Other names (replaces the list)"},"extraSites":{"type":"array","items":{"type":"string"},"description":"Other sites (replaces the list)"}},"required":["competitorId"]}}}}}},"/api/v1/content":{"get":{"operationId":"list_content","summary":"Articles in the workspace, newest first, archived ones included: id, title, status (planned, draft, published or archived), contentType, slug, wordCount, scheduledAt, publishedAt, the live url, health and citability scores, and Google clicks, impressions and position for published articles with Search Console data. Narrow it with status. Returns 100 unless you pass limit (max 200); a full page returns nextBefore: pass it as before for the next older page.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","description":"Only this status: planned, draft, published or archived"}},{"name":"limit","in":"query","required":false,"schema":{"type":"number","maximum":200,"description":"Newest articles to return (default 100, max 200)"}},{"name":"before","in":"query","required":false,"schema":{"type":"string","description":"Only articles older than this (nextBefore from a full page, or an ISO date)"}}]}},"/api/v1/content/archive":{"post":{"operationId":"archive_content","summary":"Archive an article: it moves to the Archived tab and RankControl stops refreshing it. The published post stays live on your site; remove it there separately to take it down. On a site that reads its articles through the Content API, the article leaves the site instead. restore_content brings it back. Refused while the article is still being written.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentId":{"type":"string","description":"Article id from list_content"}},"required":["contentId"]}}}}}},"/api/v1/content/by-url":{"get":{"operationId":"get_article_by_url","summary":"Your published article at a web address, with the citability score the dashboard shows for it: contentId, title, citabilityScore (null until scored) and dashboardUrl. Null when the address isn't one of your published articles.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"The article's address on your site"}}]}},"/api/v1/content/delete-planned":{"post":{"operationId":"delete_planned_title","summary":"Remove a planned title from the content calendar. The title's keyword stays saved for Plan Content, so the topic is not lost. Only planned rows qualify; use archive for generated articles.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentId":{"type":"string","description":"Planned contentPage id"}},"required":["contentId"]}}}}}},"/api/v1/content/generate":{"post":{"operationId":"generate_article","summary":"Write a PLANNED article's body immediately instead of waiting for the scheduled pipeline (generate-only: its publish slot is unchanged). Allowed for past-due slots and up to 3 days ahead, and at most 5 articles in any 24 hours (the dry run reports withinDailyLimit and nextWriteAt). Defaults to a DRY RUN. When the person asked for this, call it with confirm=true. To write several articles, use write_articles.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentId":{"type":"string","description":"The planned content page id"},"confirm":{"type":"boolean","description":"Set true to actually start generation (default: dry run)"}},"required":["contentId"]}}}}}},"/api/v1/content/impact":{"get":{"operationId":"get_article_impact","summary":"How an article's questions did in AI answers before and after it went live. For each question it answers (tracked from the article, or holding every word of its target keyword; up to 10, and more counts the rest): the answers in the 4 weeks before it went live and every answer since, how many named or linked you (cited) and how many linked your site (sourceCited). Null until the article is live.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"contentId","in":"query","required":true,"schema":{"type":"string","description":"The content page id"}}]}},"/api/v1/content/internal-links":{"get":{"operationId":"get_internal_links","summary":"How the workspace's articles interlink: how many published articles link TO this page (with the source list) and how many internal links it sends out. Recorded from the real injected links at publish render time.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"contentId","in":"query","required":true,"schema":{"type":"string","description":"The content page id"}}]}},"/api/v1/content/meta":{"post":{"operationId":"update_article_meta","summary":"Change a written article's title, meta title (60 characters at most) or meta description (155 at most). The article's URL does not change. Defaults to a DRY RUN describing what would happen. When the person asked for this, call it with confirm=true. On a published article the change also goes to the customer's site.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentId":{"type":"string","description":"The content page id"},"title":{"type":"string","description":"New title"},"metaTitle":{"type":"string","description":"New meta title, 60 characters at most"},"metaDescription":{"type":"string","description":"New meta description, 155 characters at most"},"confirm":{"type":"boolean","description":"Set true to actually save (default: dry run)"}},"required":["contentId"]}}}}}},"/api/v1/content/optimizer":{"get":{"operationId":"get_citability_report","summary":"Published pages ranked by citability score (how extractable each page is for AI answers), worst first, each with its top open fixes. Use to decide which articles to improve.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"number","maximum":100,"description":"Max rows, default 25"}}]}},"/api/v1/content/plan":{"post":{"operationId":"plan_content","summary":"Returns the next batch of article titles, the same ones the Plan Content button shows. Each title comes with its topic, format, search and day on the calendar. Defaults to a DRY RUN: nothing goes on the calendar. When the person asked to add them, call it with confirm=true. To add only some, pass their ids in keep. Set news=true for this week's news titles, the ones Plan Content's news list shows. They are written every Monday for paid workspaces with News or Trending on, and go on the calendar one a day. To plan titles about something specific, pass it as subject with the workspace topics it fits as topics. Add the ones the person wants with commit_planned_titles. If the subject fits none of the topics, offer to add a topic first (set_topics). Capped at 5/min.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","description":"What the titles should be about, in the user's words (150 characters max). Needs topics."},"topics":{"type":"array","items":{"type":"string"},"description":"The topics the subject fits, from get_topics"},"news":{"type":"boolean","description":"true: this week's news instead of the next batch. Works with keep and confirm."},"keep":{"type":"array","items":{"type":"string"},"description":"Ids from the dry run to add. Leave it out to add the whole batch. Titles you leave out stay for a later batch."},"confirm":{"type":"boolean","description":"Set true to add the titles to the calendar (default: dry run)"}}}}}}}},"/api/v1/content/plan/batch":{"get":{"operationId":"get_content_plan_batch","summary":"Read content plan batch","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_content_plan_batch","summary":"content plan batch","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/content/plan/batch/remove":{"post":{"operationId":"remove_batch_title","summary":"Remove a title from the next batch or this week's news for good. It waits for the workspace owner to approve it in RankControl. The answer is an approval link.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"titleId":{"type":"string","description":"Title id from plan_content"}},"required":["titleId"]}}}}}},"/api/v1/content/plan/commit":{"post":{"operationId":"commit_planned_titles","summary":"Add reviewed titles to the content calendar: the ones plan_content returned with a runId. Pass the rejected ones in `discarded` so their keywords stay saved for Plan Content.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string","description":"The runId plan_content returned with these titles"},"titles":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"Title from plan_content"},"targetKeyword":{"type":"string","description":"Target keyword from plan_content"},"searchVolume":{"type":"number","description":"Search volume from plan_content"},"keywordDifficulty":{"type":"number","description":"Keyword difficulty from plan_content"},"searchIntent":{"type":"string","description":"Search intent from plan_content"}},"required":["title"]},"description":"Titles to schedule"},"discarded":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"Title from plan_content"},"targetKeyword":{"type":"string","description":"Target keyword from plan_content"},"searchVolume":{"type":"number","description":"Search volume from plan_content"},"keywordDifficulty":{"type":"number","description":"Keyword difficulty from plan_content"},"searchIntent":{"type":"string","description":"Search intent from plan_content"}},"required":["title"]},"description":"Rejected candidates"}},"required":["titles"]}}}}}},"/api/v1/content/plan/news":{"post":{"operationId":"post_content_plan_news","summary":"content plan news","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/content/planning-capacity":{"get":{"operationId":"get_planning_capacity","summary":"How many article titles can still be planned onto the content calendar within the scheduling horizon. Check before plan_content.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/content/publish":{"post":{"operationId":"publish_content","summary":"Publish an article to the customer's connected CMS. Defaults to a DRY RUN describing what would happen. When the person asked for this, call it with confirm=true. Delivery runs after this call returns. If the article does not go live, list_content shows its lastPublishError. Webhook receivers: https://rctrl.com/docs/webhook","description":"Requires the `write:publish` scope.","x-required-scope":"write:publish","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentId":{"type":"string","description":"The content page id"},"confirm":{"type":"boolean","description":"Set true to actually publish (default: dry run)"}},"required":["contentId"]}}}}}},"/api/v1/content/reschedule":{"post":{"operationId":"reschedule_article","summary":"Move a PLANNED article to another day (requires the flexible schedule; max 5/day; the exact hour is placed automatically). Pass the target day as YYYY-MM-DD in the workspace's timezone.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentId":{"type":"string","description":"Planned article id from list_content"},"date":{"type":"string","description":"Target day as YYYY-MM-DD in the workspace's timezone"}},"required":["contentId","date"]}}}}}},"/api/v1/content/restore":{"post":{"operationId":"restore_content","summary":"Restore an archived article to where it was: an archived draft is a draft again, and an article that was published is published again on the customer's site, as the same post at the same address. Refused when another live article uses its address. Defaults to a DRY RUN. When the person asked for this, call it with confirm=true.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentId":{"type":"string","description":"Article id from list_content (status archived)"},"confirm":{"type":"boolean","description":"Set true to restore it (default: dry run)"}},"required":["contentId"]}}}}}},"/api/v1/content/settings":{"post":{"operationId":"update_planned_article","summary":"Change a planned article's own settings before it is written: length, tone, image style and custom instructions. Locked once writing starts.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentId":{"type":"string","description":"Planned article id from list_content"},"length":{"type":"string","enum":["auto","short","medium","long"],"description":"auto (the article type's default), short (1,200–1,800 words), medium (2,000–2,800) or long (3,200–4,000)"},"tone":{"type":"string","enum":["default","professional","conversational","technical","friendly","journalistic","persuasive"],"description":"One of the six brand tones, or default to follow your brand tone."},"imageStyle":{"type":"string","enum":["default","editorial","cinematic","documentary","studio","conceptual-metaphor","editorial-illustration","clay-3d","isometric","line-art-minimal","dark-gradient-glass","travel-poster","watercolor-wash","retro-futurism","ukiyo-e","paper-diorama","gouache-metaphor","minimalist","riso-print","pop-art","corporate-flat","memphis","bauhaus-poster","flat-vector","cartoon-creator","soft-anime"],"description":"One of the 25 image styles, or default to use your workspace's image style."},"instructions":{"type":"string","description":"Applied when this article is written, on top of your workspace's article settings. Empty clears them."}},"required":["contentId"]}}}}}},"/api/v1/content/write-run":{"post":{"operationId":"write_articles","summary":"Write several PLANNED articles one after another, and publish each one when publish is true: the next ones in calendar order (next), or the ones you name (contentIds). Each article follows Write now's rules: Auto-write off, next in line, up to 3 days before its day, at most 5 in any 24 hours. News and trending articles are written but never published by a run. Defaults to a DRY RUN that lists what would be written and what would stop it. When the person asked for this, call it with confirm=true. Follow progress with get_write_runs.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"next":{"type":"number","minimum":1,"maximum":20,"description":"How many of the next planned articles to write"},"contentIds":{"type":"array","items":{"type":"string"},"description":"Planned article ids, instead of next"},"publish":{"type":"boolean","description":"Publish each article once it is written"},"confirm":{"type":"boolean","description":"Set true to start (default: dry run)"}}}}}}}},"/api/v1/content/write-run/stop":{"post":{"operationId":"stop_write_run","summary":"Stop a write run: nothing new starts, and an article being written finishes as a draft.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string","description":"From write_articles or get_write_runs"}},"required":["runId"]}}}}}},"/api/v1/content/write-runs":{"get":{"operationId":"get_write_runs","summary":"Recent write runs: each article's state (waiting, writing, written, publishing, live, review: written and waiting for a person to publish, failed, skipped) and why a run stopped.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/crawler-access":{"get":{"operationId":"get_crawler_access","summary":"Daily AI-crawler reachability probe result — a DIAGNOSTIC, not a traffic metric: whether the site's edge (e.g. Cloudflare Bot Fight Mode) or robots.txt blocks GPTBot/ClaudeBot. 'shielded' means browsers and bots are both challenged (site-wide shield, ambiguous for real, signed crawlers).","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/expedition":{"get":{"operationId":"get_setup_progress","summary":"The workspace's expeditions on the Overview: the current expedition, each step's name and whether it is done, and the next step. Use it to help the user finish setting up.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/guides":{"get":{"operationId":"search_guides","summary":"Search the guides on RankControl's blog about SEO and AI search: getting cited by ChatGPT, Perplexity, Claude, Gemini and Google's AI answers, ranking on Google, and growing and measuring search traffic. Returns the sections that best answer the question, each with its guide's title, date and link.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","description":"The question, in plain words"}}]}},"/api/v1/help":{"get":{"operationId":"get_help_page","summary":"RankControl's help pages: setup guides for each publishing destination, the crawler and our IP address, AI crawler access, the API, CLI and MCP, getting started, the plan and pricing, and our privacy policy, terms and refund policy. Without a page, lists the pages.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string","description":"Page slug, such as nextjs, bot, wordpress or plan-and-pricing"}}]}},"/api/v1/integrations/cloudflare/connect-url":{"post":{"operationId":"get_cloudflare_connect_url","summary":"OAuth URL to connect read-only Cloudflare analytics (AI-crawler data source). Open it in a browser; the grant is scoped to Analytics:Read.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/integrations/cloudflare/zone":{"post":{"operationId":"select_cloudflare_zone","summary":"Pick the Cloudflare zone to poll. A crawler source already set stays; Cloudflare becomes the source only when none is set, and its first sync backfills up to 7 days.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"zoneId":{"type":"string","description":"Zone id from list_cloudflare_zones"},"zoneName":{"type":"string","description":"Zone name, e.g. example.com"}},"required":["zoneId","zoneName"]}}}}}},"/api/v1/integrations/cloudflare/zones":{"get":{"operationId":"list_cloudflare_zones","summary":"Cloudflare zones visible to the connected grant, for picking which zone to poll.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/integrations/framer/install-embed":{"post":{"operationId":"install_framer_embed","summary":"Install site-wide visit tracking on the connected Framer project via its custom-code API. Dry run unless confirm is true. Confirming ALSO PUBLISHES the customer's Framer site. When the person asked for this, call it with confirm=true.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"integrationId":{"type":"string","description":"Leave it out to use your connected Framer site"},"confirm":{"type":"boolean","description":"Actually install (default: dry run)"}}}}}}}},"/api/v1/integrations/webflow/custom-code":{"post":{"operationId":"install_webflow_custom_code","summary":"Register and apply the tracking loader via Webflow's Custom Code API. Dry run unless confirm is true. When the person asked for this, call it with confirm=true. Uses the connected Webflow site's stored token, which needs the CMS + Custom code scopes; a new token is entered in the dashboard (Settings, Integrations), never here. Goes live on the customer's next Webflow site publish.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"integrationId":{"type":"string","description":"Leave it out to use your connected Webflow site"},"confirm":{"type":"boolean","description":"Actually install (default: dry run)"}}}}}}}},"/api/v1/jobs":{"get":{"operationId":"list_jobs","summary":"Recent agent runs (job status feed). Async actions like content planning show up here with their outputs.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"number","maximum":100,"description":"Most recent runs to return (default 20, max 100)"}}]}},"/api/v1/links/detect":{"post":{"operationId":"detect_site_links","summary":"Scan the customer's sitemap (nested indexes handled) or crawl a blog root page and return same-site page URLs, minus the articles RankControl published (those are linked already). The source is remembered and re-read daily. Costly (3/min); review the URLs, then call add_site_pages with the keepers.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":3,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","enum":["sitemap","blogroot"],"description":"sitemap reads a sitemap XML. blogroot collects the links on one page, like your blog index."},"url":{"type":"string","description":"Sitemap XML URL or a page URL to crawl"}},"required":["source","url"]}}}}}},"/api/v1/links/pages":{"get":{"operationId":"list_site_pages","summary":"Your site's pages that articles can link to, in the text and in the Related Reading block. Each row: id, url, title, description, isLinkable (whether new articles may link to it), isAlive (whether the page still loads) and priority. Empty until pages are added or detected.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"add_site_pages","summary":"Add site page URLs for internal linking. Duplicates and articles RankControl published are skipped; page titles fill in automatically in the background.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"urls":{"type":"array","items":{"type":"string"},"description":"Full page URLs on your site"}},"required":["urls"]}}}}}},"/api/v1/links/pages/linking":{"post":{"operationId":"set_site_page_linking","summary":"Turn linking to a site page on or off. Off keeps the page in your list, but articles published after this don't link to it.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pageId":{"type":"string","description":"Page id from list_site_pages"},"isLinkable":{"type":"boolean","description":"true lets new articles link to the page, false stops them"}},"required":["pageId","isLinkable"]}}}}}},"/api/v1/links/pages/remove":{"post":{"operationId":"remove_site_page","summary":"Remove a page from your site pages. Articles published after this don't link to it, and scans don't add it back; add_site_pages adds it again.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pageId":{"type":"string","description":"Page id from list_site_pages"}},"required":["pageId"]}}}}}},"/api/v1/objections":{"get":{"operationId":"get_objections","summary":"The objections AI raises about you: complaints AI answers made about your brand in the last 30 days, grouped, as Buyer Profiles shows them. Each has its words, how many answers raised it and the engines; the ones 2 or more answers raised, most answers first. Suggestion ids go to accept_objection and dismiss_objection.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/objections/accept":{"post":{"operationId":"accept_objection","summary":"Add an objection AI raises to a buyer profile, as Buyer Profiles' Add to profile does: it goes first in the profile's objections, which new articles answer, and it's no longer suggested. Pass text to save it in other words. Suggestion ids come from get_objections, profile ids from get_brand.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"suggestionId":{"type":"string","description":"Suggestion id from get_objections"},"profileId":{"type":"string","description":"Buyer profile id from get_brand"},"text":{"type":"string","description":"The objection in your own words (default: as suggested)"}},"required":["suggestionId","profileId"]}}}}}},"/api/v1/objections/dismiss":{"post":{"operationId":"dismiss_objection","summary":"Dismiss an objection AI raises. It isn't suggested again. Suggestion ids come from get_objections.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"suggestionId":{"type":"string","description":"Suggestion id from get_objections"}},"required":["suggestionId"]}}}}}},"/api/v1/opportunities":{"get":{"operationId":"get_insights","summary":"List the action items: what to work on next on the workspace's own site: its product and service pages, searches Google shows it for that no page is about, searches its pages and articles show in Google's top 10 for with no clicks, problems across the whole site from the weekly crawl, and AI answers that contradict one of your facts (your fact and the engine; the answer's words are in list_brand_facts). Each item has the problem, its group (stops Google or AI, costs you clicks, or polish), its evidence lines with the numbers behind them, a suggested fix when there is one, and its one action. todo comes in the page's order; done holds finished and hidden items.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/opportunities/hide":{"post":{"operationId":"hide_insight","summary":"Hide an action item the person doesn't want. It moves under Done as Hidden and does not come back. Item ids come from get_insights.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","description":"Item id from get_insights"}},"required":["itemId"]}}}}}},"/api/v1/opportunities/move":{"post":{"operationId":"move_insight_to_ideas","summary":"Save a Search Console item (a search Google shows the site for, but no page is about) for Plan Content: the action item's \"Save for Plan Content\". The search is saved for Plan Content, untracked and tagged Search Console, and the item moves under Done. Item ids come from get_insights.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","description":"Item id from get_insights"}},"required":["itemId"]}}}}}},"/api/v1/opportunities/plan":{"post":{"operationId":"plan_insight_articles","summary":"Plan articles that link to one of the person's product or service pages: the action item's \"Plan 3 articles that link here\". Up to 3 articles about the page's main search, in the formats the workspace has on, each asked to link to the page once; they go on the calendar as planned articles. Defaults to a DRY RUN. When the person asked for this, call it with confirm=true. Item ids come from get_insights.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","description":"Item id from get_insights"},"confirm":{"type":"boolean","description":"Set true to put the articles on the calendar (default: dry run)"}},"required":["itemId"]}}}}}},"/api/v1/outreach/ai-source-product":{"post":{"operationId":"set_ai_source_product","summary":"Change the product or service an AI source offers (a row from list_outreach_prospects with aiSources true), until its pitch is queued. A pitch drafted for the old one is cleared, so the next draft offers the new one.","description":"Requires the `write:backlinks` scope.","x-required-scope":"write:backlinks","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"backlinkId":{"type":"string","description":"Prospect id from list_outreach_prospects"},"productId":{"type":"string","description":"Product or service id from get_brand"}},"required":["backlinkId","productId"]}}}}}},"/api/v1/outreach/cancel":{"post":{"operationId":"cancel_outreach_email","summary":"Cancel a queued outreach email (a first email, a reply or a follow-up) before it sends. Refused once it has gone out.","description":"Requires the `write:backlinks` scope.","x-required-scope":"write:backlinks","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"backlinkId":{"type":"string","description":"Prospect id from list_outreach_prospects"}},"required":["backlinkId"]}}}}}},"/api/v1/outreach/draft-email":{"post":{"operationId":"draft_outreach_email","summary":"Draft the first email to an outreach prospect. Returns its subject and body: the draft saved on the prospect when it has one, otherwise a new AI draft, which is then saved on it. Nothing sends: pass the prospect to queue_outreach_email to send it.","description":"Requires the `write:backlinks` scope.","x-required-scope":"write:backlinks","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"backlinkId":{"type":"string","description":"Prospect id from list_outreach_prospects"}},"required":["backlinkId"]}}}}}},"/api/v1/outreach/draft-reply":{"post":{"operationId":"draft_outreach_reply","summary":"AI-draft the next reply to a prospect who answered (status replied or rejected; auto-replies don't count). Returns subject and body only. Nothing sends: pass that subject and body to queue_outreach_email to send it.","description":"Requires the `write:backlinks` scope.","x-required-scope":"write:backlinks","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"backlinkId":{"type":"string","description":"Prospect id from list_outreach_prospects"}},"required":["backlinkId"]}}}}}},"/api/v1/outreach/find-contact":{"post":{"operationId":"find_outreach_contact","summary":"Find an outreach email for one prospect site. Returns the stored contact or found:false. Capped at 5/min.","description":"Requires the `write:backlinks` scope.","x-required-scope":"write:backlinks","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"backlinkId":{"type":"string","description":"Prospect id from list_outreach_prospects"}},"required":["backlinkId"]}}}}}},"/api/v1/outreach/form-fill":{"post":{"operationId":"prepare_outreach_form","summary":"What to type into a prospect's contact form when no email was found for them (nextMove form): name, email (your outreach mailbox, or your own address with emailNote), subject, message and their contactPageUrl. The first message is the prospect's saved draft, or a new AI draft that is then saved on it. Once its one follow-up opens, the follow-up instead (followUp true). Nothing sends: send it on their site, then record it with mark_outreach_form_sent.","description":"Requires the `write:backlinks` scope.","x-required-scope":"write:backlinks","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prospectId":{"type":"string","description":"Prospect id from list_outreach_prospects"}},"required":["prospectId"]}}}}}},"/api/v1/outreach/form-sent":{"post":{"operationId":"mark_outreach_form_sent","summary":"Record a message you sent through a prospect's contact form, with the page you sent it from. The first one moves the prospect to Contacted; its one follow-up, once it opens, is recorded the same way. Each counts toward your outreach daily limit. Returns followUpAt, when the follow-up opens. Dry-run unless confirm is true. When the person says they sent it, call it with confirm=true.","description":"Requires the `write:backlinks` scope.","x-required-scope":"write:backlinks","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prospectId":{"type":"string","description":"Prospect id from list_outreach_prospects"},"pageUrl":{"type":"string","description":"The page on their site where you sent the form"},"confirm":{"type":"boolean","description":"Set true to record the send"}},"required":["prospectId","pageUrl"]}}}}}},"/api/v1/outreach/prospects":{"get":{"operationId":"list_outreach_prospects","summary":"Your link outreach prospects, newest first, one row per site: domain, url, status (identified, contacted, replied, link_placed or rejected), the article it's for, Domain Rating (dr, with drSource saying whether the rating is measured or estimated), contact email and name once found, send and reply dates, the latest reply and how it was classed, follow-ups, and whether a placed link was seen on the page. Each row also gives your next step as the dashboard's queue files it, nextMove: reply, check, followup, send, draft, find, form, queued, waiting, placed or ended (check: a placement not yet seen on their page; form: no email found, so use their contact form; ended: rejected or bounced). stage says where it stands (no_contact, no_email, contact_found, email_drafted, contacted, replied, placed or rejected), hasDraft whether an email is drafted, and autopilotHeld whether Autopilot held that email for your review. competitor is true for a site of a business that sells what you sell (the dashboard's Competitor tag).","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"aiSources","in":"query","required":false,"schema":{"type":"boolean","description":"Set true to list only AI sources: pages AI engines cite for your tracked questions, each with the product or service it offers (aiSource). Needs a product or service in Brand Kit."}}]}},"/api/v1/outreach/queue":{"post":{"operationId":"queue_outreach_email","summary":"Queue an outreach email to a prospect. It sends from the workspace's own connected mailbox, paced automatically with a daily cap. Uses the stored draft unless subject/body are given (a reply to a prospect who answered must pass both); a \"[Your name]\" sign-off in the draft is replaced with the owner's profile name at send time. Dry-run unless confirm is true — a confirmed queue leads to a REAL email being sent. When the person asked for this, call it with confirm=true.","description":"Requires the `write:backlinks` scope.","x-required-scope":"write:backlinks","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"backlinkId":{"type":"string","description":"Prospect id from list_outreach_prospects"},"subject":{"type":"string","description":"Override the drafted subject"},"body":{"type":"string","description":"Override the drafted body"},"confirm":{"type":"boolean","description":"Set true to actually queue the send"}},"required":["backlinkId"]}}}}}},"/api/v1/outreach/stats":{"get":{"operationId":"get_outreach_stats","summary":"Outreach funnel for the last 90 days by how each prospect was found (intersection = competitor linkers, footprint = resource pages, mention = topical mentions, fresh = fresh competitor links, brand_mention = brand mentions, ai_source = AI sources, legacy = earlier rows): prospects, sent, replied and placed with reply and placement rates per send, plus the total, and aiSources: the AI sources found this billing window (found), the 100 a window allows (cap) and when the window resets (resetsAt). The harvest reads the same numbers to weight its methods; nothing to configure.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/outreach/status":{"post":{"operationId":"update_outreach_status","summary":"Move an outreach prospect through the pipeline. A move to link_placed is confirmed by reading their page now and again tomorrow; the row keeps Placed and shows what was seen.","description":"Requires the `write:backlinks` scope.","x-required-scope":"write:backlinks","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"backlinkId":{"type":"string","description":"Prospect id from list_outreach_prospects"},"status":{"type":"string","enum":["identified","contacted","replied","link_placed","rejected"],"description":"The prospect's new stage"}},"required":["backlinkId","status"]}}}}}},"/api/v1/overview/funnel":{"get":{"operationId":"get_overview_funnel","summary":"Two numbers for the last 30 days: crawls30d (visits from AI crawlers) and aiVisits30d (people who arrived from an AI engine). Zeros until crawler or visit data comes in.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/overview/movers":{"get":{"operationId":"get_question_movers","summary":"The tracked queries whose AI citation rate moved most this week against the week before: up and down, three each at most, each with queryId, queryText, volume (search volume, when known), previous and current (the percent of checks that cited you that week) and delta (the change in points). A query needs checks in both weeks; queries that name your brand are left out.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/queries":{"get":{"operationId":"list_tracked_queries","summary":"The workspace's tracked queries — the questions RankControl checks weekly across the 7 AI engines for brand citations — with their status and, for each tracked query, how many of the AI engines that answered it cited it in their latest check; `noAnswer` names an engine with no answer (Google shows an AI Overview for some questions only). `branded` marks a question that names your brand: it's checked and listed, but doesn't count toward your score.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"topic","in":"query","required":false,"schema":{"type":"string","description":"One topic's questions only: its id or name from get_topics, or none for questions with no topic. Leave it out for the whole workspace."}},{"name":"engines","in":"query","required":false,"schema":{"type":"string","description":"Only these engines' answers: their ids, comma-separated (chatgpt, perplexity, claude, gemini, grok, google_ai_mode, google_ai_overview). Leave it out for all seven."}}]},"post":{"operationId":"add_tracked_query","summary":"Add a query. Weekly AI citation checks start immediately when a tracking slot is free; otherwise it is saved untracked. Pass coveredByContentId when the query is one of that article's question headings, so Plan Content does not offer it again.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"queryText":{"type":"string","description":"The search/AI query to track"},"coveredByContentId":{"type":"string","description":"contentPage id of the article that already answers this query"}},"required":["queryText"]}}}}}},"/api/v1/queries/remove":{"post":{"operationId":"remove_tracked_query","summary":"Delete a query. Frees its tracking slot if it was tracked.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"queryId":{"type":"string","description":"Query id from get_tracked_queries"}},"required":["queryId"]}}}}}},"/api/v1/queries/set-tracking":{"post":{"operationId":"set_query_tracking","summary":"Pause or resume weekly AI citation checks on a saved query. Tracking uses one of the plan's tracking slots; pausing frees it. The query is kept either way.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"queryId":{"type":"string","description":"Query id from get_tracked_queries"},"tracked":{"type":"boolean","description":"true to track weekly, false to pause"}},"required":["queryId","tracked"]}}}}}},"/api/v1/queries/slots":{"get":{"operationId":"get_query_slots","summary":"How many queries you track against your plan's limit, as Tracked Questions shows it (18/50 tracked): used and limit. At the limit, add_tracked_query needs a free slot first.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/queries/update":{"post":{"operationId":"update_tracked_query","summary":"Edit a tracked query's text. A spelling fix keeps its history. Any other change starts a new query in the same slot and waits for the owner's approval.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"queryId":{"type":"string","description":"Query id from get_tracked_queries"},"queryText":{"type":"string","description":"New query text (min 5 characters)"}},"required":["queryId","queryText"]}}}}}},"/api/v1/reports/agent-activity":{"get":{"operationId":"get_agent_activity","summary":"Runs per agent (radar, forge, recon, outreach, sentinel, amplify, social) in the window, newest first, each with startedAt, completedAt, status and triggeredBy. sinceDays sets the window (default 30); every run in it is listed, up to 300 per agent, and perAgent caps that lower. Agents with no runs in the window are left out.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"perAgent","in":"query","required":false,"schema":{"type":"number","maximum":300,"description":"Runs per lane, default every run in the window (at most 300)"}},{"name":"sinceDays","in":"query","required":false,"schema":{"type":"number","description":"Window in days, default 30"}}]}},"/api/v1/reports/summary":{"get":{"operationId":"get_exec_summary","summary":"Executive report: last 30 days vs the 30 before — cite rate, citations (the last 4 weekly checks vs the 4 before), page views, AI-referred views, AI key events and AI revenue (when Google Analytics tracks them), crawler hits, and articles published.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/trial":{"get":{"operationId":"get_trial_report","summary":"The day-4 trial report: the workspace as it stood at the end of day 4 of its trial (articles live and written, the setup check's AI answers and the rivals they named, link prospects, conversations to join, what's next and the open expedition steps), with generatedAt. Null until the report is generated on day 4 of a trial; workspaces that never had a trial have none.","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/wins":{"get":{"operationId":"get_top_wins","summary":"Up to four wins from the last 30 days, each with kind (page, query, keyword or backlink), title, detail and stat: the most-cited page, the biggest citation-rate jump for a query, the biggest Google ranking climb and the best new backlink, leaving out links hidden as spam. A win with nothing to show is left out. Null, with a hint, until the Reports screen is turned on (activate_analytics_screen).","description":"Requires the `read:analytics` scope.","x-required-scope":"read:analytics","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/repurpose":{"get":{"operationId":"list_repurpose_queue","summary":"Published articles with their social repurpose drafts per platform (platform + status chips). Shows which articles still need drafts and which scheduler is connected (Buffer or Postiz).","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/repurpose/channels":{"get":{"operationId":"list_postiz_channels","summary":"Connected social channels across Postiz and Buffer (scheduler, id, name, platform). Channel ids are required by push_repurpose_draft.","description":"Requires the `write:social` scope.","x-required-scope":"write:social","x-rate-limit-per-minute":3,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/repurpose/draft":{"post":{"operationId":"update_repurpose_draft","summary":"Change a social post draft's text or title before you push or post it. Only the fields you pass change. Draft ids come from get_repurpose_drafts.","description":"Requires the `write:social` scope.","x-required-scope":"write:social","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draftId":{"type":"string","description":"Draft id from get_repurpose_drafts"},"body":{"type":"string","description":"The new post text"},"title":{"type":"string","description":"The new title, for drafts that have one"}},"required":["draftId"]}}}}}},"/api/v1/repurpose/generate":{"post":{"operationId":"generate_repurpose_drafts","summary":"Draft platform-native social posts for all eight platforms from a published article. Only for an article with no drafts yet; edit existing drafts in the dashboard. Defaults to a DRY RUN. When the person asked for this, call it with confirm=true.","description":"Requires the `write:social` scope.","x-required-scope":"write:social","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentId":{"type":"string","description":"Published article id from list_content"},"confirm":{"type":"boolean","description":"Set true to write the drafts (default: dry run)"}},"required":["contentId"]}}}}}},"/api/v1/repurpose/mark-posted":{"post":{"operationId":"mark_repurpose_posted","summary":"Mark a repurpose draft as posted — use after publishing its text manually (outside Buffer or Postiz).","description":"Requires the `write:social` scope.","x-required-scope":"write:social","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draftId":{"type":"string","description":"Draft id from get_repurpose_drafts"}},"required":["draftId"]}}}}}},"/api/v1/repurpose/push":{"post":{"operationId":"push_repurpose_draft","summary":"Send a repurpose draft to a connected scheduler's channels: Postiz or Buffer (schedule, save as a draft, or add to Buffer's queue). YouTube and TikTok drafts are recording scripts and never push. PUBLICLY VISIBLE side effect: defaults to a DRY RUN. When the person asked for this, call it with confirm=true.","description":"Requires the `write:social` scope.","x-required-scope":"write:social","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draftId":{"type":"string","description":"Draft id from get_repurpose_drafts"},"scheduler":{"type":"string","enum":["postiz","buffer"],"description":"Which scheduler; required when both are connected"},"integrationIds":{"type":"array","items":{"type":"string"},"description":"Channel ids from list_postiz_channels (required with confirm)"},"scheduleType":{"type":"string","enum":["schedule","draft","queue"],"description":"Default draft; queue is Buffer only"},"date":{"type":"string","description":"ISO time for scheduleType=schedule"},"confirm":{"type":"boolean","description":"Set true to send it to the scheduler (default: dry run)"}},"required":["draftId"]}}}}}},"/api/v1/settings/articles":{"get":{"operationId":"get_article_settings","summary":"The workspace's article settings: articleSettings (auto-write, auto-publish, images, title in hero image, section infographics, Related Reading, YouTube, emojis, link counts, global instructions and the formats turned on), flexibleScheduling and styleSet (the hero image style). Change them with update_article_settings. News and trending articles always publish manually, whatever auto-publish says.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"update_article_settings","summary":"Change the workspace's article settings. Only the fields you pass change; the rest keep their values. flexibleScheduling true allows 1 to 5 articles a day and lets you move planned articles by hand. styleSet picks the image style for hero images. enabledContentTypes sets which article formats are turned on. Turning on news or trending is a preview unless confirm is true; when the person asked for it, call it with confirm=true. get_article_settings shows the current values.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"articleSettings":{"type":"object","properties":{"autoPublish":{"type":"boolean","description":"Publish automatically on each article's scheduled day. False: you review and publish each one yourself. News and trending articles always wait for your approval."},"autoGenerate":{"type":"boolean","description":"Off = fully manual mode: articles are written only on demand (generate_article) and publish only from the editor. Turning it on needs a publishing destination that has already put at least one article live on the site."},"includeInfographics":{"type":"boolean","description":"AI hero + section images"},"titleInHeroImage":{"type":"boolean","description":"Write the post title into the hero image"},"includeSectionInfographics":{"type":"boolean","description":"Informational panels in 2,000+ word articles"},"includeRelatedReading":{"type":"boolean","description":"Related Reading link block at the end"},"includeYouTube":{"type":"boolean","description":"A relevant YouTube video embedded where a walkthrough would help"},"useEmojis":{"type":"boolean","description":"Tasteful emojis in headers and lists"},"internalLinksPerArticle":{"type":"number","minimum":1,"maximum":8,"description":"Links to your own pages in each article (1 to 8)"},"externalLinksPerArticle":{"type":"number","minimum":0,"maximum":15,"description":"Links to other sites in each article (0 to 15)"},"globalInstructions":{"type":"string","description":"Editorial rules for every article, like \"Always mention our free migration service.\""},"enabledContentTypes":{"type":"array","items":{"type":"string","enum":["guide","explainer","howto","glossary","faq","best_practices","comparison","alternatives","buying_guide","review","listicle","checklist","statistics","use_case","implementation","migration","pillar","research","opinion","news","trending","blog","integration","industry","persona","pain_point"]},"description":"The article formats turned on, as the whole list you want: it replaces the current list. Turning on news or trending needs confirm."}},"description":"The article settings to change. Fields you leave out stay as they are."},"flexibleScheduling":{"type":"boolean","description":"true allows 1 to 5 articles a day and lets you move planned articles by hand"},"styleSet":{"type":"string","enum":["editorial","cinematic","documentary","studio","conceptual-metaphor","editorial-illustration","clay-3d","isometric","line-art-minimal","dark-gradient-glass","travel-poster","watercolor-wash","retro-futurism","ukiyo-e","paper-diorama","gouache-metaphor","minimalist","riso-print","pop-art","corporate-flat","memphis","bauhaus-poster","flat-vector","cartoon-creator","soft-anime"],"description":"Your workspace's image style, one of the 25 styles."},"confirm":{"type":"boolean","description":"Set true to turn on news or trending articles (default: a preview of that change)"}}}}}}}},"/api/v1/social":{"get":{"operationId":"list_social_threads","summary":"Social thread prospects (Reddit/X) where the brand's articles could earn a mention, with subreddit rules context, sorted by intent. Each thread also gives your next step as the dashboard's queue files it, nextMove: post, draft, opened, posted or skipped (opened: you opened your reply on the platform and it isn't on the thread yet), and stage: identified, reply_ready, opened, posted or skipped.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"platform","in":"query","required":false,"schema":{"type":"string","enum":["reddit","twitter"],"description":"reddit or twitter (X)"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","description":"Show one stored status: identified, reply_drafted (opened replies included), engaged (posted) or skipped"}},{"name":"stage","in":"query","required":false,"schema":{"type":"string","enum":["identified","reply_ready","opened","posted","skipped"],"description":"Show one stage, as the Social tab's chips do: identified, reply_ready, opened (you opened your reply on the platform and it isn't on the thread yet), posted or skipped"}},{"name":"age","in":"query","required":false,"schema":{"type":"string","enum":["ranked","new"],"description":"ranked: the best matches for your articles' keywords, of any age. new: threads posted in the last 48 hours on Reddit or 24 hours on X."}},{"name":"aiSources","in":"query","required":false,"schema":{"type":"boolean","description":"Set true to list only the threads AI engines cite for your tracked questions (aiCited). Needs a product or service in Brand Kit."}}]}},"/api/v1/social/draft-reply":{"post":{"operationId":"draft_social_reply","summary":"AI-draft a reply for a social thread. Nothing posts — the draft lands on the thread for human review. Subject to the same warm-up/pacing guards as the dashboard.","description":"Requires the `write:social` scope.","x-required-scope":"write:social","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"threadId":{"type":"string","description":"Thread id from list_social_threads"},"mentionMode":{"type":"string","enum":["none","natural","founderOpen"],"description":"Brand-mention mode; warm-up accounts are clamped to none"}},"required":["threadId"]}}}}}},"/api/v1/social/open":{"post":{"operationId":"open_social_thread","summary":"Open a drafted social thread to post the reply yourself: returns the thread URL (for X, a link that opens X's composer with the reply filled in) and starts four checks over 72 hours that mark the thread Posted once your reply is found there. Pass text to use an edited reply; X replies must be 280 characters or fewer.","description":"Requires the `write:social` scope.","x-required-scope":"write:social","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"threadId":{"type":"string","description":"Thread id from list_social_threads"},"text":{"type":"string","description":"Your edited reply. Leave it out to use the draft."}},"required":["threadId"]}}}}}},"/api/v1/social/reddit-profile":{"post":{"operationId":"set_reddit_profile","summary":"Save the Reddit account the Social tab drafts for: username (optional), comment karma, account age (under1mo, 1to6mo, 6moto2yr or over2yr), goal, founderStory and tone. Karma and age decide whether drafts may mention your product; the reply returns the readiness tier (warmup or ready). Replaces the stored profile — send every field.","description":"Requires the `write:social` scope.","x-required-scope":"write:social","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string","description":"Your Reddit username, with or without u/"},"karma":{"type":"number","description":"Your comment karma (0 or more)"},"accountAge":{"type":"string","description":"under1mo | 1to6mo | 6moto2yr | over2yr"},"goal":{"type":"string","enum":["Feedback","First users","Traffic","Awareness","Helping people"],"description":"What you want from Reddit"},"founderStory":{"type":"string","description":"Your real backstory. Drafts draw on it, in the first person, when it fits."},"tone":{"type":"string","enum":["Casual","Technical","Blunt","Story-driven","Funny"],"description":"How your drafts sound"}},"required":["karma","accountAge","goal","founderStory","tone"]}}}}}},"/api/v1/social/stats":{"get":{"operationId":"get_social_stats","summary":"Counts of the Social tab's Reddit and X threads: total, by stage (identified, replyDrafted, engaged for posted, skipped), opened (replies you opened on the platform that aren't on the thread yet, also counted in replyDrafted), by platform (reddit, twitter) and by age (ranked, new), plus replies drafted in the last 30 days with and without a product mention (mention30d, helpful30d). All zeros until threads are found; list_social_threads returns the threads.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/social/status":{"post":{"operationId":"update_social_thread_status","summary":"Skip a social thread so it leaves the queue (the only manual status; Posted is set automatically once your reply is found in the thread).","description":"Requires the `write:social` scope.","x-required-scope":"write:social","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"threadId":{"type":"string","description":"Thread id from list_social_threads"},"status":{"type":"string","description":"skipped, the only status you can set"}},"required":["threadId","status"]}}}}}},"/api/v1/social/threads/posted":{"post":{"operationId":"mark_social_thread_posted","summary":"Record the reply you posted on a social thread you opened with open_social_thread, by its link, and the thread moves to Posted. On Reddit the link must be a comment on that thread; on X, your reply's own post on x.com or twitter.com. Pass postedText, the reply as you posted it, to keep it with the thread. Dry-run unless confirm is true. When the person says they posted it, call it with confirm=true.","description":"Requires the `write:social` scope.","x-required-scope":"write:social","x-rate-limit-per-minute":20,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"threadId":{"type":"string","description":"Thread id from list_social_threads"},"permalink":{"type":"string","description":"The link to your posted reply"},"postedText":{"type":"string","description":"Your reply as posted"},"confirm":{"type":"boolean","description":"Set true to mark the thread Posted"}},"required":["threadId","permalink"]}}}}}},"/api/v1/social/x-handle":{"post":{"operationId":"set_social_x_handle","summary":"Save the X handle used to recognise your posted replies (optional; text matching covers the rest). Pass an empty handle to clear it.","description":"Requires the `write:social` scope.","x-required-scope":"write:social","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"type":"string","description":"Your X handle, with or without @. An empty string clears it."}},"required":["handle"]}}}}}},"/api/v1/support":{"post":{"operationId":"contact_support","summary":"Send a message or bug report to the RankControl team (emails support with the workspace identified; the org owner is set as reply-to). Use when an API call errors unexpectedly or data looks wrong — include the failing request, ids, and what you expected. Capped at 3/min.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":3,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","description":"A one-line summary"},"message":{"type":"string","description":"Details: what happened, errors, ids, steps to reproduce"},"pageUrl":{"type":"string","description":"Related dashboard or API URL"}},"required":["subject","message"]}}}}}},"/api/v1/team":{"get":{"operationId":"get_team","summary":"Workspace members and pending invites, with each member's per-screen permission matrix and the seat cap.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/team/invite":{"post":{"operationId":"invite_team_member","summary":"Invite a member to the workspace with per-screen none/read/write access (unspecified screens default to none — grant at least one). Dry-run unless confirm is true; confirming sends the invite email. When the person asked for this, call it with confirm=true.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Invitee email address"},"screenPermissions":{"type":"object","properties":{"overview":{"type":"string","enum":["none","read","write"],"description":"Overview screen access"},"content":{"type":"string","enum":["none","read","write"],"description":"Content screen access"},"visibility":{"type":"string","enum":["none","read","write"],"description":"Visibility screen access"},"brandControl":{"type":"string","enum":["none","read","write"],"description":"Brand Kit screen access"},"linkControl":{"type":"string","enum":["none","read","write"],"description":"Backlinks screen access"},"analytics":{"type":"string","enum":["none","read","write"],"description":"Analytics screen access"},"reports":{"type":"string","enum":["none","read","write"],"description":"Reports screen access"}},"description":"Access per screen: none, read or write. Screens you leave out get none."},"confirm":{"type":"boolean","description":"Set true to actually send the invite (default dry-run)"}},"required":["email"]}}}}}},"/api/v1/team/remove":{"post":{"operationId":"remove_team_member","summary":"Remove a member from the workspace (access revoked immediately). Dry-run unless confirm is true. When the person asked for this, call it with confirm=true.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","description":"Member user id from get_team"},"confirm":{"type":"boolean","description":"Set true to remove the member (default: dry run)"}},"required":["userId"]}}}}}},"/api/v1/team/revoke":{"post":{"operationId":"revoke_team_invite","summary":"Cancel a pending team invite so it can no longer be accepted. It waits for the workspace owner to approve it in RankControl; the answer is an approval link. Invitation ids come from get_team.","description":"Requires the `manage:org` scope.","x-required-scope":"manage:org","x-rate-limit-per-minute":5,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"invitationId":{"type":"string","description":"Pending invite id from get_team"}},"required":["invitationId"]}}}}}},"/api/v1/topics":{"get":{"operationId":"get_topics","summary":"The workspace's topics, each with id, name and questions (how many tracked questions it holds), and none: how many tracked questions have no topic. Each topic also carries published and planned (its articles live, and planned or drafted); the answer adds the workspace's published, planned, thin (topics with fewer than 5 published) and orphans (published articles no other published article links to). Tracked queries, searches saved for Plan Content and planned articles all group under them, and plan_content takes their names. Empty until topics are set with set_topics.","description":"Requires the `read:content` scope.","x-required-scope":"read:content","x-rate-limit-per-minute":60,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"set_topics","summary":"Replace the FULL topic list. Send every topic that should exist; missing ones are removed, new ones created, duplicates merged. Read get_topics first and modify that list. Up to 20 topics.","description":"Requires the `write:content` scope.","x-required-scope":"write:content","x-rate-limit-per-minute":10,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topics":{"type":"array","items":{"type":"string"},"description":"The complete list of topic names"}},"required":["topics"]}}}}}},"/api/v1/visibility/footprint":{"get":{"operationId":"get_web_footprint","summary":"How much of the web links to your domain and to each competitor you track, scored 0 to 10: your domain and score, peers (name, domain, score; highest first) and the peers' median. Null until a score exists. A new domain scoring near zero is why AI citations are still absent.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/visibility/pages":{"get":{"operationId":"get_cited_pages","summary":"The pages AI answers cite for your tracked questions, in three lists: top (most answers in the last 4 weekly checks), new (cited in those and not in the 4 checks before) and losing (fewer answers than in the 4 checks before). Each page has its domain, its type, whose site it is (brand, competitive, ugc or editorial, and the competitor on a competitor's page), its answers in both periods, the article format that gets pages like it (formatOff when that format is off in your writing settings), whether it can be pitched for a mention (hasProducts is false until you add a product or service), and whether it's a discussion to reply in. New and losing stay empty until the 4 checks before have answers.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"topic","in":"query","required":false,"schema":{"type":"string","description":"One topic's questions only: its id or name from get_topics, or none for questions with no topic. Leave it out for the whole workspace."}},{"name":"engines","in":"query","required":false,"schema":{"type":"string","description":"Only these engines' answers: their ids, comma-separated (chatgpt, perplexity, claude, gemini, grok, google_ai_mode, google_ai_overview). Leave it out for all seven."}}]}},"/api/v1/visibility/score":{"get":{"operationId":"get_visibility_score","summary":"Composite AI visibility score for the workspace, blending AI citation rate across the tracked models with Google and Bing rank share. Returns the composite and the score of each part: AI citations, Google and Bing (the AI part includes a per-model breakdown). lastChecked is null, or, when the newest weekly check is more than 8 days old, the day of that check (YYYY-MM-DD): the numbers are that check's.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"topic","in":"query","required":false,"schema":{"type":"string","description":"One topic's questions only: its id or name from get_topics, or none for questions with no topic. Leave it out for the whole workspace."}},{"name":"engines","in":"query","required":false,"schema":{"type":"string","description":"Only these engines' answers: their ids, comma-separated (chatgpt, perplexity, claude, gemini, grok, google_ai_mode, google_ai_overview). Leave it out for all seven."}}]}},"/api/v1/visibility/sentiment":{"get":{"operationId":"get_citation_sentiment","summary":"How AI answers frame the brand when it's cited: positive / neutral / negative counts, daily trend, and recent answer snippets as receipts.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","minimum":7,"maximum":90,"description":"Window in days, default 30"}},{"name":"topic","in":"query","required":false,"schema":{"type":"string","description":"One topic's questions only: its id or name from get_topics, or none for questions with no topic. Leave it out for the whole workspace."}},{"name":"engines","in":"query","required":false,"schema":{"type":"string","description":"Only these engines' answers: their ids, comma-separated (chatgpt, perplexity, claude, gemini, grok, google_ai_mode, google_ai_overview). Leave it out for all seven."}}]}},"/api/v1/visibility/share-of-voice":{"get":{"operationId":"get_share_of_voice","summary":"Share of voice vs competitors: the brand's citation rate, top competitor mention rates, and the brand's share of all brand appearances in AI answers over the window.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","minimum":7,"maximum":90,"description":"Window in days, default 30"}},{"name":"topic","in":"query","required":false,"schema":{"type":"string","description":"One topic's questions only: its id or name from get_topics, or none for questions with no topic. Leave it out for the whole workspace."}},{"name":"engines","in":"query","required":false,"schema":{"type":"string","description":"Only these engines' answers: their ids, comma-separated (chatgpt, perplexity, claude, gemini, grok, google_ai_mode, google_ai_overview). Leave it out for all seven."}}]}},"/api/v1/visibility/sources":{"get":{"operationId":"get_citation_sources","summary":"Which domains AI engines cite when answering the brand's tracked queries, typed brand / competitive / UGC / editorial with counts and share. Shows where citation presence must be earned.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","minimum":7,"maximum":90,"description":"Window in days, default 30"}},{"name":"topic","in":"query","required":false,"schema":{"type":"string","description":"One topic's questions only: its id or name from get_topics, or none for questions with no topic. Leave it out for the whole workspace."}},{"name":"engines","in":"query","required":false,"schema":{"type":"string","description":"Only these engines' answers: their ids, comma-separated (chatgpt, perplexity, claude, gemini, grok, google_ai_mode, google_ai_overview). Leave it out for all seven."}}]}},"/api/v1/visibility/trend":{"get":{"operationId":"get_visibility_trend","summary":"Your AI visibility score by day across the 7 AI engines, oldest first: date, score (percent of checks that cited you), totalChecks and cited. days picks 30, 60 or 90 (default 30). Days without checks are left out, so expect gaps between weekly checks.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","enum":["30","60","90"],"description":"Window size in days, default 30"}},{"name":"topic","in":"query","required":false,"schema":{"type":"string","description":"One topic's questions only: its id or name from get_topics, or none for questions with no topic. Leave it out for the whole workspace."}},{"name":"engines","in":"query","required":false,"schema":{"type":"string","description":"Only these engines' answers: their ids, comma-separated (chatgpt, perplexity, claude, gemini, grok, google_ai_mode, google_ai_overview). Leave it out for all seven."}}]}},"/api/v1/visibility/web-total-history":{"get":{"operationId":"get_web_total_history","summary":"Web total history for the workspace and every competitor it tracks: each domain's monthly web total over the last 3 months, oldest month first. The web total counts citations in ChatGPT and Google answers, including queries you do not track.","description":"Requires the `read:citations` scope.","x-required-scope":"read:citations","x-rate-limit-per-minute":30,"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Success; the payload is wrapped in a data envelope","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"API key lacks the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited; the body includes a retryAfterMs hint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}