{"info":{"description":"Paid-only Rankhog agentic capability API for Reddit research, strategy, and Desktop-backed Reddit action execution. The same registry backs REST, MCP, and the Rankhog CLI. Write executions return a queued execution ID immediately and expose normalized status polling.","title":"Rankhog Agentic API","version":"1.0.0"},"openapi":"3.1.0","servers":[{"url":"https://api.rankhog.com"}],"tags":[{"description":"Paid-only Rankhog agentic capabilities for workspaces, strategy, Reddit research, draft storage, Desktop readiness, queued Reddit action execution, status polling, analytics, and jobs.","name":"agentic"}],"components":{"schemas":{},"parameters":{},"securitySchemes":{"apiKeyAuth":{"description":"Rankhog organization API key sent as `Authorization: Bearer rhog_...`.","scheme":"bearer","type":"http"},"apiKeyHeader":{"description":"Rankhog organization API key sent as `x-api-key: rhog_...`.","in":"header","name":"x-api-key","type":"apiKey"},"mcpOAuth":{"authorizationUrl":"/api/auth/oauth2/authorize","flows":{"authorizationCode":{"authorizationUrl":"/api/auth/oauth2/authorize","scopes":{"product:write":"Allow product:write.","warmup:write":"Allow warmup:write.","growth:safety:write":"Allow growth:safety:write.","rankhog:read":"Allow rankhog:read.","reddit:rules:read":"Allow reddit:rules:read.","reddit:activity:read":"Allow reddit:activity:read.","browser:read":"Allow browser:read.","credits:read":"Allow credits:read.","conversation:write":"Allow conversation:write.","jobs:write":"Allow jobs:write.","strategy:write":"Allow strategy:write.","reddit:draft:write":"Allow reddit:draft:write.","reddit:write:dangerous":"Allow reddit:write:dangerous.","setup:write":"Allow setup:write."},"tokenUrl":"/api/auth/oauth2/token"}},"type":"oauth2"},"sessionBearer":{"description":"Better Auth bearer/session token, used by the Rankhog CLI device authorization flow.","scheme":"bearer","type":"http"}}},"paths":{"/agent/v1/setup/product":{"post":{"description":"Set up a product in Rankhog from its website and build the free Reddit SEO report: which Google searches show Reddit threads, where the product ranks, and which subreddits talk about it. Reuses the product sign-up made, or one with the same website, so calling it again is safe and moves setup forward. It finishes setup once the report is ready. The report takes a few minutes: poll get_product_setup with the productId it returns. It never pays for anything. The person starts the 7-day trial themselves from links.trial. Cache policy: live. Idempotency: none. Auth modes: mcp_oauth, session_bearer.","operationId":"setup_product","security":[{"mcpOAuth":["rankhog:read","setup:write"]},{"sessionBearer":[]}],"summary":"Set up a product and its free report","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"audience":"Founders of small SaaS companies","websiteUrl":"https://supportleaf.example"},"schema":{"type":"object","properties":{"audience":{"type":"string","minLength":1,"maxLength":2000,"example":"Founders of small SaaS companies"},"organizationId":{"type":"string","minLength":1,"maxLength":128,"example":"org_demo"},"postingLanguage":{"type":"string","minLength":2,"maxLength":10,"example":"en"},"productId":{"type":"string","minLength":1,"maxLength":128,"example":"site_demo"},"productName":{"type":"string","minLength":1,"maxLength":120,"example":"SupportLeaf"},"timeZone":{"type":"string","minLength":1,"maxLength":64,"example":"Europe/Paris"},"websiteUrl":{"type":"string","minLength":4,"maxLength":500,"example":"https://supportleaf.example"}},"required":["websiteUrl"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"checkAfterSeconds":20,"links":{"dashboard":null,"desktopSetup":null,"report":"https://rankhog.com/product/site_demo/onboarding/review","trial":null},"message":"Rankhog is building the free Reddit SEO report. It's on: Check Google searches. Check again in about 20 seconds.","plan":{"cardRequired":true,"name":"Growth","price":"$99/month","trialDays":7},"product":{"id":"site_demo","name":"SupportLeaf","websiteUrl":"https://supportleaf.example"},"report":{"steps":[{"label":"Save your answers","status":"completed"},{"label":"Check Google searches","status":"running"}],"summary":null},"stage":"building_report"},"schema":{"type":"object","properties":{"checkAfterSeconds":{"type":["integer","null"]},"links":{"type":"object","properties":{"dashboard":{"type":["string","null"]},"desktopSetup":{"type":["string","null"]},"report":{"type":["string","null"]},"trial":{"type":["string","null"]}},"required":["dashboard","desktopSetup","report","trial"],"additionalProperties":false},"message":{"type":"string"},"plan":{"type":"object","properties":{"cardRequired":{"type":"boolean"},"name":{"type":"string"},"price":{"type":"string"},"trialDays":{"type":"integer"}},"required":["cardRequired","name","price","trialDays"],"additionalProperties":false},"product":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"websiteUrl":{"type":["string","null"]}},"required":["id","name","websiteUrl"],"additionalProperties":false},"report":{"type":["object","null"],"properties":{"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"status":{"type":"string"}},"required":["label","status"],"additionalProperties":false}},"summary":{"type":["object","null"],"properties":{"alternatives":{"type":"array","items":{"type":"object","properties":{"displayUrl":{"type":"string"},"position":{"type":"integer"},"query":{"type":"string"},"title":{"type":["string","null"]}},"required":["displayUrl","position","query","title"],"additionalProperties":false}},"communities":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":"string"},"subreddit":{"type":"string"},"url":{"type":"string"}},"required":["keyword","subreddit","url"],"additionalProperties":false}},"findings":{"type":"array","items":{"type":"object","properties":{"summary":{"type":"string"},"title":{"type":"string"}},"required":["summary","title"],"additionalProperties":false}},"generatedAt":{"type":"string"},"limitations":{"type":"array","items":{"type":"string"}},"score":{"type":"object","properties":{"label":{"type":"string"},"summary":{"type":"string"},"value":{"type":["integer","null"]}},"required":["label","summary","value"],"additionalProperties":false},"searches":{"type":"array","items":{"type":"object","properties":{"query":{"type":"string"},"redditPosition":{"type":["integer","null"]},"redditTitle":{"type":["string","null"]},"redditUrl":{"type":["string","null"]},"yourPosition":{"type":["integer","null"]}},"required":["query","redditPosition","redditTitle","redditUrl","yourPosition"],"additionalProperties":false}}},"required":["alternatives","communities","findings","generatedAt","limitations","score","searches"],"additionalProperties":false}},"required":["steps","summary"],"additionalProperties":false},"stage":{"type":"string","enum":["needs_website","building_report","report_failed","needs_trial","active","lapsed"]}},"required":["checkAfterSeconds","links","message","plan","product","report","stage"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_human_actor_required.","content":{"application/json":{"examples":{"agentic_human_actor_required":{"summary":"agentic_human_actor_required","value":{"error":{"code":"agentic_human_actor_required","message":"This agentic capability requires a human-authenticated Rankhog user."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_not_found.","content":{"application/json":{"examples":{"agentic_not_found":{"summary":"agentic_not_found","value":{"error":{"code":"agentic_not_found","message":"Website not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_too_many_requests.","content":{"application/json":{"examples":{"agentic_too_many_requests":{"summary":"agentic_too_many_requests","value":{"error":{"code":"agentic_too_many_requests","message":"You have added a lot of websites today. Try again tomorrow."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/setup/product/status":{"post":{"description":"Where a product's setup stands, and the next step to tell the person. While the free Reddit SEO report builds, the step it is on. When it's ready, the report in short and links.report. Without a plan, links.trial is the Rankhog page where the person starts the 7-day trial and pays at Stripe themselves; a card is needed. Once active, links.desktopSetup is where they connect Rankhog Desktop and a Reddit account. Leave productId out to read the product being set up. Cache policy: live. Idempotency: none. Auth modes: mcp_oauth, session_bearer.","operationId":"get_product_setup","security":[{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get product setup and report","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"productId":"site_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":128,"example":"org_demo"},"productId":{"type":"string","minLength":1,"maxLength":128,"example":"site_demo"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"checkAfterSeconds":20,"links":{"dashboard":null,"desktopSetup":null,"report":"https://rankhog.com/product/site_demo/onboarding/review","trial":null},"message":"Rankhog is building the free Reddit SEO report. It's on: Check Google searches. Check again in about 20 seconds.","plan":{"cardRequired":true,"name":"Growth","price":"$99/month","trialDays":7},"product":{"id":"site_demo","name":"SupportLeaf","websiteUrl":"https://supportleaf.example"},"report":{"steps":[{"label":"Save your answers","status":"completed"},{"label":"Check Google searches","status":"running"}],"summary":null},"stage":"building_report"},"schema":{"type":"object","properties":{"checkAfterSeconds":{"type":["integer","null"]},"links":{"type":"object","properties":{"dashboard":{"type":["string","null"]},"desktopSetup":{"type":["string","null"]},"report":{"type":["string","null"]},"trial":{"type":["string","null"]}},"required":["dashboard","desktopSetup","report","trial"],"additionalProperties":false},"message":{"type":"string"},"plan":{"type":"object","properties":{"cardRequired":{"type":"boolean"},"name":{"type":"string"},"price":{"type":"string"},"trialDays":{"type":"integer"}},"required":["cardRequired","name","price","trialDays"],"additionalProperties":false},"product":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"websiteUrl":{"type":["string","null"]}},"required":["id","name","websiteUrl"],"additionalProperties":false},"report":{"type":["object","null"],"properties":{"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"status":{"type":"string"}},"required":["label","status"],"additionalProperties":false}},"summary":{"type":["object","null"],"properties":{"alternatives":{"type":"array","items":{"type":"object","properties":{"displayUrl":{"type":"string"},"position":{"type":"integer"},"query":{"type":"string"},"title":{"type":["string","null"]}},"required":["displayUrl","position","query","title"],"additionalProperties":false}},"communities":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":"string"},"subreddit":{"type":"string"},"url":{"type":"string"}},"required":["keyword","subreddit","url"],"additionalProperties":false}},"findings":{"type":"array","items":{"type":"object","properties":{"summary":{"type":"string"},"title":{"type":"string"}},"required":["summary","title"],"additionalProperties":false}},"generatedAt":{"type":"string"},"limitations":{"type":"array","items":{"type":"string"}},"score":{"type":"object","properties":{"label":{"type":"string"},"summary":{"type":"string"},"value":{"type":["integer","null"]}},"required":["label","summary","value"],"additionalProperties":false},"searches":{"type":"array","items":{"type":"object","properties":{"query":{"type":"string"},"redditPosition":{"type":["integer","null"]},"redditTitle":{"type":["string","null"]},"redditUrl":{"type":["string","null"]},"yourPosition":{"type":["integer","null"]}},"required":["query","redditPosition","redditTitle","redditUrl","yourPosition"],"additionalProperties":false}}},"required":["alternatives","communities","findings","generatedAt","limitations","score","searches"],"additionalProperties":false}},"required":["steps","summary"],"additionalProperties":false},"stage":{"type":"string","enum":["needs_website","building_report","report_failed","needs_trial","active","lapsed"]}},"required":["checkAfterSeconds","links","message","plan","product","report","stage"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_human_actor_required.","content":{"application/json":{"examples":{"agentic_human_actor_required":{"summary":"agentic_human_actor_required","value":{"error":{"code":"agentic_human_actor_required","message":"This agentic capability requires a human-authenticated Rankhog user."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_not_found.","content":{"application/json":{"examples":{"agentic_not_found":{"summary":"agentic_not_found","value":{"error":{"code":"agentic_not_found","message":"Website not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/get-workspace-setup-status":{"post":{"description":"Inspect product browser readiness and setup blockers without exposing device credentials or raw browser control. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_workspace_setup_status","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Desktop setup status","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160}},"required":["organizationId","websiteId","managedRedditAccountId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"ready":false,"reason":"desktop_offline","reasonMessage":"Open Rankhog Desktop.","canVerify":false},"schema":{"type":"object","properties":{"ready":{"type":"boolean"},"reason":{"type":"string"},"reasonMessage":{"type":"string"},"canVerify":{"type":"boolean"}},"required":["ready","reason","reasonMessage","canVerify"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/get-product-answers":{"post":{"description":"Read the existing product's positioning, audience, and competitors. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_product_answers","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get product answers","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160}},"required":["organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"answers":[],"competitors":[]},"schema":{"type":"object","properties":{"answers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"question":{"type":"string"},"answerText":{"type":["string","null"]}},"required":["key","question","answerText"]}},"competitors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domain":{"type":"string"},"reason":{"type":"string"}},"required":["name","domain"]}}},"required":["answers","competitors"]}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/update-product-answers":{"post":{"description":"Update existing product answers and rebuild its product context. Does not create or onboard products. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"update_product_answers","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","product:write"]},{"sessionBearer":[]}],"summary":"Update product answers","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","idempotencyKey":"growth-request-1","update":{}},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"update":{"type":"object","properties":{"answers":{"type":"object","properties":{"icp.alternatives":{"type":"string","maxLength":2000},"icp.buyingTrigger":{"type":"string","maxLength":2000},"icp.pain":{"type":"string","maxLength":2000},"icp.primary":{"type":"string","maxLength":2000},"product.category":{"type":"string","maxLength":2000},"product.description":{"type":"string","maxLength":2000},"product.differentiators":{"type":"string","maxLength":2000},"product.proof":{"type":"string","maxLength":2000}},"additionalProperties":false},"competitors":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string","minLength":1,"maxLength":255},"name":{"type":"string","minLength":1,"maxLength":120},"reason":{"type":"string","maxLength":300}},"required":["domain","name"],"additionalProperties":false},"maxItems":20}},"additionalProperties":false}},"required":["organizationId","websiteId","idempotencyKey","update"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/get-product-settings":{"post":{"description":"Read the product's market, posting language, and copilot/autopilot mode. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_product_settings","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get product settings","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160}},"required":["organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"automationMode":"copilot","market":{"countryCode":"US","languageCode":"en"},"determined":false},"schema":{"type":"object","properties":{"automationMode":{"type":"string","enum":["copilot","autopilot"]},"market":{"type":"object","properties":{"countryCode":{"type":"string"},"languageCode":{"type":"string"}},"required":["countryCode","languageCode"]},"determined":{"type":"boolean"}},"required":["automationMode","market","determined"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/update-product-market":{"post":{"description":"Set the country and language used by discovery and drafting. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"update_product_market","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","product:write"]},{"sessionBearer":[]}],"summary":"Update the product's market","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","idempotencyKey":"growth-request-1","countryCode":"US","languageCode":"en"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"countryCode":{"type":"string","minLength":2,"maxLength":2},"languageCode":{"type":"string","minLength":2,"maxLength":2}},"required":["organizationId","websiteId","idempotencyKey","countryCode","languageCode"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/set-product-automation-mode":{"post":{"description":"Switch a product to copilot, where a person approves every send. Agents can't turn autopilot on: only a person can, from the product's settings in Rankhog. Founder, 2026-11-01. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"set_product_automation_mode","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","product:write"]},{"sessionBearer":[]}],"summary":"Set copilot or autopilot","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","idempotencyKey":"growth-request-1","mode":"copilot"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"mode":{"type":"string","enum":["copilot","autopilot"]}},"required":["organizationId","websiteId","idempotencyKey","mode"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/list-reddit-accounts":{"post":{"description":"List accounts granted to this product and whether Rankhog runs the requested action type from each now. A blocked account carries blockedReason and blockedLabel: still warming up, too new or too little karma for product posts, stats not read yet, Rankhog Desktop not signed in to it, paused, or not granted. heldBySafetyBar true means the account is able to post and Rankhog holds it by default to protect it: the answer gives its age and karma next to the bar (safetyBar), and the person may accept the risk (acceptAccountRisk on a send). blockedReasonIfRiskAccepted says what would still stop it then; null means it sends. Never report a held account as unable to post. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"list_reddit_accounts","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"List Reddit accounts","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","actionType":"comment"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"actionType":{"type":"string","enum":["post","comment","reply","upvote","join_subreddit"],"default":"comment"}},"required":["organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"accounts":[{"id":"ra_demo","redditUsername":"quill_mark","executable":false,"blockedReason":"karma_too_low","blockedLabel":"Needs more karma","heldBySafetyBar":true,"blockedReasonIfRiskAccepted":null,"accountAgeDays":12,"totalKarma":41,"commentKarma":9}],"safetyBar":{"minAccountAgeDays":30,"minCommentKarma":150,"minTotalKarma":300,"removalFreeDays":14}},"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"redditUsername":{"type":["string","null"]},"executable":{"type":"boolean"},"blockedReason":{"type":["string","null"],"enum":["not_granted","account_inactive","health_blocked","warming_up","stats_unknown","account_too_young","karma_too_low","comment_karma_too_low","recent_removal","browser_not_ready",null]},"blockedLabel":{"type":["string","null"]},"heldBySafetyBar":{"type":"boolean"},"blockedReasonIfRiskAccepted":{"type":["string","null"],"enum":["account_inactive","health_blocked","browser_not_ready",null]},"accountAgeDays":{"type":["number","null"]},"totalKarma":{"type":["number","null"]},"commentKarma":{"type":["number","null"]}},"required":["id","redditUsername","executable","blockedReason","blockedLabel","heldBySafetyBar","blockedReasonIfRiskAccepted","accountAgeDays","totalKarma","commentKarma"],"additionalProperties":false}},"safetyBar":{"type":"object","properties":{"minAccountAgeDays":{"type":"number"},"minCommentKarma":{"type":"number"},"minTotalKarma":{"type":"number"},"removalFreeDays":{"type":"number"}},"required":["minAccountAgeDays","minCommentKarma","minTotalKarma","removalFreeDays"],"additionalProperties":false}},"required":["accounts","safetyBar"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/update-discovery-direction":{"post":{"description":"Update Discovery direction without restarting the session. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"update_discovery_direction","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","strategy:write"]},{"sessionBearer":[]}],"summary":"Steer Discovery","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","idempotencyKey":"growth-request-1","direction":"Find relevant comparison threads"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"direction":{"type":["string","null"],"maxLength":2000}},"required":["organizationId","websiteId","idempotencyKey","direction"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/get-discovery-scan":{"post":{"description":"Read saved Discovery searches, observed result positions and resulting opportunities. Historical scans may contain only partial evidence. Positions are provider placement, not independently verified Google rankings. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_discovery_scan","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get a Discovery scan","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","scanId":"scan_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"scanId":{"type":"string","minLength":1,"maxLength":100}},"required":["organizationId","websiteId","scanId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"scan":{"id":"scan_demo","outcome":"empty","trigger":"scheduled","scheduledFor":"2026-09-16T13:00:00Z","startedAt":null,"finishedAt":null},"searches":[],"candidates":[],"opportunities":[]},"schema":{"type":"object","properties":{"scan":{"type":"object","properties":{"id":{"type":"string"},"outcome":{"type":["string","null"]},"trigger":{"type":"string"},"scheduledFor":{"type":"string"},"startedAt":{"type":["string","null"]},"finishedAt":{"type":["string","null"]}},"required":["id","outcome","trigger","scheduledFor","startedAt","finishedAt"],"additionalProperties":false},"searches":{"type":"array","items":{"type":"object","properties":{"keyword":{"type":"string"},"evidence":{"type":["object","null"],"properties":{"provider":{"type":"string","enum":["firecrawl"]},"mode":{"type":"string","enum":["web","reddit_restricted"]},"query":{"type":"string"},"countryCode":{"type":"string"},"languageCode":{"type":"string"},"capturedAt":{"type":"string"},"position":{"type":["number","null"]}},"required":["provider","mode","query","countryCode","languageCode","capturedAt","position"]},"results":{"type":["array","null"],"items":{"type":"object","properties":{"description":{"type":["string","null"]},"displayUrl":{"type":["string","null"]},"isCustomer":{"type":"boolean"},"isReddit":{"type":"boolean"},"position":{"type":"integer","exclusiveMinimum":0},"title":{"type":["string","null"]},"url":{"type":["string","null"]}},"required":["displayUrl","isCustomer","isReddit","position","title","url"]},"maxItems":20},"partial":{"type":"boolean"},"analyzed":{"type":"number"},"skippedSeen":{"type":"number"},"complete":{"type":"boolean"}},"required":["keyword","evidence","results","partial","analyzed","skippedSeen","complete"]},"maxItems":12},"candidates":{"type":"array","items":{"type":"object","properties":{"sourceUrl":{"type":"string"},"title":{"type":["string","null"]},"query":{"type":["string","null"]},"position":{"type":["number","null"]},"selected":{"type":"boolean"}},"required":["sourceUrl","title","query","position","selected"]}},"opportunities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"required":["id","kind","status","title"]}}},"required":["scan","searches","candidates","opportunities"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found, agentic_discovery_scan_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}},"agentic_discovery_scan_not_found":{"summary":"agentic_discovery_scan_not_found","value":{"error":{"code":"agentic_discovery_scan_not_found","message":"Discovery scan not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/list-discovery-scans":{"post":{"description":"Inspect recent Discovery scan outcomes, including when product billing is inactive. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"list_discovery_scans","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"List Discovery scans","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160}},"required":["organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"items":[]},"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"outcome":{"type":["string","null"]},"trigger":{"type":"string"},"scheduledFor":{"type":"string"},"startedAt":{"type":["string","null"]},"finishedAt":{"type":["string","null"]}},"required":["id","outcome","trigger","scheduledFor","startedAt","finishedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/recover-strategy-setup":{"post":{"description":"Retry failed strategy setup subject to the existing recovery cooldown and credit limits. Does not bypass the cooldown. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"recover_strategy_setup","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","strategy:write"]},{"sessionBearer":[]}],"summary":"Restart strategy setup","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","idempotencyKey":"growth-request-1"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["organizationId","websiteId","idempotencyKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/begin-opportunity-draft-edit":{"post":{"description":"Pause pending automatic work before editing the opportunity draft. Read get_opportunity for the current revision. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"begin_opportunity_draft_edit","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Start editing a draft","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","opportunityId":"opp_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"opportunityId":{"type":"string","minLength":1,"maxLength":160}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey","opportunityId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/refresh-opportunity-source":{"post":{"description":"Refresh the exact opportunity post and parent comment availability and metrics. Deduplicated and rate limited; never submits a Reddit action. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"refresh_opportunity_source","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Recheck a card's Reddit post","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","opportunityId":"opp_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"opportunityId":{"type":"string","minLength":1},"manual":{"type":"boolean"}},"required":["organizationId","websiteId","managedRedditAccountId","opportunityId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/find-another-opportunity-post":{"post":{"description":"Replace an unavailable opportunity source and prepare a new draft for review. Preserves old draft history and refuses submitted or uncertain actions. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"find_another_opportunity_post","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Find another post for a card","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","opportunityId":"opp_demo","expectedRevision":1,"targetUrl":"https://www.reddit.com/r/reactjs/comments/demo/"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"opportunityId":{"type":"string","minLength":1,"maxLength":160},"expectedRevision":{"type":"integer","minimum":0},"targetUrl":{"type":"string","format":"uri"}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey","opportunityId","expectedRevision","targetUrl"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null,"replacementOpportunityId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]},"replacementOpportunityId":{"type":["string","null"]}},"required":["status","jobId","replacementOpportunityId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/retry-opportunity-preparation":{"post":{"description":"Retry failed opportunity preparation through its existing guarded recovery path. On a draft whose current audit found concerns, this is Redraft with fixes: the drafting chain writes a new version from the audit's feedback and audits it. Fixing Rankhog's own draft is free; redrafting a team-written draft costs a draft regeneration. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"retry_opportunity_preparation","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Retry preparing a card","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","opportunityId":"opp_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"opportunityId":{"type":"string","minLength":1,"maxLength":160}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey","opportunityId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/retry-opportunity-execution":{"post":{"description":"Retry an eligible failed Reddit execution. Uncertain submissions still require verification before any resend. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"retry_opportunity_execution","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write","reddit:write:dangerous"]},{"sessionBearer":[]}],"summary":"Retry a failed send","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","opportunityId":"opp_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"opportunityId":{"type":"string","minLength":1,"maxLength":160}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey","opportunityId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/step-in-opportunity":{"post":{"description":"Stop an opportunity's pending autopilot transition so it can be reviewed. Cannot undo an already submitted Reddit action. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"step_in_opportunity","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Take over a card","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","opportunityId":"opp_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"opportunityId":{"type":"string","minLength":1,"maxLength":160}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey","opportunityId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/set-opportunity-executor":{"post":{"description":"Select a granted eligible Reddit account without sending or rewriting the opportunity draft. An account under Rankhog's safety bar is refused here with its numbers; to send from it once the person accepts the risk, name it on confirm_opportunity_action with acceptAccountRisk: true. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"set_opportunity_executor","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Choose the account for a card","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","opportunityId":"opp_demo","executorRedditAccountId":"ra_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"opportunityId":{"type":"string","minLength":1,"maxLength":160},"executorRedditAccountId":{"type":"string","minLength":1}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey","opportunityId","executorRedditAccountId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/set-opportunity-target-subreddit":{"post":{"description":"Move a post you started yourself to another community, until its first confirm. Works only on a post started from New or start_conversation (a user-lane reddit_post) that is not closed, has no confirmed draft and no queued or running send; edit the post first to take a confirmed one back. The draft text and revision stay as they are; the submit address is built from the new community at the next confirm. The same community again changes nothing. Never sends or rewrites the draft; an audit verdict from the old community is cleared, so run audit_opportunity_draft for the new one. Refused while a draft is being written. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"set_opportunity_target_subreddit","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Choose the subreddit for a post","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","opportunityId":"opp_demo","subreddit":"SaaS"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"opportunityId":{"type":"string","minLength":1,"maxLength":160},"subreddit":{"type":"string","minLength":1,"maxLength":60}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey","opportunityId","subreddit"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"changed":true,"opportunityId":"opp_demo","plannedRedditActionId":"act_demo","subreddit":"saas","title":"Post in r/saas"},"schema":{"type":"object","properties":{"changed":{"type":"boolean"},"opportunityId":{"type":"string"},"plannedRedditActionId":{"type":"string"},"subreddit":{"type":"string"},"title":{"type":"string"}},"required":["changed","opportunityId","plannedRedditActionId","subreddit","title"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input, agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Name the community like r/SaaS."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_post_locked, agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_post_locked":{"summary":"agentic_post_locked","value":{"error":{"code":"agentic_post_locked","message":"This post is confirmed. Edit it to take it back, then change the community."}}},"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/get-draft-profile":{"post":{"description":"Read the existing writing profile, the chosen Reddit humanizer level, the three built-in levels and the default prompts. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_draft_profile","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get the drafting profile","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160}},"required":["organizationId","websiteId","managedRedditAccountId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"id":null,"draftPromptOverride":"","humanizerPreset":"informal","humanizerPresets":[],"humanizerPromptOverride":"","reviewPromptOverride":"","toneGuide":"","examplesJson":null,"defaults":{"draftPrompt":"","humanizerPrompt":"","reviewPrompt":""}},"schema":{"type":"object","properties":{"id":{"type":["string","null"]},"draftPromptOverride":{"type":"string"},"humanizerPreset":{"type":"string","enum":["reddit_maxxing","informal","professional"]},"humanizerPresets":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"key":{"type":"string","enum":["reddit_maxxing","informal","professional"]},"label":{"type":"string"},"prompt":{"type":"string"}},"required":["description","key","label","prompt"],"additionalProperties":false}},"humanizerPromptOverride":{"type":"string"},"reviewPromptOverride":{"type":"string"},"toneGuide":{"type":"string"},"examplesJson":{},"defaults":{"type":"object","properties":{"draftPrompt":{"type":"string"},"humanizerPrompt":{"type":"string"},"reviewPrompt":{"type":"string"}},"required":["draftPrompt","humanizerPrompt","reviewPrompt"]}},"required":["id","draftPromptOverride","humanizerPreset","humanizerPresets","humanizerPromptOverride","reviewPromptOverride","toneGuide","defaults"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/update-draft-profile":{"post":{"description":"Update writing settings. humanizerPreset picks a built-in Reddit humanizer level (reddit_maxxing, informal, professional; null returns to informal) and a humanizerPromptOverride wins over it. Omitted fields retain their current values. Changing the review prompt additionally requires growth:safety:write. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"update_draft_profile","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Update the drafting profile","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","toneGuide":"Clear and practical"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"draftPromptOverride":{"type":["string","null"],"maxLength":12000},"humanizerPreset":{"type":["string","null"],"enum":["reddit_maxxing","informal","professional",null]},"humanizerPromptOverride":{"type":["string","null"],"maxLength":12000},"reviewPromptOverride":{"type":["string","null"],"maxLength":12000},"examplesJson":{},"toneGuide":{"type":["string","null"],"maxLength":4000}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/find-warmup-comment-now":{"post":{"description":"Prepare a relevant warm-up comment now within the existing daily budget. Reuses pending work and preserves retry limits, account pacing and autopilot safeguards; preparing does not mean submitted. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"find_warmup_comment_now","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","warmup:write","reddit:draft:write","reddit:write:dangerous"]},{"sessionBearer":[]}],"summary":"Find a warm-up comment now","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","warmupPlanId":"warmup_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"warmupPlanId":{"type":"string","minLength":1},"subreddit":{"type":"string","minLength":1,"maxLength":100}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"preparing","opportunityId":"opp_demo","jobId":"job_demo"},"schema":{"type":"object","properties":{"status":{"type":"string","enum":["preparing","already_prepared","daily_budget_exhausted","community_unavailable","window_ended","inactive","retry_wait","work_in_progress"]},"opportunityId":{"type":["string","null"]},"jobId":{"type":["string","null"]},"reason":{"type":"string"},"scheduledStartAt":{"type":"string","format":"date-time"}},"required":["status","opportunityId","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/start-warmup":{"post":{"description":"Start account warm-up using existing credits and safety checks. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"start_warmup","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","warmup:write"]},{"sessionBearer":[]}],"summary":"Start a warm-up","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","durationDays":7},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"durationDays":{"type":"integer","minimum":7,"maximum":60},"targetCardsPerDay":{"type":"integer","minimum":0,"maximum":2,"description":"Threads in the product's own rooms the account may comment in during warm-up, picked from Radar and confirmed by a person: 0 is off, 1 is one a day (default), 2 lets a find scoring 80 or more bring a second one the same day."}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey","durationDays"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/stop-warmup":{"post":{"description":"Stop the account's active warm-up plan through the normal lifecycle. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"stop_warmup","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","warmup:write"]},{"sessionBearer":[]}],"summary":"Stop a warm-up","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/resolve-warmup-safety-incident":{"post":{"description":"Acknowledge the exact current safety incident through the existing guarded resolution path. A stale incident id is rejected. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"resolve_warmup_safety_incident","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","warmup:write","growth:safety:write"]},{"sessionBearer":[]}],"summary":"Resolve a warm-up safety stop","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","expectedIncidentId":"incident_demo","warmupPlanId":"warmup_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"expectedIncidentId":{"type":"string","minLength":1},"warmupPlanId":{"type":"string","minLength":1}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey","expectedIncidentId","warmupPlanId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/resolve-reddit-action-verification":{"post":{"description":"Resolve an uncertain submission. Submitted requires an exact permalink that passes account, content, target, and time checks; never blindly resends. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"resolve_reddit_action_verification","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","growth:safety:write"]},{"sessionBearer":[]}],"summary":"Settle an unconfirmed send","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo","managedRedditAccountId":"mra_demo","idempotencyKey":"growth-request-1","redditActionId":"action_demo","resolution":"not_submitted"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160},"redditAccountId":{"type":"string","minLength":1,"maxLength":160},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"redditActionId":{"type":"string","minLength":1},"resolution":{"type":"string","enum":["submitted","not_submitted"]},"candidatePermalink":{"type":"string","maxLength":2048,"format":"uri"}},"required":["organizationId","websiteId","managedRedditAccountId","idempotencyKey","redditActionId","resolution"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"status":"updated","jobId":null},"schema":{"type":"object","properties":{"status":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["status","jobId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"agentic_paid_plan_required","value":{"error":{"code":"agentic_paid_plan_required","message":"An active paid product is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_idempotency_conflict.","content":{"application/json":{"examples":{"agentic_idempotency_conflict":{"summary":"agentic_idempotency_conflict","value":{"error":{"code":"agentic_idempotency_conflict","message":"This idempotency key was already used with different input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"agentic_write_rate_limited","value":{"error":{"code":"agentic_write_rate_limited","message":"Growth mutations are limited to 120 per actor and organization per hour."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/growth/get-credit-purchase-link":{"post":{"description":"Return a Rankhog billing link for a human to buy credits. Requires a signed-in billing manager at checkout; never charges or changes billing. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_credit_purchase_link","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get the link to buy credits","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_demo","websiteId":"site_demo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160},"websiteId":{"type":"string","minLength":1,"maxLength":160}},"required":["organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"url":"https://rankhog.com/product/site_demo/billing","requiresHumanCheckout":true},"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"requiresHumanCheckout":{"type":"boolean","enum":[true]}},"required":["url","requiresHumanCheckout"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"agentic_invalid_input","value":{"error":{"code":"agentic_invalid_input","message":"Invalid capability input."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"agentic_unauthorized","value":{"error":{"code":"agentic_unauthorized","message":"Authentication is required."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"agentic_missing_scope","value":{"error":{"code":"agentic_missing_scope","message":"The required permission has not been granted."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"agentic_website_not_found","value":{"error":{"code":"agentic_website_not_found","message":"Product not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/opportunities/evidence":{"post":{"description":"Read bounded opportunity product knowledge, source evidence, community rules, or conversation history. Targets are scoped to the opportunity. Uses cached rules and normal thread caching, never forced refresh. Community reads additionally require reddit:rules:read. Continue text with nextOffset; reset offset when following nextBeforeSeq. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_opportunity_evidence","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get opportunity evidence","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_example","websiteId":"site_example","opportunityId":"opp_example","section":"product"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":["string","null"],"minLength":1,"maxLength":160,"default":null,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"opportunityId":{"type":"string","minLength":1,"maxLength":160,"example":"opp_..."},"section":{"type":"string","enum":["product","source","community","conversation"]},"offset":{"type":"integer","minimum":0,"default":0},"beforeSeq":{"type":"integer","exclusiveMinimum":0}},"required":["organizationId","websiteId","opportunityId","section"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"section":"product","status":"available","provenance":"saved product knowledge","text":"Name: SupportLeaf","truncated":false,"nextOffset":null,"nextBeforeSeq":null},"schema":{"type":"object","properties":{"section":{"type":"string","enum":["product","source","community","conversation"]},"status":{"type":"string","enum":["available","unavailable"]},"provenance":{"type":"string"},"text":{"type":"string"},"truncated":{"type":"boolean"},"nextOffset":{"type":["integer","null"]},"nextBeforeSeq":{"type":["integer","null"]}},"required":["section","status","provenance","text","truncated","nextOffset","nextBeforeSeq"]}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found, agentic_opportunity_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}},"agentic_opportunity_not_found":{"summary":"Opportunity not found","value":{"error":{"code":"agentic_opportunity_not_found","message":"Opportunity not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/me":{"post":{"description":"Return the authenticated Rankhog agentic actor, source, organization, and granted scopes. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_agentic_me","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Agentic Actor","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{},"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"apiKey":{"id":"key_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo"},"organizationId":"org_2x9rnkhdemo","scopes":["rankhog:read","reddit:rules:read","reddit:draft:write"],"source":"api_key","user":null},"schema":{"type":"object","properties":{"apiKey":{"type":["object","null"],"properties":{"id":{"type":"string"},"organizationId":{"type":"string"}},"required":["id","organizationId"]},"organizationId":{"type":["string","null"]},"scopes":{"type":"array","items":{"type":"string"}},"source":{"type":"string","enum":["api_key","cli_device","first_party","oauth"]},"user":{"type":["object","null"],"properties":{"email":{"type":["string","null"],"format":"email"},"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["email","id","name"]}},"required":["apiKey","organizationId","scopes","source","user"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/workspaces":{"post":{"description":"List the products this connection can see, with their ids and billing state. A product being set up shows billing.unlocked false. When nothing has a plan yet, next says what to do: setup_product for a new person, get_product_setup for the trial link. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"list_agentic_workspaces","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"List Agentic Workspaces","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"next":null,"workspaces":[{"billing":{"status":"active","subscriptionId":"sub_2x9rnkhdemo","unlocked":true},"managedRedditAccount":{"billingStatus":"active","id":"mra_2x9rnkhdemo","redditUsername":"rankhog_founder","status":"active"},"redditAccount":{"browserConnectionStatus":"connected","healthStatus":"healthy","id":"ra_2x9rnkhdemo","redditUsername":"rankhog_founder","status":"active"},"organization":{"id":"org_2x9rnkhdemo","name":"Example SaaS","role":"owner","slug":"example-saas"},"website":{"displayName":"Example SaaS","id":"site_2x9rnkhdemo","slug":"example-saas","status":"active","websiteUrl":"https://example-saas.com"}}]},"schema":{"type":"object","properties":{"workspaces":{"type":"array","items":{"type":"object","properties":{"billing":{"type":"object","properties":{"status":{"type":["string","null"]},"subscriptionId":{"type":["string","null"]},"unlocked":{"type":"boolean"}},"required":["status","subscriptionId","unlocked"],"additionalProperties":false},"managedRedditAccount":{"type":"object","properties":{"billingStatus":{"type":"string"},"id":{"type":"string"},"redditUsername":{"type":["string","null"]},"status":{"type":"string"}},"required":["billingStatus","id","redditUsername","status"],"additionalProperties":false},"redditAccount":{"type":["object","null"],"properties":{"browserConnectionStatus":{"type":"string"},"healthStatus":{"type":"string"},"id":{"type":"string"},"redditUsername":{"type":["string","null"]},"status":{"type":"string"}},"required":["browserConnectionStatus","healthStatus","id","redditUsername","status"],"additionalProperties":false},"organization":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":["string","null"]},"slug":{"type":"string"}},"required":["id","name","role","slug"],"additionalProperties":false},"website":{"type":"object","properties":{"displayName":{"type":"string"},"id":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string"},"websiteUrl":{"type":["string","null"]}},"required":["displayName","id","slug","status","websiteUrl"],"additionalProperties":false}},"required":["billing","managedRedditAccount","redditAccount","organization","website"],"additionalProperties":false}},"next":{"type":["string","null"]}},"required":["workspaces","next"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/rules":{"post":{"description":"Fetch verified or live Reddit subreddit rules for a paid Rankhog workspace. Cache policy: cached. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_subreddit_rules","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:rules:read"]},{"sessionBearer":[]}],"summary":"Get Subreddit Rules","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","subreddit":"SaaS"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"subreddit":{"type":"string","minLength":1,"maxLength":80,"example":"SaaS"}},"required":["managedRedditAccountId","organizationId","subreddit"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"displayName":"SaaS","isVerified":true,"postingRiskNotes":["Avoid launch-only posts and make the post useful without requiring a click."],"rules":[{"name":"No spam","summary":"Self-promotion must be contextual and useful to the community."},{"name":"Be specific","summary":"Posts should include enough detail for founders to respond."}],"sourceUrls":["https://www.reddit.com/r/SaaS/about/rules"],"stats":{"activeUserCount":412,"capturedAt":"2026-06-17T12:00:00.000Z","createdUtc":1262304000,"publicDescription":"A community for SaaS founders and operators.","subscribers":382000,"title":"Software as a Service"},"status":"ready","subreddit":"SaaS","url":"https://www.reddit.com/r/SaaS/"},"schema":{"type":"object","properties":{"displayName":{"type":"string"},"isVerified":{"type":"boolean"},"postingRiskNotes":{"type":"array","items":{"type":"string"}},"rules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"summary":{"type":"string"}},"required":["name","summary"],"additionalProperties":false}},"sourceUrls":{"type":"array","items":{"type":"string","format":"uri"}},"stats":{"type":["object","null"],"properties":{"activeUserCount":{"type":["integer","null"],"minimum":0},"capturedAt":{"type":["string","null"]},"createdUtc":{"type":["number","null"]},"publicDescription":{"type":["string","null"]},"subscribers":{"type":["integer","null"],"minimum":0},"title":{"type":["string","null"]}},"required":["activeUserCount","capturedAt","createdUtc","publicDescription","subscribers","title"],"additionalProperties":false},"status":{"type":"string","enum":["ready","unavailable"]},"subreddit":{"type":"string"},"url":{"type":["string","null"],"format":"uri"}},"required":["displayName","isVerified","postingRiskNotes","rules","sourceUrls","stats","status","subreddit","url"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","reddit:rules:read"]},"message":"Missing required scope: rankhog:read, reddit:rules:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/activity":{"post":{"description":"Return subreddit activity Rankhog already read, without forcing a new read. Cache policy: cached. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_subreddit_activity","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:activity:read"]},{"sessionBearer":[]}],"summary":"Get Subreddit Activity","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","maxComments":10,"maxPosts":10,"subreddit":"SaaS"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"maxComments":{"type":"integer","minimum":0,"maximum":100,"default":25},"maxPosts":{"type":"integer","minimum":0,"maximum":100,"default":25},"subreddit":{"type":"string","minLength":1,"maxLength":80,"example":"SaaS"}},"required":["managedRedditAccountId","organizationId","subreddit"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"cached":{"capturedAt":"2026-06-17T12:00:00.000Z","comments":[],"fetchUrls":{"comments":null,"posts":"https://www.reddit.com/r/saas.json?limit=100&raw_json=1"},"posts":[{"author":"founder_alt","bodyPreview":"We changed onboarding from a checklist to a guided setup and activation improved.","commentCount":18,"createdAt":"2026-06-17T10:30:00.000Z","createdUtc":1781692200,"fullname":"t3_examplepost","id":"examplepost","kind":"post","parentId":null,"permalink":"https://www.reddit.com/r/SaaS/comments/examplepost/example/","postId":null,"score":42,"subreddit":"SaaS","title":"What actually moved your SaaS activation rate?","url":"https://www.reddit.com/r/SaaS/comments/examplepost/example/","observedAt":"2026-06-17T12:00:00.000Z","observedUrl":"https://www.reddit.com/r/saas.json?limit=100&raw_json=1"}],"source":"reactive_source","mode":"ranked","observation":"partial","observationWindow":{"oldestAt":"2026-06-17T12:00:00.000Z","newestAt":"2026-06-17T12:00:00.000Z"}},"freshness":{"commentOverlapAt":null,"coverageStatus":"healthy","lastSuccessfulScanAt":"2026-06-17T12:00:00.000Z","headIntervalSeconds":600,"postOverlapAt":null,"mode":"ranked","postCoverage":"observed","commentCoverage":"partial"},"subreddit":"SaaS"},"schema":{"type":"object","properties":{"cached":{"type":["object","null"],"properties":{"capturedAt":{"type":"string","format":"date-time"},"comments":{"type":"array","items":{"type":"object","properties":{"author":{"type":["string","null"]},"bodyPreview":{"type":["string","null"]},"commentCount":{"type":["integer","null"],"minimum":0},"createdAt":{"type":["string","null"],"format":"date-time"},"createdUtc":{"type":["number","null"]},"fullname":{"type":["string","null"]},"observedAt":{"type":["string","null"],"format":"date-time"},"observedUrl":{"type":["string","null"],"format":"uri"},"id":{"type":"string"},"kind":{"type":"string","enum":["post","comment"]},"parentId":{"type":["string","null"]},"permalink":{"type":"string","format":"uri"},"postId":{"type":["string","null"]},"score":{"type":["integer","null"]},"subreddit":{"type":"string"},"title":{"type":["string","null"]},"url":{"type":["string","null"],"format":"uri"}},"required":["author","bodyPreview","commentCount","createdAt","createdUtc","fullname","id","kind","parentId","permalink","postId","score","subreddit","title","url"],"additionalProperties":false}},"fetchUrls":{"type":"object","properties":{"comments":{"type":["string","null"],"format":"uri"},"posts":{"type":"string","format":"uri"}},"required":["comments","posts"]},"posts":{"type":"array","items":{"type":"object","properties":{"author":{"type":["string","null"]},"bodyPreview":{"type":["string","null"]},"commentCount":{"type":["integer","null"],"minimum":0},"createdAt":{"type":["string","null"],"format":"date-time"},"createdUtc":{"type":["number","null"]},"fullname":{"type":["string","null"]},"observedAt":{"type":["string","null"],"format":"date-time"},"observedUrl":{"type":["string","null"],"format":"uri"},"id":{"type":"string"},"kind":{"type":"string","enum":["post","comment"]},"parentId":{"type":["string","null"]},"permalink":{"type":"string","format":"uri"},"postId":{"type":["string","null"]},"score":{"type":["integer","null"]},"subreddit":{"type":"string"},"title":{"type":["string","null"]},"url":{"type":["string","null"],"format":"uri"}},"required":["author","bodyPreview","commentCount","createdAt","createdUtc","fullname","id","kind","parentId","permalink","postId","score","subreddit","title","url"],"additionalProperties":false}},"source":{"type":"string","enum":["reactive_source"]},"mode":{"type":"string","enum":["ranked"]},"observation":{"type":"string","enum":["partial"]},"observationWindow":{"type":"object","properties":{"oldestAt":{"type":["string","null"],"format":"date-time"},"newestAt":{"type":["string","null"],"format":"date-time"}},"required":["oldestAt","newestAt"],"additionalProperties":false}},"required":["capturedAt","comments","fetchUrls","posts","source"],"additionalProperties":false},"freshness":{"type":["object","null"],"properties":{"commentOverlapAt":{"type":["string","null"],"format":"date-time"},"coverageStatus":{"type":"string","enum":["healthy","catching_up","capacity_delayed","source_unavailable"]},"lastSuccessfulScanAt":{"type":["string","null"],"format":"date-time"},"headIntervalSeconds":{"type":"integer"},"postOverlapAt":{"type":["string","null"],"format":"date-time"},"mode":{"type":"string","enum":["ranked"]},"postCoverage":{"type":"string","enum":["observed","baseline_pending"]},"commentCoverage":{"type":"string","enum":["partial"]}},"required":["commentOverlapAt","coverageStatus","lastSuccessfulScanAt","headIntervalSeconds","postOverlapAt"],"additionalProperties":false},"subreddit":{"type":"string"}},"required":["cached","freshness","subreddit"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required, agentic_plan_feature_locked.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}},"agentic_plan_feature_locked":{"summary":"Not in this plan","value":{"error":{"code":"agentic_plan_feature_locked","details":{"enabled":false,"key":"discovery","max":null,"organizationId":"org_2x9rnkhdemo","planKey":"appsumo_tier_1","unlockPlanKey":"appsumo_tier_2","used":null,"websiteId":"site_2x9rnkhdemo"},"message":"Discovery is not included in your plan. A person with billing access can upgrade the plan in Rankhog."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied, agentic_human_actor_required.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","reddit:activity:read"]},"message":"Missing required scope: rankhog:read, reddit:activity:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}},"agentic_human_actor_required":{"summary":"Human actor required","value":{"error":{"code":"agentic_human_actor_required","message":"This agentic capability requires a human-authenticated Rankhog user."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_managed_account_inactive.","content":{"application/json":{"examples":{"agentic_managed_account_inactive":{"summary":"Managed account inactive","value":{"error":{"code":"agentic_managed_account_inactive","details":{"managedAccountStatus":"setup_required"},"message":"This managed Reddit account must be active before browser-backed agentic tools can run."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/best-time":{"post":{"description":"Return when a subreddit's top posts of the last 90 days went up: the three best weekday and hour slots in UTC (dow 0 is Sunday), and one sentence in the organization's time zone. A room without enough posts answers status no_data. Advice only: it moves no send time. Cache policy: cached. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_subreddit_best_time","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Subreddit Best Time","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo","subreddit":"SaaS"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"subreddit":{"type":"string","minLength":1,"maxLength":80,"example":"SaaS"}},"required":["organizationId","subreddit"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"advice":"r/saas is busiest Tue 09:00, Wed 10:00 and Thu 11:00 your time (from 120 top posts in 90 days).","bestSlots":[{"dow":2,"hour":14,"posts":9},{"dow":3,"hour":15,"posts":8},{"dow":4,"hour":16,"posts":7}],"reason":null,"sampleSize":120,"status":"ready","subreddit":"saas","timeZone":"America/New_York","windowDays":90},"schema":{"type":"object","properties":{"advice":{"type":["string","null"]},"bestSlots":{"type":"array","items":{"type":"object","properties":{"dow":{"type":"integer","minimum":0,"maximum":6},"hour":{"type":"integer","minimum":0,"maximum":23},"posts":{"type":"integer","minimum":0}},"required":["dow","hour","posts"],"additionalProperties":false}},"reason":{"type":["string","null"]},"sampleSize":{"type":"integer","minimum":0},"status":{"type":"string","enum":["ready","no_data"]},"subreddit":{"type":"string"},"timeZone":{"type":"string"},"windowDays":{"type":"integer"}},"required":["advice","bestSlots","reason","sampleSize","status","subreddit","timeZone","windowDays"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/browser/status":{"post":{"description":"Report whether Rankhog Desktop has a ready Reddit browser session for this managed account. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_reddit_browser_status","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","browser:read"]},{"sessionBearer":[]}],"summary":"Get Reddit Browser Status","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."}},"required":["managedRedditAccountId","organizationId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"activeBrowserSessionId":"bs_2x9rnkhdemo","connectedDeviceId":"dev_2x9rnkhdemo","currentRedditUsername":"rankhog_founder","ready":true,"readyForResearch":true,"readyForWriting":true,"readNodeCount":2,"reason":"ready","redditAccountId":"racct_2x9rnkhdemo","writeAccountCount":1},"schema":{"type":"object","properties":{"activeBrowserSessionId":{"type":["string","null"]},"connectedDeviceId":{"type":["string","null"]},"currentRedditUsername":{"type":["string","null"]},"ready":{"type":"boolean"},"readyForResearch":{"type":"boolean"},"readyForWriting":{"type":"boolean"},"readNodeCount":{"type":"integer","minimum":0},"reason":{"type":"string"},"redditAccountId":{"type":["string","null"]},"writeAccountCount":{"type":"integer","minimum":0}},"required":["activeBrowserSessionId","connectedDeviceId","currentRedditUsername","ready","readyForResearch","readyForWriting","readNodeCount","reason","redditAccountId","writeAccountCount"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","browser:read"]},"message":"Missing required scope: rankhog:read, browser:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/browser/open-reddit-url":{"post":{"description":"Open an allowed Reddit URL in the paired Rankhog Desktop browser. This never exposes raw browser control. Cache policy: live. Idempotency: required. Auth modes: session_bearer.","operationId":"open_reddit_url","security":[{"sessionBearer":[]}],"summary":"Open Reddit URL","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","idempotencyKey":"open-reddit-url-2026-06-17-001","url":"https://www.reddit.com/r/SaaS/comments/examplepost/example/"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"url":{"type":"string","maxLength":2000,"format":"uri","example":"https://www.reddit.com/r/SaaS/comments/example/thread/"}},"required":["managedRedditAccountId","organizationId","idempotencyKey","url"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"browserCommandId":"cmd_2x9rnkhdemo","delivered":true,"status":"queued"},"schema":{"type":"object","properties":{"browserCommandId":{"type":"string"},"delivered":{"type":["boolean","null"]},"status":{"type":"string"}},"required":["browserCommandId","delivered","status"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required, agentic_plan_feature_locked.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}},"agentic_plan_feature_locked":{"summary":"Not in this plan","value":{"error":{"code":"agentic_plan_feature_locked","details":{"enabled":false,"key":"discovery","max":null,"organizationId":"org_2x9rnkhdemo","planKey":"appsumo_tier_1","unlockPlanKey":"appsumo_tier_2","used":null,"websiteId":"site_2x9rnkhdemo"},"message":"Discovery is not included in your plan. A person with billing access can upgrade the plan in Rankhog."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied, agentic_human_actor_required.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","browser:read"]},"message":"Missing required scope: rankhog:read, browser:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}},"agentic_human_actor_required":{"summary":"Human actor required","value":{"error":{"code":"agentic_human_actor_required","message":"This agentic capability requires a human-authenticated Rankhog user."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_managed_account_inactive.","content":{"application/json":{"examples":{"agentic_managed_account_inactive":{"summary":"Managed account inactive","value":{"error":{"code":"agentic_managed_account_inactive","details":{"managedAccountStatus":"setup_required"},"message":"This managed Reddit account must be active before browser-backed agentic tools can run."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The request is syntactically valid but unsafe. Documented codes: agentic_reddit_url_not_allowed.","content":{"application/json":{"examples":{"agentic_reddit_url_not_allowed":{"summary":"URL is not allowed","value":{"error":{"code":"agentic_reddit_url_not_allowed","message":"Agentic browser tools can only open allowed Reddit URLs."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"A dependent Rankhog service is unavailable. Documented codes: agentic_browser_command_failed.","content":{"application/json":{"examples":{"agentic_browser_command_failed":{"summary":"Browser command failed","value":{"error":{"code":"agentic_browser_command_failed","message":"Could not queue Reddit browser navigation."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/strategy":{"post":{"description":"Return the current product-owned Discovery and Radar strategy. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_workspace_strategy","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Workspace Strategy","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."}},"required":["organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"discoveryHealth":{"fingerprint":"example-input-fingerprint","coverage":{"Intercom alternative":"2026-06-17T12:00:00.000Z"},"completedCoverage":{},"emptyDays":[],"review":null},"discoverySearchEvidence":[{"provider":"firecrawl","mode":"reddit_restricted","query":"site:reddit.com Intercom alternative","countryCode":"US","languageCode":"en","capturedAt":"2026-06-17T12:00:00.000Z","position":2}],"keywords":[{"enabled":true,"id":"kw_1","intent":"Compare tools","keyword":"Intercom alternative","priority":1}],"strategy":{"bootstrap":{"error":null,"lastAttemptAt":"2026-06-17T12:00:00.000Z","needsCommunities":false,"readyAt":"2026-06-17T12:00:00.000Z","status":"ready"},"discovery":{"consecutiveEmptyScans":0,"direction":"Find support-tool comparison demand","lastScanAt":"2026-06-17T12:00:00.000Z","lastSuccessAt":"2026-06-17T12:00:00.000Z","lastTechnicalError":null,"nextScanAt":"2026-06-18T07:00:00.000Z","status":"running"},"id":"strategy_1","market":{"countryCode":"US","determined":false,"languageCode":"en"},"radarEnabled":true,"radarSystemDisabledReason":null},"subreddits":[{"enabled":true,"fitReason":"SaaS operators","id":"sub_1","priority":1,"subreddit":"SaaS","verificationStatus":"verified","verifiedAt":"2026-06-17T12:00:00.000Z"}],"timeZone":"Europe/Paris"},"schema":{"type":"object","properties":{"discoveryHealth":{"type":"object","properties":{"fingerprint":{"type":"string","default":""},"coverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"completedCoverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"emptyDays":{"type":"array","items":{"type":"string"},"default":[]},"review":{"type":["object","null"],"properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"summary":{"type":"string"},"suggestions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["add_keyword","add_subreddit","direction"]},"value":{"type":"string"},"reason":{"type":"string"},"sourceUrl":{"type":["string","null"]},"opportunityId":{"type":["string","null"]}},"required":["kind","value","reason","sourceUrl","opportunityId"]},"maxItems":3}},"default":null,"required":["id","createdAt","summary","suggestions"]}},"default":{"fingerprint":"","coverage":{},"completedCoverage":{},"emptyDays":[],"review":null}},"discoverySearchEvidence":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["firecrawl"]},"mode":{"type":"string","enum":["web","reddit_restricted"]},"query":{"type":"string"},"countryCode":{"type":"string"},"languageCode":{"type":"string"},"capturedAt":{"type":"string"},"position":{"type":["number","null"]}},"required":["provider","mode","query","countryCode","languageCode","capturedAt","position"]},"default":[]},"keywords":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"id":{"type":"string"},"intent":{"type":["string","null"]},"keyword":{"type":"string"},"priority":{"type":"integer"}},"required":["enabled","id","intent","keyword","priority"],"additionalProperties":false}},"strategy":{"type":"object","properties":{"bootstrap":{"type":"object","properties":{"error":{},"lastAttemptAt":{"type":["string","null"]},"needsCommunities":{"type":"boolean"},"readyAt":{"type":["string","null"]},"status":{"type":"string","enum":["building","ready","error"]}},"required":["lastAttemptAt","needsCommunities","readyAt","status"],"additionalProperties":false},"market":{"type":"object","properties":{"countryCode":{"type":"string"},"determined":{"type":"boolean"},"languageCode":{"type":"string"}},"required":["countryCode","determined","languageCode"],"additionalProperties":false},"discovery":{"type":"object","properties":{"consecutiveEmptyScans":{"type":"integer","minimum":0},"direction":{"type":["string","null"]},"lastScanAt":{"type":["string","null"]},"lastSuccessAt":{"type":["string","null"]},"lastTechnicalError":{},"nextScanAt":{"type":["string","null"]},"status":{"type":"string","enum":["stopped","running","needs_direction"]}},"required":["consecutiveEmptyScans","direction","lastScanAt","lastSuccessAt","nextScanAt","status"],"additionalProperties":false},"id":{"type":"string"},"radarEnabled":{"type":"boolean"},"radarSystemDisabledReason":{"type":["string","null"],"enum":["pool_contribution",null]}},"required":["bootstrap","market","discovery","id","radarEnabled","radarSystemDisabledReason"],"additionalProperties":false},"subreddits":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"fitReason":{"type":["string","null"]},"id":{"type":"string"},"priority":{"type":"integer"},"subreddit":{"type":"string"},"verificationStatus":{"type":"string","enum":["pending","verified","rejected"]},"verifiedAt":{"type":["string","null"]}},"required":["enabled","fitReason","id","priority","subreddit","verificationStatus","verifiedAt"],"additionalProperties":false}},"timeZone":{"type":"string"}},"required":["keywords","strategy","subreddits","timeZone"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/strategy/radar/coverage":{"post":{"description":"Return which subreddits Rankhog reads for this product, how fresh each one is, and whether reading is healthy. A row with scanSchedule recurring is a subreddit Radar watches for opportunities. A row with scanSchedule on_demand is read only for the product's warm-up accounts and never makes a Radar card. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_radar_coverage","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Radar Coverage","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."}},"required":["organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"capacity":{"delayed":false},"freshnessTier":{"exactMentionTargetSeconds":120,"id":"one_minute","semanticTargetSeconds":300,"sourceTargetSeconds":60},"generatedAt":"2026-06-17T12:00:00.000Z","sources":[],"watchedSubredditLimit":30},"schema":{"type":"object","properties":{"capacity":{"type":"object","properties":{"delayed":{"type":"boolean"}},"required":["delayed"],"additionalProperties":false},"freshnessTier":{"type":"object","properties":{"exactMentionTargetSeconds":{"type":["integer","null"],"exclusiveMinimum":0},"id":{"type":"string","enum":["one_minute","two_minutes","five_minutes","observed","capacity_delayed"]},"semanticTargetSeconds":{"type":["integer","null"],"exclusiveMinimum":0},"sourceTargetSeconds":{"type":"integer","exclusiveMinimum":0}},"required":["exactMentionTargetSeconds","id","semanticTargetSeconds","sourceTargetSeconds"],"additionalProperties":false},"generatedAt":{"type":"string","format":"date-time"},"sources":{"type":"array","items":{"type":"object","properties":{"commentCoverage":{"type":"object","properties":{"mode":{"type":"string","enum":["head_only","paged","partial"]},"lastOverlapAt":{"type":["string","null"],"format":"date-time"},"status":{"type":"string","enum":["recovering","gap","covered","partial"]},"completedAt":{"type":["string","null"],"format":"date-time"},"gap":{"type":["object","null"],"properties":{"detectedAt":{"type":"string"},"from":{"type":"object","properties":{"fullname":{"type":"string"},"createdUtc":{"type":"number"}},"required":["fullname","createdUtc"]},"to":{"type":"object","properties":{"fullname":{"type":"string"},"createdUtc":{"type":"number"}},"required":["fullname","createdUtc"]},"reason":{"type":"string","enum":["cursor_repeated","cursor_invalid","listing_exhausted","transport_outdated","not_recovered"]}},"required":["detectedAt","from","to","reason"]}},"required":["mode","lastOverlapAt"],"additionalProperties":false},"postCoverage":{"type":"object","properties":{"status":{"type":"string","enum":["baseline_pending","recovering","gap","covered","observed"]},"completedAt":{"type":["string","null"],"format":"date-time"},"gap":{"type":["object","null"],"properties":{"detectedAt":{"type":"string"},"from":{"type":"object","properties":{"fullname":{"type":"string"},"createdUtc":{"type":"number"}},"required":["fullname","createdUtc"]},"to":{"type":"object","properties":{"fullname":{"type":"string"},"createdUtc":{"type":"number"}},"required":["fullname","createdUtc"]},"reason":{"type":"string","enum":["cursor_repeated","cursor_invalid","listing_exhausted","transport_outdated","not_recovered"]}},"required":["detectedAt","from","to","reason"]}},"required":["status","completedAt","gap"],"additionalProperties":false},"commentOverlapAt":{"type":["string","null"],"format":"date-time"},"coverageStatus":{"type":"string","enum":["healthy","catching_up","capacity_delayed","source_unavailable"]},"lastOverlapAt":{"type":["string","null"],"format":"date-time"},"lastSuccessfulScanAt":{"type":["string","null"],"format":"date-time"},"nextScanAt":{"type":["string","null"],"format":"date-time"},"scanSchedule":{"type":"string","enum":["recurring","on_demand"]},"headIntervalSeconds":{"type":"integer"},"postOverlapAt":{"type":["string","null"],"format":"date-time"},"subreddit":{"type":"string"},"mode":{"type":"string","enum":["ranked"]},"ranked":{"type":"object","properties":{"observedAt":{"type":["string","null"],"format":"date-time"},"headObservedAt":{"type":["string","null"],"format":"date-time"},"nextAuditAt":{"type":["string","null"],"format":"date-time"},"activityTier":{"type":"string","enum":["quiet","normal","busy"]},"observedPostsPerHour":{"type":["number","null"],"minimum":0},"currentPass":{"type":["object","null"],"properties":{"purpose":{"type":"string","enum":["head","audit","warmup"]},"startedAt":{"type":"string","format":"date-time"},"pages":{"type":"integer","minimum":0,"maximum":10},"pageBudget":{"type":"integer","minimum":1,"maximum":10}},"required":["purpose","startedAt","pages","pageBudget"],"additionalProperties":false},"lastPass":{"type":["object","null"],"properties":{"purpose":{"type":"string","enum":["head","audit","warmup"]},"finishedAt":{"type":"string","format":"date-time"},"pages":{"type":"integer","minimum":0,"maximum":10},"endReason":{"type":"string","enum":["exhausted","fulfilled","page_budget","deadline","repeated_cursor","invalid_cursor","failed","cancelled"]}},"required":["purpose","finishedAt","pages","endReason"],"additionalProperties":false}},"required":["observedAt","headObservedAt","nextAuditAt","activityTier","observedPostsPerHour","currentPass","lastPass"],"additionalProperties":false}},"required":["commentCoverage","postCoverage","commentOverlapAt","coverageStatus","lastOverlapAt","lastSuccessfulScanAt","nextScanAt","scanSchedule","headIntervalSeconds","postOverlapAt","subreddit"],"additionalProperties":false}},"watchedSubredditLimit":{"type":"integer","exclusiveMinimum":0}},"required":["capacity","freshnessTier","generatedAt","sources","watchedSubredditLimit"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/strategy/radar/activity":{"post":{"description":"Return measured Radar screening work and durable opportunity results for this product, including measurement coverage and freshness. Cache policy: cached. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_radar_activity","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Radar Activity","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."}},"required":["organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"days":[{"day":"2026-06-04","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-05","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-06","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-07","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-08","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-09","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-10","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-11","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-12","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-13","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-14","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-15","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-16","screened":null,"found":0,"completed":0,"dismissed":0},{"day":"2026-06-17","screened":100,"found":2,"completed":1,"dismissed":0}],"screenedCount":100,"postsCount":100,"commentsCount":100,"foundCount":2,"completedCount":1,"dismissedCount":0,"handledCount":1,"windowDays":14,"timeZone":"America/New_York","generatedAt":"2026-06-17T12:00:00.000Z","nextRefreshAt":"2026-06-18T04:00:00.000Z","screeningStartedAt":"2026-06-17T04:00:00.000Z","historyCompleteSince":"2026-06-17T04:00:00.000Z","historyPartial":true},"schema":{"type":"object","properties":{"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"screened":{"type":["integer","null"],"minimum":0},"found":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"dismissed":{"type":"integer","minimum":0}},"required":["day","screened","found","completed","dismissed"],"additionalProperties":false}},"screenedCount":{"type":"integer","minimum":0},"postsCount":{"type":"integer","minimum":0},"commentsCount":{"type":"integer","minimum":0},"foundCount":{"type":"integer","minimum":0},"completedCount":{"type":"integer","minimum":0},"dismissedCount":{"type":"integer","minimum":0},"handledCount":{"type":"integer","minimum":0},"windowDays":{"type":"integer","exclusiveMinimum":0},"timeZone":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"nextRefreshAt":{"type":"string","format":"date-time"},"screeningStartedAt":{"type":"string","format":"date-time"},"historyCompleteSince":{"type":"string","format":"date-time"},"historyPartial":{"type":"boolean"}},"required":["days","screenedCount","postsCount","commentsCount","foundCount","completedCount","dismissedCount","handledCount","windowDays","timeZone","generatedAt","nextRefreshAt","screeningStartedAt","historyCompleteSince","historyPartial"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/strategy/radar/status":{"post":{"description":"Report whether Radar is running for this workspace, what is blocking it, and what it has checked, surfaced and triaged recently. Cache policy: cached. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_radar_status","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Radar Status","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."}},"required":["organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"activity":{"checkedCount":1284,"days":[{"checked":96,"day":"2026-08-31","surfaced":1},{"checked":88,"day":"2026-09-01","surfaced":0},{"checked":103,"day":"2026-09-02","surfaced":2}],"surfacedCount":11,"triagedCount":8,"waitingCount":3,"windowDays":14},"generatedAt":"2026-06-17T12:00:00.000Z","issues":[{"code":"results_delayed","message":"Some Radar results are taking longer to appear. Rankhog is retrying them automatically.","severity":"warning"}],"state":"live"},"schema":{"type":"object","properties":{"activity":{"type":"object","properties":{"checkedCount":{"type":"integer","minimum":0},"days":{"type":"array","items":{"type":"object","properties":{"checked":{"type":"integer","minimum":0},"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"surfaced":{"type":"integer","minimum":0}},"required":["checked","day","surfaced"],"additionalProperties":false}},"surfacedCount":{"type":"integer","minimum":0},"triagedCount":{"type":"integer","minimum":0},"waitingCount":{"type":"integer","minimum":0},"windowDays":{"type":"integer","exclusiveMinimum":0}},"required":["checkedCount","days","surfacedCount","triagedCount","waitingCount","windowDays"],"additionalProperties":false},"generatedAt":{"type":"string","format":"date-time"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["setup_incomplete","setup_in_progress","setup_failed","billing_inactive","pool_contribution_switched_off","reddit_account_missing","reddit_account_paused","reddit_account_archived","reddit_account_inactive","no_watched_community","community_not_verified","collection_delayed","results_delayed","community_unavailable"]},"message":{"type":"string"},"severity":{"type":"string","enum":["blocking","warning"]}},"required":["code","message","severity"],"additionalProperties":false}},"state":{"type":"string","enum":["blocked","live","paused"]}},"required":["activity","generatedAt","issues","state"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/strategy/discovery/start":{"post":{"description":"Start Discovery with an optional product direction. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"start_discovery","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","strategy:write"]},{"sessionBearer":[]}],"summary":"Start Discovery","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","direction":"Find comparison demand","idempotencyKey":"start-discovery-001"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"direction":{"type":["string","null"],"maxLength":2000}},"required":["organizationId","websiteId","idempotencyKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"jobId":"job_2x9rnkhdemo","strategy":{"keywords":[{"enabled":true,"id":"kw_1","intent":"Compare tools","keyword":"Intercom alternative","priority":1}],"strategy":{"bootstrap":{"error":null,"lastAttemptAt":"2026-06-17T12:00:00.000Z","needsCommunities":false,"readyAt":"2026-06-17T12:00:00.000Z","status":"ready"},"discovery":{"consecutiveEmptyScans":0,"direction":"Find support-tool comparison demand","lastScanAt":"2026-06-17T12:00:00.000Z","lastSuccessAt":"2026-06-17T12:00:00.000Z","lastTechnicalError":null,"nextScanAt":"2026-06-18T07:00:00.000Z","status":"running"},"id":"strategy_1","market":{"countryCode":"US","determined":false,"languageCode":"en"},"radarEnabled":true,"radarSystemDisabledReason":null},"subreddits":[{"enabled":true,"fitReason":"SaaS operators","id":"sub_1","priority":1,"subreddit":"SaaS","verificationStatus":"verified","verifiedAt":"2026-06-17T12:00:00.000Z"}],"timeZone":"Europe/Paris"}},"schema":{"type":"object","properties":{"jobId":{"type":["string","null"]},"strategy":{"type":"object","properties":{"discoveryHealth":{"type":"object","properties":{"fingerprint":{"type":"string","default":""},"coverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"completedCoverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"emptyDays":{"type":"array","items":{"type":"string"},"default":[]},"review":{"type":["object","null"],"properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"summary":{"type":"string"},"suggestions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["add_keyword","add_subreddit","direction"]},"value":{"type":"string"},"reason":{"type":"string"},"sourceUrl":{"type":["string","null"]},"opportunityId":{"type":["string","null"]}},"required":["kind","value","reason","sourceUrl","opportunityId"]},"maxItems":3}},"default":null,"required":["id","createdAt","summary","suggestions"]}},"default":{"fingerprint":"","coverage":{},"completedCoverage":{},"emptyDays":[],"review":null}},"discoverySearchEvidence":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["firecrawl"]},"mode":{"type":"string","enum":["web","reddit_restricted"]},"query":{"type":"string"},"countryCode":{"type":"string"},"languageCode":{"type":"string"},"capturedAt":{"type":"string"},"position":{"type":["number","null"]}},"required":["provider","mode","query","countryCode","languageCode","capturedAt","position"]},"default":[]},"keywords":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"id":{"type":"string"},"intent":{"type":["string","null"]},"keyword":{"type":"string"},"priority":{"type":"integer"}},"required":["enabled","id","intent","keyword","priority"],"additionalProperties":false}},"strategy":{"type":"object","properties":{"bootstrap":{"type":"object","properties":{"error":{},"lastAttemptAt":{"type":["string","null"]},"needsCommunities":{"type":"boolean"},"readyAt":{"type":["string","null"]},"status":{"type":"string","enum":["building","ready","error"]}},"required":["lastAttemptAt","needsCommunities","readyAt","status"],"additionalProperties":false},"market":{"type":"object","properties":{"countryCode":{"type":"string"},"determined":{"type":"boolean"},"languageCode":{"type":"string"}},"required":["countryCode","determined","languageCode"],"additionalProperties":false},"discovery":{"type":"object","properties":{"consecutiveEmptyScans":{"type":"integer","minimum":0},"direction":{"type":["string","null"]},"lastScanAt":{"type":["string","null"]},"lastSuccessAt":{"type":["string","null"]},"lastTechnicalError":{},"nextScanAt":{"type":["string","null"]},"status":{"type":"string","enum":["stopped","running","needs_direction"]}},"required":["consecutiveEmptyScans","direction","lastScanAt","lastSuccessAt","nextScanAt","status"],"additionalProperties":false},"id":{"type":"string"},"radarEnabled":{"type":"boolean"},"radarSystemDisabledReason":{"type":["string","null"],"enum":["pool_contribution",null]}},"required":["bootstrap","market","discovery","id","radarEnabled","radarSystemDisabledReason"],"additionalProperties":false},"subreddits":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"fitReason":{"type":["string","null"]},"id":{"type":"string"},"priority":{"type":"integer"},"subreddit":{"type":"string"},"verificationStatus":{"type":"string","enum":["pending","verified","rejected"]},"verifiedAt":{"type":["string","null"]}},"required":["enabled","fitReason","id","priority","subreddit","verificationStatus","verifiedAt"],"additionalProperties":false}},"timeZone":{"type":"string"}},"required":["keywords","strategy","subreddits","timeZone"],"additionalProperties":false}},"required":["jobId","strategy"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","strategy:write"]},"message":"Missing required scope: rankhog:read, strategy:write."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"Write rate limit reached","value":{"error":{"code":"agentic_write_rate_limited","details":{"limit":10,"windowSeconds":3600},"message":"Agentic Reddit writes are rate-limited for this workspace."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/strategy/discovery/stop":{"post":{"description":"Stop Discovery without changing Radar. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"stop_discovery","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","strategy:write"]},{"sessionBearer":[]}],"summary":"Stop Discovery","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","idempotencyKey":"stop-discovery-001"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"}},"required":["organizationId","websiteId","idempotencyKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"jobId":null,"strategy":{"keywords":[{"enabled":true,"id":"kw_1","intent":"Compare tools","keyword":"Intercom alternative","priority":1}],"strategy":{"bootstrap":{"error":null,"lastAttemptAt":"2026-06-17T12:00:00.000Z","needsCommunities":false,"readyAt":"2026-06-17T12:00:00.000Z","status":"ready"},"discovery":{"consecutiveEmptyScans":0,"direction":"Find support-tool comparison demand","lastScanAt":"2026-06-17T12:00:00.000Z","lastSuccessAt":"2026-06-17T12:00:00.000Z","lastTechnicalError":null,"nextScanAt":"2026-06-18T07:00:00.000Z","status":"running"},"id":"strategy_1","market":{"countryCode":"US","determined":false,"languageCode":"en"},"radarEnabled":true,"radarSystemDisabledReason":null},"subreddits":[{"enabled":true,"fitReason":"SaaS operators","id":"sub_1","priority":1,"subreddit":"SaaS","verificationStatus":"verified","verifiedAt":"2026-06-17T12:00:00.000Z"}],"timeZone":"Europe/Paris"}},"schema":{"type":"object","properties":{"jobId":{"type":["string","null"]},"strategy":{"type":"object","properties":{"discoveryHealth":{"type":"object","properties":{"fingerprint":{"type":"string","default":""},"coverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"completedCoverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"emptyDays":{"type":"array","items":{"type":"string"},"default":[]},"review":{"type":["object","null"],"properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"summary":{"type":"string"},"suggestions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["add_keyword","add_subreddit","direction"]},"value":{"type":"string"},"reason":{"type":"string"},"sourceUrl":{"type":["string","null"]},"opportunityId":{"type":["string","null"]}},"required":["kind","value","reason","sourceUrl","opportunityId"]},"maxItems":3}},"default":null,"required":["id","createdAt","summary","suggestions"]}},"default":{"fingerprint":"","coverage":{},"completedCoverage":{},"emptyDays":[],"review":null}},"discoverySearchEvidence":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["firecrawl"]},"mode":{"type":"string","enum":["web","reddit_restricted"]},"query":{"type":"string"},"countryCode":{"type":"string"},"languageCode":{"type":"string"},"capturedAt":{"type":"string"},"position":{"type":["number","null"]}},"required":["provider","mode","query","countryCode","languageCode","capturedAt","position"]},"default":[]},"keywords":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"id":{"type":"string"},"intent":{"type":["string","null"]},"keyword":{"type":"string"},"priority":{"type":"integer"}},"required":["enabled","id","intent","keyword","priority"],"additionalProperties":false}},"strategy":{"type":"object","properties":{"bootstrap":{"type":"object","properties":{"error":{},"lastAttemptAt":{"type":["string","null"]},"needsCommunities":{"type":"boolean"},"readyAt":{"type":["string","null"]},"status":{"type":"string","enum":["building","ready","error"]}},"required":["lastAttemptAt","needsCommunities","readyAt","status"],"additionalProperties":false},"market":{"type":"object","properties":{"countryCode":{"type":"string"},"determined":{"type":"boolean"},"languageCode":{"type":"string"}},"required":["countryCode","determined","languageCode"],"additionalProperties":false},"discovery":{"type":"object","properties":{"consecutiveEmptyScans":{"type":"integer","minimum":0},"direction":{"type":["string","null"]},"lastScanAt":{"type":["string","null"]},"lastSuccessAt":{"type":["string","null"]},"lastTechnicalError":{},"nextScanAt":{"type":["string","null"]},"status":{"type":"string","enum":["stopped","running","needs_direction"]}},"required":["consecutiveEmptyScans","direction","lastScanAt","lastSuccessAt","nextScanAt","status"],"additionalProperties":false},"id":{"type":"string"},"radarEnabled":{"type":"boolean"},"radarSystemDisabledReason":{"type":["string","null"],"enum":["pool_contribution",null]}},"required":["bootstrap","market","discovery","id","radarEnabled","radarSystemDisabledReason"],"additionalProperties":false},"subreddits":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"fitReason":{"type":["string","null"]},"id":{"type":"string"},"priority":{"type":"integer"},"subreddit":{"type":"string"},"verificationStatus":{"type":"string","enum":["pending","verified","rejected"]},"verifiedAt":{"type":["string","null"]}},"required":["enabled","fitReason","id","priority","subreddit","verificationStatus","verifiedAt"],"additionalProperties":false}},"timeZone":{"type":"string"}},"required":["keywords","strategy","subreddits","timeZone"],"additionalProperties":false}},"required":["jobId","strategy"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","strategy:write"]},"message":"Missing required scope: rankhog:read, strategy:write."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"Write rate limit reached","value":{"error":{"code":"agentic_write_rate_limited","details":{"limit":10,"windowSeconds":3600},"message":"Agentic Reddit writes are rate-limited for this workspace."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/strategy/discovery/run":{"post":{"description":"Run the active Discovery session now, subject to its hourly limit. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"run_discovery_now","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","strategy:write"]},{"sessionBearer":[]}],"summary":"Run Discovery Now","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","idempotencyKey":"run-discovery-001"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"}},"required":["organizationId","websiteId","idempotencyKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"jobId":"job_2x9rnkhdemo","strategy":{"keywords":[{"enabled":true,"id":"kw_1","intent":"Compare tools","keyword":"Intercom alternative","priority":1}],"strategy":{"bootstrap":{"error":null,"lastAttemptAt":"2026-06-17T12:00:00.000Z","needsCommunities":false,"readyAt":"2026-06-17T12:00:00.000Z","status":"ready"},"discovery":{"consecutiveEmptyScans":0,"direction":"Find support-tool comparison demand","lastScanAt":"2026-06-17T12:00:00.000Z","lastSuccessAt":"2026-06-17T12:00:00.000Z","lastTechnicalError":null,"nextScanAt":"2026-06-18T07:00:00.000Z","status":"running"},"id":"strategy_1","market":{"countryCode":"US","determined":false,"languageCode":"en"},"radarEnabled":true,"radarSystemDisabledReason":null},"subreddits":[{"enabled":true,"fitReason":"SaaS operators","id":"sub_1","priority":1,"subreddit":"SaaS","verificationStatus":"verified","verifiedAt":"2026-06-17T12:00:00.000Z"}],"timeZone":"Europe/Paris"}},"schema":{"type":"object","properties":{"jobId":{"type":["string","null"]},"strategy":{"type":"object","properties":{"discoveryHealth":{"type":"object","properties":{"fingerprint":{"type":"string","default":""},"coverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"completedCoverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"emptyDays":{"type":"array","items":{"type":"string"},"default":[]},"review":{"type":["object","null"],"properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"summary":{"type":"string"},"suggestions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["add_keyword","add_subreddit","direction"]},"value":{"type":"string"},"reason":{"type":"string"},"sourceUrl":{"type":["string","null"]},"opportunityId":{"type":["string","null"]}},"required":["kind","value","reason","sourceUrl","opportunityId"]},"maxItems":3}},"default":null,"required":["id","createdAt","summary","suggestions"]}},"default":{"fingerprint":"","coverage":{},"completedCoverage":{},"emptyDays":[],"review":null}},"discoverySearchEvidence":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["firecrawl"]},"mode":{"type":"string","enum":["web","reddit_restricted"]},"query":{"type":"string"},"countryCode":{"type":"string"},"languageCode":{"type":"string"},"capturedAt":{"type":"string"},"position":{"type":["number","null"]}},"required":["provider","mode","query","countryCode","languageCode","capturedAt","position"]},"default":[]},"keywords":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"id":{"type":"string"},"intent":{"type":["string","null"]},"keyword":{"type":"string"},"priority":{"type":"integer"}},"required":["enabled","id","intent","keyword","priority"],"additionalProperties":false}},"strategy":{"type":"object","properties":{"bootstrap":{"type":"object","properties":{"error":{},"lastAttemptAt":{"type":["string","null"]},"needsCommunities":{"type":"boolean"},"readyAt":{"type":["string","null"]},"status":{"type":"string","enum":["building","ready","error"]}},"required":["lastAttemptAt","needsCommunities","readyAt","status"],"additionalProperties":false},"market":{"type":"object","properties":{"countryCode":{"type":"string"},"determined":{"type":"boolean"},"languageCode":{"type":"string"}},"required":["countryCode","determined","languageCode"],"additionalProperties":false},"discovery":{"type":"object","properties":{"consecutiveEmptyScans":{"type":"integer","minimum":0},"direction":{"type":["string","null"]},"lastScanAt":{"type":["string","null"]},"lastSuccessAt":{"type":["string","null"]},"lastTechnicalError":{},"nextScanAt":{"type":["string","null"]},"status":{"type":"string","enum":["stopped","running","needs_direction"]}},"required":["consecutiveEmptyScans","direction","lastScanAt","lastSuccessAt","nextScanAt","status"],"additionalProperties":false},"id":{"type":"string"},"radarEnabled":{"type":"boolean"},"radarSystemDisabledReason":{"type":["string","null"],"enum":["pool_contribution",null]}},"required":["bootstrap","market","discovery","id","radarEnabled","radarSystemDisabledReason"],"additionalProperties":false},"subreddits":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"fitReason":{"type":["string","null"]},"id":{"type":"string"},"priority":{"type":"integer"},"subreddit":{"type":"string"},"verificationStatus":{"type":"string","enum":["pending","verified","rejected"]},"verifiedAt":{"type":["string","null"]}},"required":["enabled","fitReason","id","priority","subreddit","verificationStatus","verifiedAt"],"additionalProperties":false}},"timeZone":{"type":"string"}},"required":["keywords","strategy","subreddits","timeZone"],"additionalProperties":false}},"required":["jobId","strategy"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","strategy:write"]},"message":"Missing required scope: rankhog:read, strategy:write."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"Write rate limit reached","value":{"error":{"code":"agentic_write_rate_limited","details":{"limit":10,"windowSeconds":3600},"message":"Agentic Reddit writes are rate-limited for this workspace."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/strategy/radar":{"post":{"description":"Enable or disable Radar without changing Discovery. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"set_radar_enabled","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","strategy:write"]},{"sessionBearer":[]}],"summary":"Set Radar Enabled","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","enabled":false,"idempotencyKey":"radar-off-001"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"enabled":{"type":"boolean"}},"required":["organizationId","websiteId","idempotencyKey","enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"jobId":null,"strategy":{"keywords":[{"enabled":true,"id":"kw_1","intent":"Compare tools","keyword":"Intercom alternative","priority":1}],"strategy":{"bootstrap":{"error":null,"lastAttemptAt":"2026-06-17T12:00:00.000Z","needsCommunities":false,"readyAt":"2026-06-17T12:00:00.000Z","status":"ready"},"discovery":{"consecutiveEmptyScans":0,"direction":"Find support-tool comparison demand","lastScanAt":"2026-06-17T12:00:00.000Z","lastSuccessAt":"2026-06-17T12:00:00.000Z","lastTechnicalError":null,"nextScanAt":"2026-06-18T07:00:00.000Z","status":"running"},"id":"strategy_1","market":{"countryCode":"US","determined":false,"languageCode":"en"},"radarEnabled":true,"radarSystemDisabledReason":null},"subreddits":[{"enabled":true,"fitReason":"SaaS operators","id":"sub_1","priority":1,"subreddit":"SaaS","verificationStatus":"verified","verifiedAt":"2026-06-17T12:00:00.000Z"}],"timeZone":"Europe/Paris"}},"schema":{"type":"object","properties":{"jobId":{"type":["string","null"]},"strategy":{"type":"object","properties":{"discoveryHealth":{"type":"object","properties":{"fingerprint":{"type":"string","default":""},"coverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"completedCoverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"emptyDays":{"type":"array","items":{"type":"string"},"default":[]},"review":{"type":["object","null"],"properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"summary":{"type":"string"},"suggestions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["add_keyword","add_subreddit","direction"]},"value":{"type":"string"},"reason":{"type":"string"},"sourceUrl":{"type":["string","null"]},"opportunityId":{"type":["string","null"]}},"required":["kind","value","reason","sourceUrl","opportunityId"]},"maxItems":3}},"default":null,"required":["id","createdAt","summary","suggestions"]}},"default":{"fingerprint":"","coverage":{},"completedCoverage":{},"emptyDays":[],"review":null}},"discoverySearchEvidence":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["firecrawl"]},"mode":{"type":"string","enum":["web","reddit_restricted"]},"query":{"type":"string"},"countryCode":{"type":"string"},"languageCode":{"type":"string"},"capturedAt":{"type":"string"},"position":{"type":["number","null"]}},"required":["provider","mode","query","countryCode","languageCode","capturedAt","position"]},"default":[]},"keywords":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"id":{"type":"string"},"intent":{"type":["string","null"]},"keyword":{"type":"string"},"priority":{"type":"integer"}},"required":["enabled","id","intent","keyword","priority"],"additionalProperties":false}},"strategy":{"type":"object","properties":{"bootstrap":{"type":"object","properties":{"error":{},"lastAttemptAt":{"type":["string","null"]},"needsCommunities":{"type":"boolean"},"readyAt":{"type":["string","null"]},"status":{"type":"string","enum":["building","ready","error"]}},"required":["lastAttemptAt","needsCommunities","readyAt","status"],"additionalProperties":false},"market":{"type":"object","properties":{"countryCode":{"type":"string"},"determined":{"type":"boolean"},"languageCode":{"type":"string"}},"required":["countryCode","determined","languageCode"],"additionalProperties":false},"discovery":{"type":"object","properties":{"consecutiveEmptyScans":{"type":"integer","minimum":0},"direction":{"type":["string","null"]},"lastScanAt":{"type":["string","null"]},"lastSuccessAt":{"type":["string","null"]},"lastTechnicalError":{},"nextScanAt":{"type":["string","null"]},"status":{"type":"string","enum":["stopped","running","needs_direction"]}},"required":["consecutiveEmptyScans","direction","lastScanAt","lastSuccessAt","nextScanAt","status"],"additionalProperties":false},"id":{"type":"string"},"radarEnabled":{"type":"boolean"},"radarSystemDisabledReason":{"type":["string","null"],"enum":["pool_contribution",null]}},"required":["bootstrap","market","discovery","id","radarEnabled","radarSystemDisabledReason"],"additionalProperties":false},"subreddits":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"fitReason":{"type":["string","null"]},"id":{"type":"string"},"priority":{"type":"integer"},"subreddit":{"type":"string"},"verificationStatus":{"type":"string","enum":["pending","verified","rejected"]},"verifiedAt":{"type":["string","null"]}},"required":["enabled","fitReason","id","priority","subreddit","verificationStatus","verifiedAt"],"additionalProperties":false}},"timeZone":{"type":"string"}},"required":["keywords","strategy","subreddits","timeZone"],"additionalProperties":false}},"required":["jobId","strategy"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","strategy:write"]},"message":"Missing required scope: rankhog:read, strategy:write."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"Write rate limit reached","value":{"error":{"code":"agentic_write_rate_limited","details":{"limit":10,"windowSeconds":3600},"message":"Agentic Reddit writes are rate-limited for this workspace."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/strategy/inputs":{"post":{"description":"Replace shared strategy keywords and watched Radar communities. A community Rankhog has a guide for starts watching immediately; any other is saved but stays inactive until a guide exists for it. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"update_strategy_inputs","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","strategy:write"]},{"sessionBearer":[]}],"summary":"Update Strategy Inputs","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","idempotencyKey":"strategy-inputs-001","keywords":["Intercom alternative"],"subreddits":["SaaS"]},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"keywords":{"type":"array","items":{"type":"string","minLength":2,"maxLength":120},"maxItems":20},"subreddits":{"type":"array","items":{"type":"string","minLength":2,"maxLength":80},"maxItems":30}},"required":["organizationId","websiteId","idempotencyKey","keywords","subreddits"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"jobId":null,"strategy":{"keywords":[{"enabled":true,"id":"kw_1","intent":"Compare tools","keyword":"Intercom alternative","priority":1}],"strategy":{"bootstrap":{"error":null,"lastAttemptAt":"2026-06-17T12:00:00.000Z","needsCommunities":false,"readyAt":"2026-06-17T12:00:00.000Z","status":"ready"},"discovery":{"consecutiveEmptyScans":0,"direction":"Find support-tool comparison demand","lastScanAt":"2026-06-17T12:00:00.000Z","lastSuccessAt":"2026-06-17T12:00:00.000Z","lastTechnicalError":null,"nextScanAt":"2026-06-18T07:00:00.000Z","status":"running"},"id":"strategy_1","market":{"countryCode":"US","determined":false,"languageCode":"en"},"radarEnabled":true,"radarSystemDisabledReason":null},"subreddits":[{"enabled":true,"fitReason":"SaaS operators","id":"sub_1","priority":1,"subreddit":"SaaS","verificationStatus":"verified","verifiedAt":"2026-06-17T12:00:00.000Z"}],"timeZone":"Europe/Paris"}},"schema":{"type":"object","properties":{"jobId":{"type":["string","null"]},"strategy":{"type":"object","properties":{"discoveryHealth":{"type":"object","properties":{"fingerprint":{"type":"string","default":""},"coverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"completedCoverage":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"emptyDays":{"type":"array","items":{"type":"string"},"default":[]},"review":{"type":["object","null"],"properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"summary":{"type":"string"},"suggestions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["add_keyword","add_subreddit","direction"]},"value":{"type":"string"},"reason":{"type":"string"},"sourceUrl":{"type":["string","null"]},"opportunityId":{"type":["string","null"]}},"required":["kind","value","reason","sourceUrl","opportunityId"]},"maxItems":3}},"default":null,"required":["id","createdAt","summary","suggestions"]}},"default":{"fingerprint":"","coverage":{},"completedCoverage":{},"emptyDays":[],"review":null}},"discoverySearchEvidence":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["firecrawl"]},"mode":{"type":"string","enum":["web","reddit_restricted"]},"query":{"type":"string"},"countryCode":{"type":"string"},"languageCode":{"type":"string"},"capturedAt":{"type":"string"},"position":{"type":["number","null"]}},"required":["provider","mode","query","countryCode","languageCode","capturedAt","position"]},"default":[]},"keywords":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"id":{"type":"string"},"intent":{"type":["string","null"]},"keyword":{"type":"string"},"priority":{"type":"integer"}},"required":["enabled","id","intent","keyword","priority"],"additionalProperties":false}},"strategy":{"type":"object","properties":{"bootstrap":{"type":"object","properties":{"error":{},"lastAttemptAt":{"type":["string","null"]},"needsCommunities":{"type":"boolean"},"readyAt":{"type":["string","null"]},"status":{"type":"string","enum":["building","ready","error"]}},"required":["lastAttemptAt","needsCommunities","readyAt","status"],"additionalProperties":false},"market":{"type":"object","properties":{"countryCode":{"type":"string"},"determined":{"type":"boolean"},"languageCode":{"type":"string"}},"required":["countryCode","determined","languageCode"],"additionalProperties":false},"discovery":{"type":"object","properties":{"consecutiveEmptyScans":{"type":"integer","minimum":0},"direction":{"type":["string","null"]},"lastScanAt":{"type":["string","null"]},"lastSuccessAt":{"type":["string","null"]},"lastTechnicalError":{},"nextScanAt":{"type":["string","null"]},"status":{"type":"string","enum":["stopped","running","needs_direction"]}},"required":["consecutiveEmptyScans","direction","lastScanAt","lastSuccessAt","nextScanAt","status"],"additionalProperties":false},"id":{"type":"string"},"radarEnabled":{"type":"boolean"},"radarSystemDisabledReason":{"type":["string","null"],"enum":["pool_contribution",null]}},"required":["bootstrap","market","discovery","id","radarEnabled","radarSystemDisabledReason"],"additionalProperties":false},"subreddits":{"type":"array","items":{"type":"object","properties":{"enabled":{"type":"boolean"},"fitReason":{"type":["string","null"]},"id":{"type":"string"},"priority":{"type":"integer"},"subreddit":{"type":"string"},"verificationStatus":{"type":"string","enum":["pending","verified","rejected"]},"verifiedAt":{"type":["string","null"]}},"required":["enabled","fitReason","id","priority","subreddit","verificationStatus","verifiedAt"],"additionalProperties":false}},"timeZone":{"type":"string"}},"required":["keywords","strategy","subreddits","timeZone"],"additionalProperties":false}},"required":["jobId","strategy"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","strategy:write"]},"message":"Missing required scope: rankhog:read, strategy:write."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"Write rate limit reached","value":{"error":{"code":"agentic_write_rate_limited","details":{"limit":10,"windowSeconds":3600},"message":"Agentic Reddit writes are rate-limited for this workspace."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/opportunities":{"post":{"description":"List actionable Rankhog opportunities for a paid workspace, including timing, blockers, compact evidence, and linked execution state. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"list_opportunities","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"List Opportunities","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","includeRecent":true,"limit":50},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":["string","null"],"minLength":1,"maxLength":160,"default":null,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"radarFoundOn":{"type":"string","format":"date","description":"Only Radar opportunities created on this date (YYYY-MM-DD) in the product's Radar reporting timezone."},"warmupTarget":{"type":"boolean","description":"Only warm-up cards in the product's own rooms: threads picked from Radar for a warming account, waiting for a person to answer a question or confirm a comment. They close by themselves 24 hours after they were found."},"helpThreads":{"type":"boolean","description":"Only help threads: posts that share the product's audience and have a clear need to help with, where the product is not the answer. Rankhog keeps them for accounts that are warming up; they are left out of the list unless this is true, and they never notify."},"cursor":{"type":["string","null"],"maxLength":2048},"includeRecent":{"type":"boolean","default":true},"limit":{"type":"integer","minimum":1,"maximum":100,"default":50}},"required":["organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"items":[{"activity":{"deadlineAt":null,"nextStep":"The draft is ready. Nothing goes out until you approve it.","nextStepAt":null,"state":"needs_you","waitingOn":null},"blocker":null,"classificationState":null,"helpThread":false,"move":null,"confidenceScore":91,"evidence":{"googlePosition":1,"googleQuery":"best customer support for Next.js SaaS"},"evidenceSummary":{"googleQuery":"best customer support for Next.js SaaS","googleRank":1,"sourceCount":1},"id":"opp_2x9opportunity","kind":"reddit_comment","linkedAction":{"blockedReason":null,"executeAt":null,"id":"act_2x9planned","mode":"needs_approval"},"outcome":null,"nextTransitionAt":"2026-06-17T12:00:00.000Z","recommendedAction":"Review and approve this comment draft.","reviewUrl":"https://rankhog.com/product/site_demo/opportunities/opp_demo","source":{"key":"google-scan:signal_123","label":"Google #1"},"status":"ready","summary":"A relevant Reddit discussion ranks first for this buyer query.","target":{"keyword":"best customer support for Next.js SaaS","subreddit":"SaaS","url":"https://www.reddit.com/r/SaaS/comments/example/thread/"},"timing":{"dueAt":"2026-06-17T12:00:00.000Z","expiresAt":null,"snoozedUntil":null},"title":"Comment on the Reddit result at Google #1","timeZone":"Europe/Paris","updatedAt":"2026-06-17T12:00:00.000Z"}],"nextCursor":null},"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"manualPublication":{"type":["object","null"],"properties":{"id":{"type":"string"},"url":{"type":"string"},"revision":{"type":"integer"},"state":{"type":"string"},"observedAt":{"type":["string","null"]},"metrics":{"type":["object","null"],"properties":{"score":{"type":["number","null"]},"replyCount":{"type":["number","null"]},"commentCount":{"type":["number","null"]},"visibilityState":{"type":"string"}},"required":["score","replyCount","commentCount","visibilityState"],"additionalProperties":false}},"required":["id","url","revision","state","observedAt","metrics"],"additionalProperties":false},"activity":{"type":["object","null"],"properties":{"deadlineAt":{"type":["string","null"]},"nextStep":{"type":["string","null"]},"nextStepAt":{"type":["string","null"]},"state":{"type":"string","enum":["done","needs_you","scheduled","waiting","working"]},"waitingOn":{"type":["object","null"],"properties":{"actionType":{"type":"string"},"plannedRedditActionId":{"type":"string"},"subreddit":{"type":["string","null"]}},"required":["actionType","plannedRedditActionId","subreddit"],"additionalProperties":false}},"required":["deadlineAt","nextStep","nextStepAt","state","waitingOn"],"additionalProperties":false},"blocker":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"remediation":{"type":"string"}},"required":["code","message","remediation"],"additionalProperties":false},"classificationState":{"type":["string","null"],"enum":["classified","classification_pending",null]},"confidenceScore":{"type":["integer","null"],"minimum":0,"maximum":100},"move":{"type":["string","null"],"enum":["plug","mention","help",null],"description":"What Radar suggests for this thread. plug: the author asks which tool to use and the product is one, so name it. mention: the author has a problem the product solves, so help first and name the product if it is the answer. help: a useful reply exists and the product is not the answer, so leave it out. Null when Radar gave no suggestion."},"helpThread":{"type":"boolean","description":"True for a help thread: a post that only shares the product's audience, kept for accounts that are warming up. Never a place to name the product."},"evidence":{},"sourceHealth":{"type":["object","null"],"properties":{"targetUrl":{"type":"string"},"revision":{"type":"number"},"checkedAt":{"type":"string"},"lastSuccessfulCheckAt":{"type":["string","null"]},"status":{"type":"string","enum":["available","unavailable","unknown"]},"reason":{"type":["string","null"],"enum":["removed","deleted","locked","archived","missing",null]},"subject":{"type":"string","enum":["post","comment"]},"checkOutcome":{"type":"string","enum":["success","failed"]},"message":{"type":"string"},"score":{"type":["number","null"]},"commentCount":{"type":["number","null"]}},"required":["targetUrl","revision","checkedAt","lastSuccessfulCheckAt","status","reason","subject","checkOutcome","message","score","commentCount"]},"evidenceSummary":{"type":"object","properties":{"commentable":{"type":"boolean"},"googleQuery":{"type":["string","null"]},"googleRank":{"type":["number","null"]},"redditCommentCount":{"type":["number","null"]},"redditPostId":{"type":["string","null"]},"rulesAvailable":{"type":"boolean"},"sourceCount":{"type":"integer","minimum":0}},"required":["sourceCount"],"additionalProperties":false},"id":{"type":"string"},"kind":{"type":"string"},"linkedAction":{"type":["object","null"],"properties":{"blockedReason":{"type":["string","null"]},"executeAt":{"type":["string","null"]},"id":{"type":"string"},"mode":{"type":"string"}},"required":["blockedReason","executeAt","id","mode"],"additionalProperties":false},"outcome":{},"nextTransitionAt":{"type":["string","null"]},"recommendedAction":{"type":"string"},"reviewUrl":{"type":"string"},"source":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":["string","null"]}},"required":["key","label"],"additionalProperties":false},"status":{"type":"string","enum":["open","preparing","ready","planned","blocked","completed","dismissed","expired"]},"summary":{"type":"string"},"target":{"type":"object","properties":{"keyword":{"type":["string","null"]},"subreddit":{"type":["string","null"]},"url":{"type":["string","null"]}},"required":["keyword","subreddit","url"],"additionalProperties":false},"timing":{"type":"object","properties":{"dueAt":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"snoozedUntil":{"type":["string","null"]}},"required":["dueAt","expiresAt","snoozedUntil"],"additionalProperties":false},"title":{"type":"string"},"timeZone":{"type":"string"},"updatedAt":{"type":"string"}},"required":["activity","blocker","classificationState","confidenceScore","move","helpThread","id","kind","linkedAction","recommendedAction","reviewUrl","source","status","summary","target","timing","title","updatedAt"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/opportunities/get":{"post":{"description":"Return one Rankhog opportunity with public-safe evidence, blocker remediation, timing, outcome, and linked action summary. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_opportunity","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Opportunity","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","opportunityId":"opp_2x9opportunity"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":["string","null"],"minLength":1,"maxLength":160,"default":null,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"opportunityId":{"type":"string","minLength":1,"maxLength":160,"example":"opp_..."}},"required":["organizationId","websiteId","opportunityId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"activity":{"deadlineAt":null,"nextStep":"Rankhog is capturing the Reddit thread before drafting.","nextStepAt":"2026-06-17T12:00:00.000Z","state":"working","waitingOn":null},"blocker":{"code":"reddit_context_unavailable","message":"Reddit evidence was found, but live context is not verified.","remediation":"Retry thread capture before generating a comment."},"classificationState":null,"helpThread":false,"move":null,"confidenceScore":82,"evidence":{"googlePosition":1},"evidenceSummary":{"googleRank":1,"sourceCount":1},"id":"opp_2x9opportunity","kind":"reddit_comment","linkedAction":null,"outcome":null,"nextTransitionAt":"2026-06-17T12:00:00.000Z","recommendedAction":"Capture the thread, then generate a useful comment.","reviewUrl":"https://rankhog.com/product/site_demo/opportunities/opp_demo","source":{"key":"google-scan:signal_123","label":"Google #1"},"status":"blocked","summary":"A ranked Reddit discussion is ready for context capture.","target":{"keyword":"Next.js SaaS support","subreddit":"SaaS","url":"https://www.reddit.com/r/SaaS/comments/example/thread/"},"timing":{"dueAt":"2026-06-17T12:00:00.000Z","expiresAt":null,"snoozedUntil":null},"title":"Comment on the Reddit result at Google #1","timeZone":"Europe/Paris","updatedAt":"2026-06-17T12:00:00.000Z"},"schema":{"type":"object","properties":{"manualPublication":{"type":["object","null"],"properties":{"id":{"type":"string"},"url":{"type":"string"},"revision":{"type":"integer"},"state":{"type":"string"},"observedAt":{"type":["string","null"]},"metrics":{"type":["object","null"],"properties":{"score":{"type":["number","null"]},"replyCount":{"type":["number","null"]},"commentCount":{"type":["number","null"]},"visibilityState":{"type":"string"}},"required":["score","replyCount","commentCount","visibilityState"],"additionalProperties":false}},"required":["id","url","revision","state","observedAt","metrics"],"additionalProperties":false},"activity":{"type":["object","null"],"properties":{"deadlineAt":{"type":["string","null"]},"nextStep":{"type":["string","null"]},"nextStepAt":{"type":["string","null"]},"state":{"type":"string","enum":["done","needs_you","scheduled","waiting","working"]},"waitingOn":{"type":["object","null"],"properties":{"actionType":{"type":"string"},"plannedRedditActionId":{"type":"string"},"subreddit":{"type":["string","null"]}},"required":["actionType","plannedRedditActionId","subreddit"],"additionalProperties":false}},"required":["deadlineAt","nextStep","nextStepAt","state","waitingOn"],"additionalProperties":false},"blocker":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"remediation":{"type":"string"}},"required":["code","message","remediation"],"additionalProperties":false},"classificationState":{"type":["string","null"],"enum":["classified","classification_pending",null]},"confidenceScore":{"type":["integer","null"],"minimum":0,"maximum":100},"move":{"type":["string","null"],"enum":["plug","mention","help",null],"description":"What Radar suggests for this thread. plug: the author asks which tool to use and the product is one, so name it. mention: the author has a problem the product solves, so help first and name the product if it is the answer. help: a useful reply exists and the product is not the answer, so leave it out. Null when Radar gave no suggestion."},"helpThread":{"type":"boolean","description":"True for a help thread: a post that only shares the product's audience, kept for accounts that are warming up. Never a place to name the product."},"evidence":{},"sourceHealth":{"type":["object","null"],"properties":{"targetUrl":{"type":"string"},"revision":{"type":"number"},"checkedAt":{"type":"string"},"lastSuccessfulCheckAt":{"type":["string","null"]},"status":{"type":"string","enum":["available","unavailable","unknown"]},"reason":{"type":["string","null"],"enum":["removed","deleted","locked","archived","missing",null]},"subject":{"type":"string","enum":["post","comment"]},"checkOutcome":{"type":"string","enum":["success","failed"]},"message":{"type":"string"},"score":{"type":["number","null"]},"commentCount":{"type":["number","null"]}},"required":["targetUrl","revision","checkedAt","lastSuccessfulCheckAt","status","reason","subject","checkOutcome","message","score","commentCount"]},"evidenceSummary":{"type":"object","properties":{"commentable":{"type":"boolean"},"googleQuery":{"type":["string","null"]},"googleRank":{"type":["number","null"]},"redditCommentCount":{"type":["number","null"]},"redditPostId":{"type":["string","null"]},"rulesAvailable":{"type":"boolean"},"sourceCount":{"type":"integer","minimum":0}},"required":["sourceCount"],"additionalProperties":false},"id":{"type":"string"},"kind":{"type":"string"},"linkedAction":{"type":["object","null"],"properties":{"blockedReason":{"type":["string","null"]},"executeAt":{"type":["string","null"]},"id":{"type":"string"},"mode":{"type":"string"}},"required":["blockedReason","executeAt","id","mode"],"additionalProperties":false},"outcome":{},"nextTransitionAt":{"type":["string","null"]},"recommendedAction":{"type":"string"},"reviewUrl":{"type":"string"},"source":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":["string","null"]}},"required":["key","label"],"additionalProperties":false},"status":{"type":"string","enum":["open","preparing","ready","planned","blocked","completed","dismissed","expired"]},"summary":{"type":"string"},"target":{"type":"object","properties":{"keyword":{"type":["string","null"]},"subreddit":{"type":["string","null"]},"url":{"type":["string","null"]}},"required":["keyword","subreddit","url"],"additionalProperties":false},"timing":{"type":"object","properties":{"dueAt":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"snoozedUntil":{"type":["string","null"]}},"required":["dueAt","expiresAt","snoozedUntil"],"additionalProperties":false},"title":{"type":"string"},"timeZone":{"type":"string"},"updatedAt":{"type":"string"}},"required":["activity","blocker","classificationState","confidenceScore","move","helpThread","id","kind","linkedAction","recommendedAction","reviewUrl","source","status","summary","target","timing","title","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found, agentic_opportunity_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}},"agentic_opportunity_not_found":{"summary":"Opportunity not found","value":{"error":{"code":"agentic_opportunity_not_found","message":"Opportunity not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/planned-actions/get":{"post":{"description":"Return one planned Reddit action from a paid workspace. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_planned_reddit_action","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Planned Reddit Action","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","plannedRedditActionId":"act_2x9planned"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"plannedRedditActionId":{"type":"string","minLength":1,"maxLength":160,"example":"act_..."}},"required":["managedRedditAccountId","organizationId","websiteId","plannedRedditActionId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"actionType":"post","approvalNote":null,"approvalResolvedAt":null,"approvalStatus":"not_required","brief":"Share a first-hand activation lesson with r/SaaS.","createdAt":"2026-06-17T11:45:00.000Z","dependsOnPlannedRedditActionId":null,"dueAt":null,"generatedDraft":"# What actually improved your SaaS activation?\n\nWe recently found that one guided setup step worked better than a long checklist.","id":"act_2x9planned","intent":"helpful_answer","managedRedditAccountId":"mra_2x9rnkhdemo","opportunityId":null,"organizationId":"org_2x9rnkhdemo","pausedAt":null,"priority":50,"redditAccountId":null,"scheduledEndAt":null,"scheduledStartAt":"2026-06-17T12:00:00.000Z","status":"ready","strategyLane":null,"targetKeyword":null,"targetSubreddit":"SaaS","targetUrl":null,"updatedAt":"2026-06-17T11:45:00.000Z","websiteId":"site_2x9rnkhdemo"},"schema":{"type":"object","properties":{"actionType":{"type":"string","enum":["post","comment","reply","upvote","join_subreddit","research"]},"approvalNote":{"type":["string","null"]},"approvalResolvedAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"approvalStatus":{"type":"string","enum":["not_required","pending","approved","rejected"]},"brief":{"type":"string"},"createdAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"dependsOnPlannedRedditActionId":{"type":["string","null"]},"dueAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"generatedDraft":{"type":["string","null"]},"id":{"type":"string","minLength":1,"maxLength":160,"example":"act_..."},"intent":{"type":"string"},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"opportunityId":{"type":["string","null"]},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"pausedAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"priority":{"type":"integer"},"redditAccountId":{"type":["string","null"]},"scheduledEndAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"scheduledStartAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"status":{"type":"string","enum":["planned","ready","in_progress","completed","canceled","blocked"]},"strategyLane":{"type":["string","null"],"enum":["discovery","radar","user",null]},"targetKeyword":{"type":["string","null"]},"targetSubreddit":{"type":["string","null"]},"targetUrl":{"type":["string","null"]},"updatedAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"websiteId":{"type":["string","null"]}},"required":["actionType","approvalNote","approvalResolvedAt","approvalStatus","brief","createdAt","dependsOnPlannedRedditActionId","dueAt","generatedDraft","id","intent","managedRedditAccountId","opportunityId","organizationId","pausedAt","priority","redditAccountId","scheduledEndAt","scheduledStartAt","status","strategyLane","targetKeyword","targetSubreddit","targetUrl","updatedAt","websiteId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found, agentic_planned_action_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}},"agentic_planned_action_not_found":{"summary":"Planned action not found","value":{"error":{"code":"agentic_planned_action_not_found","message":"Planned Reddit action not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/planned-actions/list":{"post":{"description":"List a workspace's planned Reddit actions, newest first: by default the open work the control pane counts (blocked, in progress, planned, ready), or the statuses and approval status you ask for. Each item carries its card (opportunityId) and blockedReason; 25 a page (limit up to 100), the next page with nextCursor. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"list_planned_reddit_actions","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"List Planned Reddit Actions","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","limit":25,"status":["blocked"]},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"approvalStatus":{"type":"string","enum":["not_required","pending","approved","rejected"]},"cursor":{"type":"string","minLength":1,"maxLength":512},"limit":{"type":"integer","minimum":1,"maximum":100,"default":25},"status":{"type":"array","items":{"type":"string","enum":["planned","ready","in_progress","completed","canceled","blocked"]},"minItems":1,"maxItems":6}},"required":["managedRedditAccountId","organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"items":[{"actionType":"post","approvalNote":null,"approvalResolvedAt":null,"approvalStatus":"not_required","brief":"Share a first-hand activation lesson with r/SaaS.","createdAt":"2026-06-17T11:45:00.000Z","dependsOnPlannedRedditActionId":null,"dueAt":null,"generatedDraft":"# What actually improved your SaaS activation?\n\nWe recently found that one guided setup step worked better than a long checklist.","id":"act_2x9planned","intent":"helpful_answer","managedRedditAccountId":"mra_2x9rnkhdemo","opportunityId":null,"organizationId":"org_2x9rnkhdemo","pausedAt":null,"priority":50,"redditAccountId":null,"scheduledEndAt":null,"scheduledStartAt":"2026-06-17T12:00:00.000Z","status":"blocked","strategyLane":null,"targetKeyword":null,"targetSubreddit":"SaaS","targetUrl":null,"updatedAt":"2026-06-17T11:45:00.000Z","websiteId":"site_2x9rnkhdemo","blockedReason":"awaiting_reddit_account"}],"nextCursor":null},"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"actionType":{"type":"string","enum":["post","comment","reply","upvote","join_subreddit","research"]},"approvalNote":{"type":["string","null"]},"approvalResolvedAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"approvalStatus":{"type":"string","enum":["not_required","pending","approved","rejected"]},"brief":{"type":"string"},"createdAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"dependsOnPlannedRedditActionId":{"type":["string","null"]},"dueAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"generatedDraft":{"type":["string","null"]},"id":{"type":"string","minLength":1,"maxLength":160,"example":"act_..."},"intent":{"type":"string"},"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"opportunityId":{"type":["string","null"]},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"pausedAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"priority":{"type":"integer"},"redditAccountId":{"type":["string","null"]},"scheduledEndAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"scheduledStartAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"status":{"type":"string","enum":["planned","ready","in_progress","completed","canceled","blocked"]},"strategyLane":{"type":["string","null"],"enum":["discovery","radar","user",null]},"targetKeyword":{"type":["string","null"]},"targetSubreddit":{"type":["string","null"]},"targetUrl":{"type":["string","null"]},"updatedAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"websiteId":{"type":["string","null"]},"blockedReason":{"type":["string","null"]}},"required":["actionType","approvalNote","approvalResolvedAt","approvalStatus","brief","createdAt","dependsOnPlannedRedditActionId","dueAt","generatedDraft","id","intent","managedRedditAccountId","opportunityId","organizationId","pausedAt","priority","redditAccountId","scheduledEndAt","scheduledStartAt","status","strategyLane","targetKeyword","targetSubreddit","targetUrl","updatedAt","websiteId","blockedReason"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/opportunities/conversation":{"post":{"description":"Read one opportunity's conversation timeline: milestones, drafts, questions, and messages. Poll with afterSeq for new items. Every current opportunity has a conversation; preserved legacy history can return a null conversationId when no old thread exists. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_opportunity_conversation","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Opportunity Conversation","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","afterSeq":0,"opportunityId":"opp_2x9opportunity"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":["string","null"],"minLength":1,"maxLength":160,"default":null,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"afterSeq":{"type":"integer","minimum":0,"default":0,"description":"Return only items with a sequence number greater than this. Poll with the last seen lastSeq to page new items."},"opportunityId":{"type":"string","minLength":1,"maxLength":160,"example":"opp_..."}},"required":["organizationId","websiteId","opportunityId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"conversationId":"conv_2x9conversation","items":[{"authorUserId":null,"createdAt":"2026-06-17T12:00:00.000Z","id":"item_2x9found","level":"milestone","metadata":{"origin":"system"},"parts":[{"data":{"key":"found","title":"Found a discussion worth a comment in r/SaaS."},"type":"data-milestone"}],"role":"system","seq":1,"sourceAdapter":"system"},{"authorUserId":"user_2x9founder","createdAt":"2026-06-17T12:00:00.000Z","id":"item_2x9message","level":"timeline","metadata":{"authorName":"Anthony","origin":"web"},"parts":[{"text":"Make it shorter.","type":"text"}],"role":"user","seq":2,"sourceAdapter":"web"}],"lastSeq":2,"mode":"copilot","pendingQuestion":null},"schema":{"type":"object","properties":{"conversationId":{"type":["string","null"],"minLength":1,"maxLength":160,"example":"id_..."},"items":{"type":"array","items":{"type":"object","properties":{"authorUserId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"id":{"type":"string","minLength":1,"maxLength":160,"example":"id_..."},"level":{"type":"string","enum":["detail","milestone","timeline"]},"metadata":{},"parts":{"type":"array","items":{"type":"object","additionalProperties":{}},"description":"AI SDK style message parts. Text parts carry conversation text; data-* parts carry typed cards such as drafts, milestones, and questions."},"role":{"type":"string","enum":["assistant","system","user"]},"seq":{"type":"integer"},"sourceAdapter":{"type":["string","null"],"enum":["agent","job","slack","system","web",null]}},"required":["authorUserId","createdAt","id","level","parts","role","seq","sourceAdapter"],"additionalProperties":false}},"lastSeq":{"type":"integer"},"mode":{"type":"string","enum":["autopilot","copilot"]},"pendingQuestion":{"description":"The unanswered question the agent is waiting on, if any, with its option labels."}},"required":["conversationId","items","lastSeq","mode"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found, agentic_opportunity_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}},"agentic_opportunity_not_found":{"summary":"Opportunity not found","value":{"error":{"code":"agentic_opportunity_not_found","message":"Opportunity not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/opportunities/conversation/messages":{"post":{"description":"Steer an opportunity conversation or answer its pending question with the optional answer.questionId, then queue an agent turn. Terminal and cutover-history conversations are read-only. Messages do not grant execution permission; use confirm_opportunity_action with the explicit dangerous-write grant to send. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"post_opportunity_conversation_message","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","conversation:write"]},{"sessionBearer":[]}],"summary":"Post Opportunity Conversation Message","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","idempotencyKey":"conv-msg-2026-06-17-001","message":"Skip the pricing angle and answer the workflow question.","opportunityId":"opp_2x9opportunity"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"message":{"type":"string","minLength":1,"maxLength":4000,"description":"Plain text for the opportunity conversation. The agent reads it like any team message."},"answer":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"skipped":{"type":"boolean"}},"required":["questionId"],"additionalProperties":false},"opportunityId":{"type":"string","minLength":1,"maxLength":160,"example":"opp_..."}},"required":["managedRedditAccountId","organizationId","websiteId","idempotencyKey","message","opportunityId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"agentTurnQueued":true,"conversationId":"conv_2x9conversation","created":true,"itemId":"item_2x9posted","seq":3},"schema":{"type":"object","properties":{"agentTurnQueued":{"type":"boolean","description":"Whether an agent turn was queued for this message. The reply lands in the conversation; poll get_opportunity_conversation with afterSeq."},"conversationId":{"type":"string","minLength":1,"maxLength":160,"example":"id_..."},"created":{"type":"boolean","description":"False when the idempotency key replayed an already recorded message."},"itemId":{"type":"string","minLength":1,"maxLength":160,"example":"id_..."},"seq":{"type":"integer"}},"required":["agentTurnQueued","conversationId","created","itemId","seq"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","conversation:write"]},"message":"Missing required scope: rankhog:read, conversation:write."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found, agentic_opportunity_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}},"agentic_opportunity_not_found":{"summary":"Opportunity not found","value":{"error":{"code":"agentic_opportunity_not_found","message":"Opportunity not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_conversation_read_only.","content":{"application/json":{"examples":{"agentic_conversation_read_only":{"summary":"Conversation is read-only","value":{"error":{"code":"agentic_conversation_read_only","message":"This opportunity conversation is read-only history."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"Message rate limit reached","value":{"error":{"code":"agentic_write_rate_limited","details":{"limit":30,"windowSeconds":3600},"message":"Agentic conversation messages are rate-limited for this workspace."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/conversations":{"post":{"description":"Start a conversation from a prompt, like the New composer in Rankhog. A Reddit post or comment link becomes a reply opportunity: Rankhog reads the thread and drafts the reply the prompt asks for. Anything else starts a conversation the agent answers; it can start a post when a community is named. Set post.subreddit to start a new post in a community directly: the opportunity is a reddit_post with its planned action from the start, an empty prompt runs nothing and costs nothing (write the title and body with update_opportunity_draft at expectedRevision 0), and a prompt has the agent draft it. If the thread already has an opportunity, the prompt joins that conversation (outcome existing). Nothing is sent to Reddit until a person confirms. With an organization API key the agent answers but the AI draft waits for a person. Poll get_opportunity_conversation for the reply. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"start_conversation","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","conversation:write"]},{"sessionBearer":[]}],"summary":"Start Conversation","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","idempotencyKey":"start-2026-09-30-001","prompt":"Reply to this and keep it short: https://www.reddit.com/r/SaaS/comments/1abcde/how_do_you_find_users/"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"conversationId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","description":"Optional. Your own ULID for the new conversation. Taken only when free; the same ids and prompt replay, anything else is a 409."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"opportunityId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","description":"Optional. Your own ULID for the new opportunity, so you can link to it before the response arrives. Same rules as conversationId."},"post":{"type":"object","properties":{"subreddit":{"type":"string","minLength":1,"maxLength":60,"description":"The community, like r/SaaS or SaaS (2 to 21 letters, numbers or underscores).","example":"SaaS"}},"required":["subreddit"],"additionalProperties":false,"description":"Start a new post in this community. The opportunity is a reddit_post with its planned action from the first read, so update_opportunity_draft can write the title and body at revision 0. With an empty prompt nothing else runs and nothing costs; with a prompt the agent drafts the post (one draft credit, and with an organization API key the draft waits for a person)."},"prompt":{"type":"string","maxLength":4000,"default":"","description":"What the team wants, in plain words. A Reddit post or comment link becomes a reply to it; anything else starts a conversation the agent answers, and it can start a post when a community is named. Required unless post is set.","example":"Reply to this and keep it short: https://www.reddit.com/r/SaaS/comments/1abcde/how_do_you_find_users/"}},"required":["managedRedditAccountId","organizationId","websiteId","idempotencyKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"conversationId":"conv_2x9conversation","itemId":"item_2x9prompt","kind":"reddit_comment","opportunityId":"opp_2x9opportunity","outcome":"created"},"schema":{"type":"object","properties":{"conversationId":{"type":"string","minLength":1,"maxLength":160,"example":"id_..."},"itemId":{"type":"string","minLength":1,"maxLength":160,"example":"id_...","description":"The conversation item that holds the prompt; for a post started without a prompt, the opening card."},"kind":{"type":"string","description":"reddit_comment or reddit_reply for a pasted link, reddit_post when post was set, user_request for anything else."},"opportunityId":{"type":"string","minLength":1,"maxLength":160,"example":"opp_..."},"outcome":{"type":"string","enum":["created","existing"],"description":"existing: the thread already had work in this product, so the prompt joined that opportunity's conversation instead of creating a second one."}},"required":["conversationId","itemId","kind","opportunityId","outcome"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input, agentic_invalid_input, agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid post community","value":{"error":{"code":"agentic_invalid_input","message":"Name the community like r/SaaS."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","conversation:write"]},"message":"Missing required scope: rankhog:read, conversation:write."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_workspace_unavailable, agentic_target_claimed.","content":{"application/json":{"examples":{"agentic_workspace_unavailable":{"summary":"Product not set up","value":{"error":{"code":"agentic_workspace_unavailable","message":"This product is not set up for Reddit work yet."}}},"agentic_target_claimed":{"summary":"Thread already has work","value":{"error":{"code":"agentic_target_claimed","message":"This thread already has work in this product, and it could not be opened."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"Start rate limit reached","value":{"error":{"code":"agentic_write_rate_limited","details":{"limit":30,"windowSeconds":3600},"message":"You can start 30 conversations an hour. Try again in a few minutes."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/drafts":{"post":{"description":"Create a ready manual Reddit post draft after fetching subreddit rules. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"create_reddit_post_draft","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Create Reddit Post Draft","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","body":"We replaced a long setup checklist with one guided action and saw activation improve. Curious what other teams changed that made onboarding click.","idempotencyKey":"draft-2026-06-17-001","riskSummary":"Useful discussion prompt, no link, and includes founder context.","subreddit":"SaaS","title":"What actually improved your SaaS activation?"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"body":{"type":"string","minLength":1,"maxLength":20000},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"riskSummary":{"type":"string","minLength":1,"maxLength":4000},"subreddit":{"type":"string","minLength":1,"maxLength":80,"example":"SaaS"},"title":{"type":"string","minLength":1,"maxLength":300}},"required":["managedRedditAccountId","organizationId","body","idempotencyKey","subreddit","title"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"approvalStatus":"not_required","approvalUrl":null,"draftId":"act_2x9rnkhdemo","manualStatus":"ready_for_manual_action","riskSummary":"Useful discussion prompt, no link, and includes founder context.","rules":{"displayName":"SaaS","isVerified":true,"postingRiskNotes":["Avoid launch-only posts and make the post useful without requiring a click."],"rules":[{"name":"No spam","summary":"Self-promotion must be contextual and useful to the community."},{"name":"Be specific","summary":"Posts should include enough detail for founders to respond."}],"sourceUrls":["https://www.reddit.com/r/SaaS/about/rules"],"stats":{"activeUserCount":412,"capturedAt":"2026-06-17T12:00:00.000Z","createdUtc":1262304000,"publicDescription":"A community for SaaS founders and operators.","subscribers":382000,"title":"Software as a Service"},"status":"ready","subreddit":"SaaS","url":"https://www.reddit.com/r/SaaS/"}},"schema":{"type":"object","properties":{"approvalStatus":{"type":"string","enum":["not_required"]},"approvalUrl":{"type":["string","null"]},"draftId":{"type":"string"},"manualStatus":{"type":"string","enum":["ready_for_manual_action"]},"riskSummary":{"type":"string"},"rules":{"type":"object","properties":{"displayName":{"type":"string"},"isVerified":{"type":"boolean"},"postingRiskNotes":{"type":"array","items":{"type":"string"}},"rules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"summary":{"type":"string"}},"required":["name","summary"],"additionalProperties":false}},"sourceUrls":{"type":"array","items":{"type":"string","format":"uri"}},"stats":{"type":["object","null"],"properties":{"activeUserCount":{"type":["integer","null"],"minimum":0},"capturedAt":{"type":["string","null"]},"createdUtc":{"type":["number","null"]},"publicDescription":{"type":["string","null"]},"subscribers":{"type":["integer","null"],"minimum":0},"title":{"type":["string","null"]}},"required":["activeUserCount","capturedAt","createdUtc","publicDescription","subscribers","title"],"additionalProperties":false},"status":{"type":"string","enum":["ready","unavailable"]},"subreddit":{"type":"string"},"url":{"type":["string","null"],"format":"uri"}},"required":["displayName","isVerified","postingRiskNotes","rules","sourceUrls","stats","status","subreddit","url"],"additionalProperties":false}},"required":["approvalStatus","approvalUrl","draftId","manualStatus","riskSummary","rules"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required, agentic_plan_feature_locked.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}},"agentic_plan_feature_locked":{"summary":"Not in this plan","value":{"error":{"code":"agentic_plan_feature_locked","details":{"enabled":false,"key":"discovery","max":null,"organizationId":"org_2x9rnkhdemo","planKey":"appsumo_tier_1","unlockPlanKey":"appsumo_tier_2","used":null,"websiteId":"site_2x9rnkhdemo"},"message":"Discovery is not included in your plan. A person with billing access can upgrade the plan in Rankhog."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","reddit:draft:write"]},"message":"Missing required scope: rankhog:read, reddit:draft:write."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_managed_account_inactive, agentic_strategy_required.","content":{"application/json":{"examples":{"agentic_managed_account_inactive":{"summary":"Managed account inactive","value":{"error":{"code":"agentic_managed_account_inactive","details":{"managedAccountStatus":"setup_required"},"message":"This managed Reddit account must be active before browser-backed agentic tools can run."}}},"agentic_strategy_required":{"summary":"Strategy required","value":{"error":{"code":"agentic_strategy_required","message":"Create a Rankhog strategy before storing agent-created Reddit drafts."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"Write rate limit reached","value":{"error":{"code":"agentic_write_rate_limited","details":{"limit":10,"windowSeconds":3600},"message":"Agentic Reddit writes are rate-limited for this workspace."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"A dependent Rankhog service is unavailable. Documented codes: agentic_draft_not_created.","content":{"application/json":{"examples":{"agentic_draft_not_created":{"summary":"Draft storage failed","value":{"error":{"code":"agentic_draft_not_created","message":"Agent-created Reddit draft could not be stored."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/reddit-actions":{"post":{"description":"Create a stored Reddit write action for post, comment, reply, upvote, or join_subreddit. Draft approval and write execution remain separate. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"create_reddit_action","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Create Reddit Action","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","actionType":"comment","body":"We saw better activation after asking users for one setup action instead of showing a long checklist.","idempotencyKey":"action-comment-2026-06-17-001","riskSummary":"Contextual reply with no link and no promotional claim.","targetUrl":"https://www.reddit.com/r/SaaS/comments/examplepost/example/"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"actionType":{"type":"string","enum":["post","comment","reply","upvote","join_subreddit"]},"body":{"type":"string","minLength":1,"maxLength":20000},"flairText":{"type":"string","minLength":1,"maxLength":120},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"riskSummary":{"type":"string","minLength":1,"maxLength":4000},"subreddit":{"type":"string","minLength":1,"maxLength":80,"example":"SaaS"},"targetUrl":{"type":"string","maxLength":2000,"format":"uri"},"title":{"type":"string","minLength":1,"maxLength":300}},"required":["managedRedditAccountId","organizationId","actionType","idempotencyKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"actionType":"comment","approvalStatus":"pending","plannedRedditActionId":"act_2x9planned","riskSummary":"Contextual reply with no link and no promotional claim.","rules":null,"status":"planned"},"schema":{"type":"object","properties":{"actionType":{"type":"string","enum":["post","comment","reply","upvote","join_subreddit"]},"approvalStatus":{"type":"string","enum":["not_required","pending","approved"]},"plannedRedditActionId":{"type":"string"},"riskSummary":{"type":"string"},"rules":{"type":["object","null"],"properties":{"displayName":{"type":"string"},"isVerified":{"type":"boolean"},"postingRiskNotes":{"type":"array","items":{"type":"string"}},"rules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"summary":{"type":"string"}},"required":["name","summary"],"additionalProperties":false}},"sourceUrls":{"type":"array","items":{"type":"string","format":"uri"}},"stats":{"type":["object","null"],"properties":{"activeUserCount":{"type":["integer","null"],"minimum":0},"capturedAt":{"type":["string","null"]},"createdUtc":{"type":["number","null"]},"publicDescription":{"type":["string","null"]},"subscribers":{"type":["integer","null"],"minimum":0},"title":{"type":["string","null"]}},"required":["activeUserCount","capturedAt","createdUtc","publicDescription","subscribers","title"],"additionalProperties":false},"status":{"type":"string","enum":["ready","unavailable"]},"subreddit":{"type":"string"},"url":{"type":["string","null"],"format":"uri"}},"required":["displayName","isVerified","postingRiskNotes","rules","sourceUrls","stats","status","subreddit","url"],"additionalProperties":false},"status":{"type":"string","enum":["ready","planned"]}},"required":["actionType","approvalStatus","plannedRedditActionId","riskSummary","rules","status"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required, agentic_plan_feature_locked.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}},"agentic_plan_feature_locked":{"summary":"Not in this plan","value":{"error":{"code":"agentic_plan_feature_locked","details":{"enabled":false,"key":"discovery","max":null,"organizationId":"org_2x9rnkhdemo","planKey":"appsumo_tier_1","unlockPlanKey":"appsumo_tier_2","used":null,"websiteId":"site_2x9rnkhdemo"},"message":"Discovery is not included in your plan. A person with billing access can upgrade the plan in Rankhog."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","reddit:draft:write"]},"message":"Missing required scope: rankhog:read, reddit:draft:write."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_managed_account_inactive, agentic_strategy_required.","content":{"application/json":{"examples":{"agentic_managed_account_inactive":{"summary":"Managed account inactive","value":{"error":{"code":"agentic_managed_account_inactive","details":{"managedAccountStatus":"setup_required"},"message":"This managed Reddit account must be active before browser-backed agentic tools can run."}}},"agentic_strategy_required":{"summary":"Strategy required","value":{"error":{"code":"agentic_strategy_required","message":"Create a Rankhog strategy before storing agent-created Reddit drafts."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"Write rate limit reached","value":{"error":{"code":"agentic_write_rate_limited","details":{"limit":10,"windowSeconds":3600},"message":"Agentic Reddit writes are rate-limited for this workspace."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"A dependent Rankhog service is unavailable. Documented codes: agentic_action_not_created.","content":{"application/json":{"examples":{"agentic_action_not_created":{"summary":"Action storage failed","value":{"error":{"code":"agentic_action_not_created","message":"Agent-created Reddit action could not be stored."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/reddit-actions/execute":{"post":{"description":"Queue an authorized post, comment, reply, upvote, or join for Desktop execution and return a stable execution ID immediately. Duplicate idempotent triggers reuse the existing execution. An account under Rankhog's safety bar is refused with agentic_account_under_safety_bar and its numbers: a warning to give the person, not a wall. When they accept the risk, name that account in requestedExecutorRedditAccountId and pass acceptAccountRisk: true. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"execute_reddit_action","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write","reddit:write:dangerous"]},{"sessionBearer":[]}],"summary":"Execute Reddit Action","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","acknowledgement":"I understand this can publish or change Reddit state from the user's Reddit account.","idempotencyKey":"execute-action-2026-06-17-001","plannedRedditActionId":"act_2x9planned","requestedExecutorRedditAccountId":"ra_2x9executor"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"acknowledgement":{"type":"string","enum":["I understand this can publish or change Reddit state from the user's Reddit account."]},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"acceptAccountRisk":{"type":"boolean","description":"Rankhog holds product posts, comments and replies from an account under its safety bar (still warming up, too new, too little karma, a recent removal, or stats not read yet), because Reddit removes them and can ban the account. A send from such an account is refused with the account's numbers. True sends it anyway from the named account. Pass it only when the person has been told that risk and wants it sent. It changes nothing for an account that passed the bar."},"plannedRedditActionId":{"type":"string","minLength":1,"maxLength":160,"example":"act_..."},"requestedExecutorRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"ra_..."}},"required":["managedRedditAccountId","organizationId","acknowledgement","idempotencyKey","plannedRedditActionId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"executionId":"job_2x9rnkhdemo","jobId":"job_2x9rnkhdemo","plannedRedditActionId":"act_2x9planned","status":"queued","statusUrl":"/agent/v1/reddit-action-executions/status"},"schema":{"type":"object","properties":{"executionId":{"type":"string"},"jobId":{"type":"string"},"plannedRedditActionId":{"type":"string"},"status":{"type":"string","enum":["queued"]},"statusUrl":{"type":"string","description":"POST this path with organizationId, managedRedditAccountId, and executionId to poll normalized execution status."}},"required":["executionId","jobId","plannedRedditActionId","status","statusUrl"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required, agentic_plan_feature_locked, agentic_insufficient_credits.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}},"agentic_plan_feature_locked":{"summary":"Not in this plan","value":{"error":{"code":"agentic_plan_feature_locked","details":{"enabled":false,"key":"discovery","max":null,"organizationId":"org_2x9rnkhdemo","planKey":"appsumo_tier_1","unlockPlanKey":"appsumo_tier_2","used":null,"websiteId":"site_2x9rnkhdemo"},"message":"Discovery is not included in your plan. A person with billing access can upgrade the plan in Rankhog."}}},"agentic_insufficient_credits":{"summary":"Insufficient credits","value":{"error":{"code":"agentic_insufficient_credits","details":{"available":0,"organizationId":"org_2x9rnkhdemo","required":1,"resourceKind":"draft","spendable":0,"websiteId":"site_2x9rnkhdemo"},"message":"Not enough credits: this draft needs 1, and 0 can be spent right now. A billing manager can buy credits from the Rankhog billing page."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied, agentic_missing_dangerous_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","reddit:draft:write","reddit:write:dangerous"]},"message":"Missing required scope: rankhog:read, reddit:draft:write, reddit:write:dangerous."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}},"agentic_missing_dangerous_scope":{"summary":"Dangerous scope required","value":{"error":{"code":"agentic_missing_dangerous_scope","message":"Direct Reddit execution requires reddit:write:dangerous for API keys and OAuth clients."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found, agentic_planned_action_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}},"agentic_planned_action_not_found":{"summary":"Planned action not found","value":{"error":{"code":"agentic_planned_action_not_found","message":"Planned Reddit action not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_managed_account_inactive, agentic_reddit_account_not_ready, agentic_requested_reddit_account_not_ready, agentic_thread_has_other_account.","content":{"application/json":{"examples":{"agentic_managed_account_inactive":{"summary":"Managed account inactive","value":{"error":{"code":"agentic_managed_account_inactive","details":{"managedAccountStatus":"setup_required"},"message":"This managed Reddit account must be active before browser-backed agentic tools can run."}}},"agentic_reddit_account_not_ready":{"summary":"Reddit account not ready","value":{"error":{"code":"agentic_reddit_account_not_ready","message":"No product-granted Reddit account has a ready matching desktop browser."}}},"agentic_requested_reddit_account_not_ready":{"summary":"Requested Reddit account not ready","value":{"error":{"code":"agentic_requested_reddit_account_not_ready","message":"The requested Reddit account is not product-granted with a ready matching desktop browser."}}},"agentic_thread_has_other_account":{"summary":"Another of your accounts is in this thread","value":{"error":{"code":"agentic_thread_has_other_account","message":"u/quill_mark already wrote in this thread. One of your accounts per thread, so it never looks like one person posing as two. Send it from the account already in the thread, or skip this thread."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The request is syntactically valid but unsafe. Documented codes: agentic_account_under_safety_bar, agentic_reddit_url_not_allowed.","content":{"application/json":{"examples":{"agentic_account_under_safety_bar":{"summary":"Account under the safety bar","value":{"error":{"code":"agentic_account_under_safety_bar","details":{"accounts":[{"accountAgeDays":12,"blockedLabel":"Needs more karma","blockedReason":"karma_too_low","commentKarma":9,"id":"ra_demo","redditUsername":"quill_mark","totalKarma":41}],"safetyBar":{"minAccountAgeDays":30,"minCommentKarma":150,"minTotalKarma":300,"removalFreeDays":14}},"message":"Rankhog holds product posts and comments from an account under its safety bar, because Reddit removes them and can ban the account. u/quill_mark: needs more karma (12 days old, 41 karma, 9 of it from comments). To pass the bar an account is out of warm-up and 30 days old with 300 karma, 150 of it from comments, and nothing removed in the last 14 days. Tell the person this risk in plain words. If they accept it, call again with the account they chose as the executor and acceptAccountRisk: true."}}},"agentic_reddit_url_not_allowed":{"summary":"URL is not allowed","value":{"error":{"code":"agentic_reddit_url_not_allowed","message":"The planned Reddit action target URL is outside the supported Reddit scope."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The actor or workspace is rate limited. Documented codes: agentic_write_rate_limited.","content":{"application/json":{"examples":{"agentic_write_rate_limited":{"summary":"Write rate limit reached","value":{"error":{"code":"agentic_write_rate_limited","details":{"limit":10,"windowSeconds":3600},"message":"Agentic Reddit writes are rate-limited for this workspace."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/reddit-action-executions/status":{"post":{"description":"Return normalized status for a Reddit action execution, including workflow step, final Reddit permalink, human-needed state, and structured failure or verification-required details. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_reddit_action_execution_status","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Reddit Action Execution Status","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","executionId":"job_2x9rnkhdemo"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"executionId":{"type":"string","minLength":1,"maxLength":160,"example":"job_..."}},"required":["managedRedditAccountId","organizationId","executionId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"examples":{"failed":{"summary":"Failed execution","value":{"actionType":"comment","createdAt":"2026-06-17T11:45:00.000Z","currentStepId":null,"currentStepLabel":null,"executionId":"job_2x9rnkhdemo","failedStepId":"validate_subreddit_rules","failure":{"failedStepId":"validate_subreddit_rules","message":"The subreddit rules could not be verified before execution.","reasonCode":"rules_unavailable","remediation":"Refresh subreddit rules in Rankhog, review the planned action, then execute again with a new idempotency key.","retryable":true},"finishedAt":"2026-06-17T11:45:20.000Z","jobId":"job_2x9rnkhdemo","plannedRedditActionId":"act_2x9planned","redditAction":null,"startedAt":"2026-06-17T11:45:05.000Z","status":"failed","submittedAt":null,"updatedAt":"2026-06-17T11:45:20.000Z"}},"scheduled":{"summary":"Scheduled execution waiting for Desktop","value":{"actionType":"comment","createdAt":"2026-06-17T11:45:00.000Z","currentStepId":"wait_for_desktop","currentStepLabel":"Waiting for Rankhog Desktop.","executionId":"job_2x9rnkhdemo","failedStepId":null,"failure":null,"finishedAt":null,"jobId":"job_2x9rnkhdemo","plannedRedditActionId":"act_2x9planned","redditAction":null,"startedAt":null,"status":"scheduled","submittedAt":null,"updatedAt":"2026-06-17T11:45:00.000Z"}},"running":{"summary":"Running execution","value":{"actionType":"comment","createdAt":"2026-06-17T11:45:00.000Z","currentStepId":"type_comment_body","currentStepLabel":"Typing the Reddit comment body.","executionId":"job_2x9rnkhdemo","failedStepId":null,"failure":null,"finishedAt":null,"jobId":"job_2x9rnkhdemo","plannedRedditActionId":"act_2x9planned","redditAction":null,"startedAt":"2026-06-17T11:45:05.000Z","status":"running","submittedAt":null,"updatedAt":"2026-06-17T11:45:35.000Z"}},"succeeded":{"summary":"Succeeded execution","value":{"actionType":"comment","createdAt":"2026-06-17T11:45:00.000Z","currentStepId":null,"currentStepLabel":null,"executionId":"job_2x9rnkhdemo","failedStepId":null,"failure":null,"finishedAt":"2026-06-17T11:46:10.000Z","jobId":"job_2x9rnkhdemo","plannedRedditActionId":"act_2x9planned","redditAction":{"currentUrl":"https://www.reddit.com/r/SaaS/comments/examplepost/example/examplecomment/","id":"ra_2x9submitted","permalink":"https://www.reddit.com/r/SaaS/comments/examplepost/example/examplecomment/","redditActionId":"ra_2x9submitted","subreddit":"SaaS","submittedAt":"2026-06-17T11:46:08.000Z","type":"comment"},"startedAt":"2026-06-17T11:45:05.000Z","status":"succeeded","submittedAt":"2026-06-17T11:46:08.000Z","updatedAt":"2026-06-17T11:46:10.000Z"}},"verification_required":{"summary":"Verification required","value":{"actionType":"comment","createdAt":"2026-06-17T11:45:00.000Z","currentStepId":null,"currentStepLabel":null,"executionId":"job_2x9rnkhdemo","failedStepId":"submit_comment","failure":{"failedStepId":"submit_comment","message":"Rankhog could not confirm whether Reddit accepted the final submit.","reasonCode":"ambiguous_final_submit","remediation":"Check Reddit manually or refresh the action status before retrying. Do not blindly execute the same write again.","retryable":false},"finishedAt":"2026-06-17T11:46:10.000Z","jobId":"job_2x9rnkhdemo","plannedRedditActionId":"act_2x9planned","redditAction":null,"startedAt":"2026-06-17T11:45:05.000Z","status":"verification_required","submittedAt":null,"updatedAt":"2026-06-17T11:46:10.000Z"}}},"schema":{"type":"object","properties":{"humanNeeded":{"type":"boolean"},"actionType":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"currentStepId":{"type":["string","null"]},"currentStepLabel":{"type":["string","null"]},"executionId":{"type":"string"},"failedStepId":{"type":["string","null"]},"failure":{"type":["object","null"],"properties":{"failedStepId":{"type":["string","null"]},"message":{"type":"string"},"reasonCode":{"type":"string"},"remediation":{"type":"string"},"retryable":{"type":"boolean"}},"required":["failedStepId","message","reasonCode","remediation","retryable"],"additionalProperties":false},"finishedAt":{"type":["string","null"]},"jobId":{"type":"string"},"plannedRedditActionId":{"type":"string"},"redditAction":{"type":["object","null"],"properties":{"currentUrl":{"type":["string","null"]},"id":{"type":"string"},"permalink":{"type":["string","null"]},"redditActionId":{"type":"string"},"subreddit":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"type":{"type":"string"}},"required":["currentUrl","id","permalink","redditActionId","subreddit","submittedAt","type"],"additionalProperties":false},"startedAt":{"type":["string","null"]},"status":{"type":"string","enum":["scheduled","running","succeeded","failed","blocked","cancelled","verification_required"]},"submittedAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["actionType","createdAt","currentStepId","currentStepLabel","executionId","failedStepId","failure","finishedAt","jobId","plannedRedditActionId","redditAction","startedAt","status","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found, agentic_execution_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}},"agentic_execution_not_found":{"summary":"Execution not found","value":{"error":{"code":"agentic_execution_not_found","message":"Reddit action execution not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/reddit-actions/history":{"post":{"description":"List and filter the immutable Reddit action execution ledger, including creation origin, for one paid Rankhog workspace. `actionTypes` filters by several types at once. Each comment, reply and post carries a body preview, `contentKind` (linked the product's site, named it, on topic, or warm-up), the thread title, the latest observed Reddit numbers, its opportunity, and for Discovery finds the Google position when found. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"list_reddit_action_history","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:activity:read"]},{"sessionBearer":[]}],"summary":"List Reddit Action History","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","actionType":"post","limit":50,"origin":"warmup","status":"submitted"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"actionType":{"type":"string","enum":["post","comment","reply","upvote","join_subreddit","research"]},"actionTypes":{"type":"array","items":{"type":"string","enum":["post","comment","reply","upvote","join_subreddit","research"]},"minItems":1,"maxItems":6},"cursor":{"type":"string","minLength":1,"maxLength":1000},"excludeOrigins":{"type":"array","items":{"type":"string","enum":["warmup","strategy","opportunity","agentic","manual_test","unknown","community_support"]},"minItems":1,"maxItems":7},"limit":{"type":"integer","minimum":1,"maximum":100,"default":50},"origin":{"type":"string","enum":["warmup","strategy","opportunity","agentic","manual_test","unknown","community_support"]},"redditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"ra_..."},"status":{"type":"string","enum":["drafted","queued","executing","submitted","verification_required","blocked","observed","failed","cancelled"]}},"required":["managedRedditAccountId","organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"items":[{"actionType":"post","actorUserId":"user_2x9rnkhdemo","bodyPreview":"A useful post body.","contentKind":"warmup","createdAt":"2026-06-17T12:00:00.000Z","discoveryRank":null,"metrics":{"capturedAt":"2026-06-17T12:00:00.000Z","replies":4,"score":23},"opportunityId":"opp_2x9rnkhdemo","threadTitle":"What is one tool you would not give up?","executionMode":"human","executionSource":"opportunity_confirmation","failureCode":null,"failureReason":null,"id":"ract_2x9rnkhdemo","latestVisibilityState":"visible","origin":"warmup","permalink":"https://www.reddit.com/r/SaaS/comments/abc123/example/","redditAccountId":"reddit_2x9rnkhdemo","redditUsername":"rankhog_demo","status":"submitted","subreddit":"SaaS","submittedAt":"2026-06-17T12:00:00.000Z","verificationExhaustedAt":null,"warmupPlanId":"warmup_plan_2x9rnkhdemo"}],"nextCursor":null},"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"actionType":{"type":"string","enum":["post","comment","reply","upvote","join_subreddit","research"]},"actorUserId":{"type":["string","null"]},"bodyPreview":{"type":["string","null"]},"contentKind":{"type":["string","null"],"enum":["linked","named","topic","warmup",null]},"discoveryRank":{"type":["object","null"],"properties":{"position":{"type":"integer"},"query":{"type":["string","null"]}},"required":["position","query"],"additionalProperties":false},"metrics":{"type":["object","null"],"properties":{"capturedAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"replies":{"type":["integer","null"]},"score":{"type":["integer","null"]}},"required":["capturedAt","replies","score"],"additionalProperties":false},"opportunityId":{"type":["string","null"]},"threadTitle":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"executionMode":{"type":"string","enum":["human","autopilot","system","test"]},"executionSource":{"type":["string","null"]},"failureCode":{"type":["string","null"]},"failureReason":{"type":["string","null"]},"id":{"type":"string"},"latestVisibilityState":{"type":"string","enum":["unknown","visible","unavailable","removed","deleted","restored"]},"manualCompletion":{"type":["object","null"],"properties":{"at":{"type":"string","format":"date-time"},"userId":{"type":"string"},"requestId":{"type":"string"},"submissionOutcome":{"type":"string","enum":["unknown","not_started"]}},"required":["at","userId","requestId","submissionOutcome"]},"origin":{"type":"string","enum":["warmup","strategy","opportunity","agentic","manual_test","unknown","community_support"]},"permalink":{"type":["string","null"],"format":"uri"},"redditAccountId":{"type":["string","null"]},"redditUsername":{"type":["string","null"]},"status":{"type":"string","enum":["drafted","queued","executing","submitted","verification_required","blocked","observed","failed","cancelled"]},"subreddit":{"type":["string","null"]},"submittedAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"verificationExhaustedAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"warmupPlanId":{"type":["string","null"]}},"required":["actionType","actorUserId","bodyPreview","contentKind","discoveryRank","metrics","opportunityId","threadTitle","createdAt","executionMode","executionSource","failureCode","failureReason","id","latestVisibilityState","origin","permalink","redditAccountId","redditUsername","status","subreddit","submittedAt","verificationExhaustedAt","warmupPlanId"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","reddit:activity:read"]},"message":"Missing required scope: rankhog:read, reddit:activity:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/reddit-actions/history/get":{"post":{"description":"Inspect one tenant-scoped Reddit action receipt with immutable origin, lifecycle events, observations, and derived performance. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_reddit_action_history","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:activity:read"]},{"sessionBearer":[]}],"summary":"Get Reddit Action History","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","redditActionId":"ract_2x9rnkhdemo"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"redditActionId":{"type":"string","minLength":1,"maxLength":160}},"required":["managedRedditAccountId","organizationId","websiteId","redditActionId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"action":{"actionType":"post","actorUserId":"user_2x9rnkhdemo","backgroundJobId":"job_2x9rnkhdemo","body":"A useful post body.","bodyPreview":"A useful post body.","browserCommandId":"browser_command_demo","contentKind":"warmup","discoveryRank":null,"metrics":{"capturedAt":"2026-06-17T12:00:00.000Z","replies":4,"score":23},"opportunityId":"opp_2x9rnkhdemo","threadTitle":"What is one tool you would not give up?","contentFingerprint":"sha256-demo","createdAt":"2026-06-17T12:00:00.000Z","executionMode":"human","executionSource":"opportunity_confirmation","failureCode":null,"failureReason":null,"id":"ract_2x9rnkhdemo","latestVisibilityState":"visible","nextObservationAt":"2026-06-17T13:00:00.000Z","origin":"warmup","permalink":"https://www.reddit.com/r/SaaS/comments/abc123/example/","redditAccountId":"reddit_2x9rnkhdemo","redditParentThingId":null,"redditRootThingId":"abc123","redditTargetThingId":"abc123","redditThingFullname":"t3_abc123","redditThingId":"abc123","redditUsername":"rankhog_demo","status":"submitted","subreddit":"SaaS","submittedAt":"2026-06-17T12:00:00.000Z","targetUrl":"https://www.reddit.com/r/SaaS/submit/","title":"Example","verificationExhaustedAt":null,"warmupPlanId":"warmup_plan_2x9rnkhdemo"},"events":[],"observations":[],"performanceSummary":{"current":null}},"schema":{"type":"object","properties":{"action":{"type":"object","properties":{"actionType":{"type":"string","enum":["post","comment","reply","upvote","join_subreddit","research"]},"actorUserId":{"type":["string","null"]},"bodyPreview":{"type":["string","null"]},"contentKind":{"type":["string","null"],"enum":["linked","named","topic","warmup",null]},"discoveryRank":{"type":["object","null"],"properties":{"position":{"type":"integer"},"query":{"type":["string","null"]}},"required":["position","query"],"additionalProperties":false},"metrics":{"type":["object","null"],"properties":{"capturedAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"replies":{"type":["integer","null"]},"score":{"type":["integer","null"]}},"required":["capturedAt","replies","score"],"additionalProperties":false},"opportunityId":{"type":["string","null"]},"threadTitle":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"executionMode":{"type":"string","enum":["human","autopilot","system","test"]},"executionSource":{"type":["string","null"]},"failureCode":{"type":["string","null"]},"failureReason":{"type":["string","null"]},"id":{"type":"string"},"latestVisibilityState":{"type":"string","enum":["unknown","visible","unavailable","removed","deleted","restored"]},"manualCompletion":{"type":["object","null"],"properties":{"at":{"type":"string","format":"date-time"},"userId":{"type":"string"},"requestId":{"type":"string"},"submissionOutcome":{"type":"string","enum":["unknown","not_started"]}},"required":["at","userId","requestId","submissionOutcome"]},"origin":{"type":"string","enum":["warmup","strategy","opportunity","agentic","manual_test","unknown","community_support"]},"permalink":{"type":["string","null"],"format":"uri"},"redditAccountId":{"type":["string","null"]},"redditUsername":{"type":["string","null"]},"status":{"type":"string","enum":["drafted","queued","executing","submitted","verification_required","blocked","observed","failed","cancelled"]},"subreddit":{"type":["string","null"]},"submittedAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"verificationExhaustedAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"warmupPlanId":{"type":["string","null"]},"backgroundJobId":{"type":["string","null"]},"body":{"type":["string","null"]},"browserCommandId":{"type":["string","null"]},"contentFingerprint":{"type":["string","null"]},"nextObservationAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"redditParentThingId":{"type":["string","null"]},"redditRootThingId":{"type":["string","null"]},"redditTargetThingId":{"type":["string","null"]},"redditThingFullname":{"type":["string","null"]},"redditThingId":{"type":["string","null"]},"targetUrl":{"type":["string","null"]},"title":{"type":["string","null"]}},"required":["actionType","actorUserId","bodyPreview","contentKind","discoveryRank","metrics","opportunityId","threadTitle","createdAt","executionMode","executionSource","failureCode","failureReason","id","latestVisibilityState","origin","permalink","redditAccountId","redditUsername","status","subreddit","submittedAt","verificationExhaustedAt","warmupPlanId","backgroundJobId","body","browserCommandId","contentFingerprint","nextObservationAt","redditParentThingId","redditRootThingId","redditTargetThingId","redditThingFullname","redditThingId","targetUrl","title"],"additionalProperties":false},"events":{"type":"array","items":{"type":"object","properties":{"eventType":{"type":"string"},"id":{"type":"string"},"metadata":{},"occurredAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"}},"required":["eventType","id","occurredAt"],"additionalProperties":false}},"observations":{"type":"array","items":{"type":"object","properties":{"author":{"type":["string","null"]},"body":{"type":["string","null"]},"captureSource":{"type":["string","null"]},"capturedAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"commentCount":{"type":["integer","null"]},"crosspostCount":{"type":["integer","null"]},"hotRank":{"type":["integer","null"]},"id":{"type":"string"},"newRank":{"type":["integer","null"]},"observationKey":{"type":["string","null"]},"contentFingerprint":{"type":["string","null"]},"rank":{"type":["integer","null"]},"replies":{"type":["integer","null"]},"scheduledCheckpointAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"redditCreatedAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"redditEditedAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"score":{"type":["integer","null"]},"shares":{"type":["integer","null"]},"upvoteRatio":{"type":["number","null"]},"title":{"type":["string","null"]},"views":{"type":["integer","null"]},"visibilityState":{"type":"string"}},"required":["author","body","captureSource","capturedAt","commentCount","crosspostCount","hotRank","id","newRank","observationKey","contentFingerprint","rank","replies","scheduledCheckpointAt","redditCreatedAt","redditEditedAt","score","shares","upvoteRatio","title","views","visibilityState"],"additionalProperties":false}},"performanceSummary":{}},"required":["action","events","observations"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","reddit:activity:read"]},"message":"Missing required scope: rankhog:read, reddit:activity:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/analytics/control-pane-summary":{"post":{"description":"Return the cached Rankhog control-pane analytics summary for a paid workspace. `recap` covers the period's submitted comments, replies and posts, each labelled by what it did for the product, with upvotes, replies, a per-day grid and a per-account breakdown. `recap.siteVisits` is the visits from Reddit that the customer's own analytics (Plausible, Fathom or Datafast, connected in the app) counted in the last 7 days and the 7 before, or null when none is connected; Rankhog adds no tracking links. The recap needs `reddit:activity:read`; without it `recap` is null. Cache policy: cached. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_control_pane_analytics_summary","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Control Pane Analytics Summary","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","period":"week"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"period":{"type":"string","enum":["week","month","all"],"default":"week"}},"required":["managedRedditAccountId","organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"accountPool":{"connectedRedditAccounts":3,"karma":{"current":924,"delta":42,"deltaPercent":4.76,"previous":882}},"generatedAt":"2026-06-17T12:00:00.000Z","googleRankingsFound":{"delta":2,"value":8},"karma":{"current":284,"delta":31,"deltaPercent":12.25,"previous":253},"meaningfulSignals":{"delta":4,"value":19},"opportunitiesFound":{"delta":6,"value":42},"period":"week","periodEndsAt":"2026-06-21T23:59:59.999Z","periodStartsAt":"2026-06-15T00:00:00.000Z","plannedWork":{"generatedAt":"2026-06-17T12:00:00.000Z","needsAttention":2,"plannedActions":{"blocked":1,"comments":6,"dueThisWeek":8,"openTotal":13,"pendingApproval":3,"posts":4,"ready":5,"research":2,"running":1},"workerJobs":{"activeTotal":4,"failedLast24h":1,"running":1,"scheduled":3}},"postsAndComments":{"comments":{"delta":3,"value":11},"posts":{"delta":1,"value":4}},"recap":{"accounts":[{"comments":9,"linked":2,"named":3,"posts":1,"redditAccountId":"racc_01JXAMPLE","redditUsername":"acme_builder","replies":3,"repliesReceived":11,"topic":4,"upvotes":87,"warmup":4}],"activeDays":6,"days":[{"count":2,"day":"2026-06-20"},{"count":3,"day":"2026-06-21"}],"deleted":0,"kinds":{"linked":2,"named":3,"topic":4,"warmup":4},"productName":"Acme Notes","removed":1,"repliesReceived":11,"siteVisits":{"lastReadAt":"2026-06-21T14:00:00.000Z","previousWeek":30,"provider":"plausible","providerLabel":"Plausible","site":"acmenotes.com","status":"connected","statusMessage":null,"thisWeek":42},"since":"2026-06-15","timeZone":"America/New_York","totals":{"comments":9,"posts":1,"replies":3},"upvotes":87,"words":1240}},"schema":{"type":"object","properties":{"manualPublications":{"type":"object","properties":{"posts":{"type":"number"},"comments":{"type":"number"},"score":{"type":"number"},"replies":{"type":"number"}},"required":["posts","comments","score","replies"],"additionalProperties":false},"accountPool":{"type":"object","properties":{"connectedRedditAccounts":{"type":"integer","minimum":0},"karma":{"type":"object","properties":{"current":{"type":["number","null"]},"delta":{"type":["number","null"]},"deltaPercent":{"type":["number","null"]},"previous":{"type":["number","null"]}},"required":["current","delta","deltaPercent","previous"],"additionalProperties":false}},"required":["connectedRedditAccounts","karma"],"additionalProperties":false},"generatedAt":{"type":"string"},"googleRankingsFound":{"type":"object","properties":{"delta":{"type":"number"},"value":{"type":"number"}},"required":["delta","value"],"additionalProperties":false},"karma":{"type":"object","properties":{"current":{"type":["number","null"]},"delta":{"type":["number","null"]},"deltaPercent":{"type":["number","null"]},"previous":{"type":["number","null"]}},"required":["current","delta","deltaPercent","previous"],"additionalProperties":false},"meaningfulSignals":{"type":"object","properties":{"delta":{"type":"number"},"value":{"type":"number"}},"required":["delta","value"],"additionalProperties":false},"opportunitiesFound":{"type":"object","properties":{"delta":{"type":"number"},"value":{"type":"number"}},"required":["delta","value"],"additionalProperties":false},"period":{"type":"string","enum":["week","month","all"]},"periodEndsAt":{"type":"string"},"periodStartsAt":{"type":["string","null"]},"plannedWork":{"type":"object","properties":{"generatedAt":{"type":"string"},"needsAttention":{"type":"integer","minimum":0},"plannedActions":{"type":"object","properties":{"blocked":{"type":"integer","minimum":0},"comments":{"type":"integer","minimum":0},"dueThisWeek":{"type":"integer","minimum":0},"openTotal":{"type":"integer","minimum":0},"pendingApproval":{"type":"integer","minimum":0},"posts":{"type":"integer","minimum":0},"ready":{"type":"integer","minimum":0},"research":{"type":"integer","minimum":0},"running":{"type":"integer","minimum":0}},"required":["blocked","comments","dueThisWeek","openTotal","pendingApproval","posts","ready","research","running"],"additionalProperties":false},"workerJobs":{"type":"object","properties":{"activeTotal":{"type":"integer","minimum":0},"failedLast24h":{"type":"integer","minimum":0},"running":{"type":"integer","minimum":0},"scheduled":{"type":"integer","minimum":0}},"required":["activeTotal","failedLast24h","running","scheduled"],"additionalProperties":false}},"required":["generatedAt","needsAttention","plannedActions","workerJobs"],"additionalProperties":false},"postsAndComments":{"type":"object","properties":{"comments":{"type":"object","properties":{"delta":{"type":"number"},"value":{"type":"number"}},"required":["delta","value"],"additionalProperties":false},"posts":{"type":"object","properties":{"delta":{"type":"number"},"value":{"type":"number"}},"required":["delta","value"],"additionalProperties":false}},"required":["comments","posts"],"additionalProperties":false},"recap":{"type":["object","null"],"properties":{"accounts":{"type":"array","items":{"type":"object","properties":{"linked":{"type":"integer","minimum":0},"named":{"type":"integer","minimum":0},"topic":{"type":"integer","minimum":0},"warmup":{"type":"integer","minimum":0},"comments":{"type":"integer","minimum":0},"posts":{"type":"integer","minimum":0},"redditAccountId":{"type":"string"},"redditUsername":{"type":["string","null"]},"replies":{"type":"integer","minimum":0},"repliesReceived":{"type":"integer","minimum":0},"upvotes":{"type":"integer","minimum":0}},"required":["linked","named","topic","warmup","comments","posts","redditAccountId","redditUsername","replies","repliesReceived","upvotes"],"additionalProperties":false}},"activeDays":{"type":"integer","minimum":0},"days":{"type":"array","items":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"day":{"type":"string"}},"required":["count","day"],"additionalProperties":false}},"deleted":{"type":"integer","minimum":0},"kinds":{"type":"object","properties":{"linked":{"type":"integer","minimum":0},"named":{"type":"integer","minimum":0},"topic":{"type":"integer","minimum":0},"warmup":{"type":"integer","minimum":0}},"required":["linked","named","topic","warmup"],"additionalProperties":false},"productName":{"type":["string","null"]},"removed":{"type":"integer","minimum":0},"repliesReceived":{"type":"integer","minimum":0},"siteVisits":{"type":["object","null"],"properties":{"lastReadAt":{"type":["string","null"],"format":"date-time","example":"2026-06-17T12:00:00.000Z"},"previousWeek":{"type":["integer","null"],"minimum":0},"provider":{"type":"string","enum":["plausible","fathom","datafast"]},"providerLabel":{"type":"string"},"site":{"type":["string","null"]},"status":{"type":"string","enum":["connected","stale","error"]},"statusMessage":{"type":["string","null"]},"thisWeek":{"type":["integer","null"],"minimum":0}},"required":["lastReadAt","previousWeek","provider","providerLabel","site","status","statusMessage","thisWeek"],"additionalProperties":false},"since":{"type":["string","null"]},"timeZone":{"type":"string"},"totals":{"type":"object","properties":{"comments":{"type":"integer","minimum":0},"posts":{"type":"integer","minimum":0},"replies":{"type":"integer","minimum":0}},"required":["comments","posts","replies"],"additionalProperties":false},"upvotes":{"type":"integer","minimum":0},"words":{"type":"integer","minimum":0}},"required":["accounts","activeDays","days","deleted","kinds","productName","removed","repliesReceived","siteVisits","since","timeZone","totals","upvotes","words"],"additionalProperties":false}},"required":["accountPool","generatedAt","googleRankingsFound","karma","meaningfulSignals","opportunitiesFound","period","periodEndsAt","periodStartsAt","plannedWork","postsAndComments"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/jobs/get":{"post":{"description":"Return one authorized background job snapshot. API keys can inspect jobs in their organization. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_job","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Job","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"jobId":"job_2x9rnkhdemo"},"schema":{"type":"object","properties":{"jobId":{"type":"string","minLength":1,"maxLength":160,"example":"job_..."}},"required":["jobId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"job":{"attempt":1,"cancelledAt":null,"createdAt":"2026-06-17T11:45:00.000Z","createdByUserId":"usr_2x9rnkhdemo","creationOrigin":"user","error":null,"failedAt":null,"finishedAt":null,"heartbeatAt":null,"id":"job_2x9rnkhdemo","lane":"browser-control","managedRedditAccountId":"mra_2x9rnkhdemo","maxAttempts":3,"metadata":{"source":"agentic_draft_approval"},"organizationId":"org_2x9rnkhdemo","parentJobId":null,"progress":{"message":"Waiting for Rankhog Desktop.","percent":25},"publicInput":{"plannedRedditActionId":"act_2x9rnkhdemo"},"result":null,"retryOrdinal":0,"retryRootJobId":null,"runCount":0,"scheduledAt":"2026-06-17T11:45:00.000Z","startDeadlineAt":"2026-06-17T12:45:00.000Z","startedAt":null,"state":{"phase":"scheduled"},"status":"scheduled","type":"reddit.execute_planned_action","updatedAt":"2026-06-17T12:00:00.000Z","version":1,"websiteId":"site_2x9rnkhdemo"},"milestones":[{"createdAt":"2026-06-17T11:46:00.000Z","id":"milestone_2x9rnkhdemo","jobId":"job_2x9rnkhdemo","key":"desktop-ready","kind":"customer","message":"Rankhog Desktop is ready.","payload":null}]},"schema":{"type":"object","properties":{"job":{"type":"object","properties":{"attempt":{"type":"integer","minimum":0},"cancelledAt":{"type":["string","null"]},"createdAt":{"type":"string"},"createdByUserId":{"type":["string","null"]},"creationOrigin":{"type":"string","enum":["automatic","worker","webhook","user","human_retry"]},"error":{},"failedAt":{"type":["string","null"]},"finishedAt":{"type":["string","null"]},"heartbeatAt":{"type":["string","null"]},"id":{"type":"string"},"lane":{"type":"string","enum":["default","browser-control","browser-research","outbound"]},"managedRedditAccountId":{"type":["string","null"]},"maxAttempts":{"type":"integer","minimum":1},"metadata":{},"organizationId":{"type":"string"},"parentJobId":{"type":["string","null"]},"progress":{},"publicInput":{},"result":{},"retryOrdinal":{"type":"integer","minimum":0},"retryRootJobId":{"type":["string","null"]},"runCount":{"type":"integer","minimum":0},"scheduledAt":{"type":"string"},"startDeadlineAt":{"type":["string","null"]},"startedAt":{"type":["string","null"]},"state":{},"status":{"type":"string","enum":["scheduled","running","succeeded","failed","cancelled"]},"type":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"integer","minimum":1},"websiteId":{"type":["string","null"]}},"required":["attempt","cancelledAt","createdAt","createdByUserId","failedAt","finishedAt","heartbeatAt","id","lane","managedRedditAccountId","maxAttempts","organizationId","parentJobId","runCount","scheduledAt","startedAt","status","type","updatedAt","version","websiteId"],"additionalProperties":false},"milestones":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"jobId":{"type":"string"},"key":{"type":"string"},"kind":{"type":"string","enum":["checkpoint","ai","tool","customer"]},"message":{"type":"string"},"payload":{}},"required":["createdAt","id","jobId","key","kind","message"],"additionalProperties":false}}},"required":["job","milestones"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_job_not_found.","content":{"application/json":{"examples":{"agentic_job_not_found":{"summary":"Job not found","value":{"error":{"code":"agentic_job_not_found","message":"Job not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/jobs/planned":{"post":{"description":"List the planned jobs of an organization's products, oldest scheduled first: 50 a page by default (limit up to 100), the next page with nextCursor. Job state and metadata stay private, and an error with no code says only that the job hit an internal error. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"list_planned_jobs","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"List Planned Jobs","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"dateFrom":"2026-06-17T00:00:00.000Z","dateTo":"2026-06-24T00:00:00.000Z","limit":50,"organizationId":"org_2x9rnkhdemo","status":["scheduled"],"type":"reddit.execute_planned_action"},"schema":{"type":"object","properties":{"cursor":{"type":"string","minLength":1,"maxLength":512},"dateFrom":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"dateTo":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"status":{"type":"array","items":{"type":"string","enum":["scheduled","queued","running","succeeded","failed","cancelled"]},"maxItems":6},"type":{"type":"string","minLength":1,"maxLength":160},"limit":{"type":"integer","minimum":1,"maximum":100,"default":50}},"required":["organizationId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"items":[{"attempt":1,"cancelledAt":null,"createdAt":"2026-06-17T11:45:00.000Z","createdByUserId":"usr_2x9rnkhdemo","creationOrigin":"user","error":null,"failedAt":null,"finishedAt":null,"heartbeatAt":null,"id":"job_2x9planned","lane":"browser-control","managedRedditAccountId":"mra_2x9rnkhdemo","maxAttempts":3,"metadata":{"source":"agentic_draft_approval"},"organizationId":"org_2x9rnkhdemo","parentJobId":null,"progress":{"message":"Waiting for Rankhog Desktop.","percent":25},"publicInput":{"plannedRedditActionId":"act_2x9rnkhdemo"},"result":null,"retryOrdinal":0,"retryRootJobId":null,"runCount":0,"scheduledAt":"2026-06-17T11:45:00.000Z","startDeadlineAt":"2026-06-17T12:45:00.000Z","startedAt":null,"state":{"phase":"scheduled"},"status":"scheduled","type":"reddit.execute_planned_action","updatedAt":"2026-06-17T12:00:00.000Z","version":1,"websiteId":"site_2x9rnkhdemo"}],"nextCursor":null},"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"attempt":{"type":"integer","minimum":0},"cancelledAt":{"type":["string","null"]},"createdAt":{"type":"string"},"createdByUserId":{"type":["string","null"]},"creationOrigin":{"type":"string","enum":["automatic","worker","webhook","user","human_retry"]},"error":{},"failedAt":{"type":["string","null"]},"finishedAt":{"type":["string","null"]},"heartbeatAt":{"type":["string","null"]},"id":{"type":"string"},"lane":{"type":"string","enum":["default","browser-control","browser-research","outbound"]},"managedRedditAccountId":{"type":["string","null"]},"maxAttempts":{"type":"integer","minimum":1},"metadata":{},"organizationId":{"type":"string"},"parentJobId":{"type":["string","null"]},"progress":{},"publicInput":{},"result":{},"retryOrdinal":{"type":"integer","minimum":0},"retryRootJobId":{"type":["string","null"]},"runCount":{"type":"integer","minimum":0},"scheduledAt":{"type":"string"},"startDeadlineAt":{"type":["string","null"]},"startedAt":{"type":["string","null"]},"state":{},"status":{"type":"string","enum":["scheduled","running","succeeded","failed","cancelled"]},"type":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"integer","minimum":1},"websiteId":{"type":["string","null"]}},"required":["attempt","cancelledAt","createdAt","createdByUserId","failedAt","finishedAt","heartbeatAt","id","lane","managedRedditAccountId","maxAttempts","organizationId","parentJobId","runCount","scheduledAt","startedAt","status","type","updatedAt","version","websiteId"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/opportunities/confirm":{"post":{"description":"Confirm one opportunity's linked Reddit action for execution: approve it, resolve the send schedule (when: suggested, now, or custom with an ISO time), and queue Desktop execution. Works for a reply, a comment and a post. This is the send step, so API keys need reddit:write:dangerous via the automation preset. An account under Rankhog's safety bar is refused with agentic_account_under_safety_bar and its numbers: a warning to give the person, not a wall. When they accept the risk, name that account in executorRedditAccountId and pass acceptAccountRisk: true. The answer's accountRisk says whether the send left past the bar. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"confirm_opportunity_action","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write","reddit:write:dangerous"]},{"sessionBearer":[]}],"summary":"Confirm Opportunity Action","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","expectedDraftRevision":3,"idempotencyKey":"confirm-opp-2026-06-17-001","opportunityId":"opp_2x9opportunity","when":{"mode":"now"}},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"executorRedditAccountId":{"type":["string","null"],"minLength":1,"maxLength":160,"example":"ra_..."},"expectedDraftRevision":{"type":"integer","minimum":0,"description":"The draft revision the caller last saw. A mismatch means the draft changed underneath and the confirm is stale."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"opportunityId":{"type":"string","minLength":1,"maxLength":160,"example":"opp_..."},"acceptAccountRisk":{"type":"boolean","description":"Rankhog holds product posts, comments and replies from an account under its safety bar (still warming up, too new, too little karma, a recent removal, or stats not read yet), because Reddit removes them and can ban the account. A send from such an account is refused with the account's numbers. True sends it anyway from the named account. Pass it only when the person has been told that risk and wants it sent. It changes nothing for an account that passed the bar."},"acceptFlaggedDraft":{"type":"boolean","description":"Rankhog reviews every draft. When the review flagged the current draft, a confirm is refused and the refusal lists the flags. True sends it anyway. Pass it only when the person has read the flags and wants this text sent as it is."},"skipPacing":{"type":"boolean","description":"Rankhog paces each Reddit account (daily and hourly limits, minimum spacing) to lower the risk of a ban. Left out or false keeps that pacing, so a send can go out later than when asks. True sends at when even if pacing would wait. The account owner bears that risk. At most 3 unpaced sends an hour per workspace and caller, shared with execute_reddit_action; a fourth answers 429."},"when":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["now","suggested"]}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"at":{"type":"string","format":"date-time"},"mode":{"type":"string","enum":["custom"]}},"required":["at","mode"],"additionalProperties":false}],"description":"When to send. {\"mode\":\"suggested\"} (the default) takes the paced slot, {\"mode\":\"now\"} sends as soon as pacing allows, {\"mode\":\"custom\",\"at\":\"<ISO 8601 UTC>\"} sends at that instant or the next slot pacing allows. A time that has passed means now. Set skipPacing to send at exactly that time."}},"required":["managedRedditAccountId","organizationId","websiteId","idempotencyKey","opportunityId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"accountRisk":{"accepted":false,"note":"No account risk was accepted for this send. Rankhog only sends unasked from an account that passed its safety bar."},"executedRedditActionId":null,"jobId":"job_2x9rnkhdemo","opportunityId":"opp_2x9opportunity","outcome":"confirmed","pacing":{"note":"The account's pacing applies, so Rankhog may send later than scheduledStartAt. Set skipPacing to true to send at exactly that time, at the account owner's risk. A person can change the account's pacing in Rankhog.","skipped":false},"plannedRedditActionId":"act_2x9planned","schedule":{"delayReason":null,"mode":"now","scheduledStartAt":"2026-06-17T12:00:00.000Z"}},"schema":{"type":"object","properties":{"executedRedditActionId":{"type":["string","null"]},"jobId":{"type":["string","null"]},"opportunityId":{"type":"string"},"accountRisk":{"type":"object","properties":{"accepted":{"type":"boolean"},"note":{"type":"string"}},"required":["accepted","note"],"additionalProperties":false},"outcome":{"type":"string","enum":["already_executed","already_queued","confirmed","rescheduled"]},"pacing":{"type":"object","properties":{"note":{"type":"string"},"skipped":{"type":"boolean"}},"required":["note","skipped"],"additionalProperties":false},"plannedRedditActionId":{"type":"string"},"schedule":{"type":["object","null"],"properties":{"delayReason":{"type":["string","null"]},"mode":{"type":"string"},"scheduledStartAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"}},"required":["delayReason","mode","scheduledStartAt"],"additionalProperties":false}},"required":["executedRedditActionId","jobId","opportunityId","accountRisk","outcome","pacing","plannedRedditActionId","schedule"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required, agentic_plan_feature_locked, agentic_insufficient_credits.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}},"agentic_plan_feature_locked":{"summary":"Not in this plan","value":{"error":{"code":"agentic_plan_feature_locked","details":{"enabled":false,"key":"discovery","max":null,"organizationId":"org_2x9rnkhdemo","planKey":"appsumo_tier_1","unlockPlanKey":"appsumo_tier_2","used":null,"websiteId":"site_2x9rnkhdemo"},"message":"Discovery is not included in your plan. A person with billing access can upgrade the plan in Rankhog."}}},"agentic_insufficient_credits":{"summary":"Insufficient credits","value":{"error":{"code":"agentic_insufficient_credits","details":{"available":0,"organizationId":"org_2x9rnkhdemo","required":1,"resourceKind":"draft","spendable":0,"websiteId":"site_2x9rnkhdemo"},"message":"Not enough credits: this draft needs 1, and 0 can be spent right now. A billing manager can buy credits from the Rankhog billing page."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied, agentic_missing_dangerous_scope.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","reddit:draft:write","reddit:write:dangerous"]},"message":"Missing required scope: rankhog:read, reddit:draft:write, reddit:write:dangerous."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}},"agentic_missing_dangerous_scope":{"summary":"Missing dangerous scope","value":{"error":{"code":"agentic_missing_dangerous_scope","message":"Direct Reddit execution requires reddit:write:dangerous for API keys and OAuth clients."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found, agentic_opportunity_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}},"agentic_opportunity_not_found":{"summary":"Opportunity not found","value":{"error":{"code":"agentic_opportunity_not_found","message":"Opportunity not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_managed_account_inactive, agentic_opportunity_conflict, agentic_thread_has_other_account.","content":{"application/json":{"examples":{"agentic_managed_account_inactive":{"summary":"Managed account inactive","value":{"error":{"code":"agentic_managed_account_inactive","details":{"managedAccountStatus":"setup_required"},"message":"This managed Reddit account must be active before browser-backed agentic tools can run."}}},"agentic_opportunity_conflict":{"summary":"Opportunity already resolved","value":{"error":{"code":"agentic_opportunity_conflict","message":"This opportunity is already resolved."}}},"agentic_thread_has_other_account":{"summary":"Another of your accounts is in this thread","value":{"error":{"code":"agentic_thread_has_other_account","message":"u/quill_mark already wrote in this thread. One of your accounts per thread, so it never looks like one person posing as two. Send it from the account already in the thread, or skip this thread."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The request is syntactically valid but unsafe. Documented codes: agentic_opportunity_action_invalid, agentic_account_under_safety_bar.","content":{"application/json":{"examples":{"agentic_opportunity_action_invalid":{"summary":"Nothing to confirm","value":{"error":{"code":"agentic_opportunity_action_invalid","message":"Research items run on their own. There is nothing to confirm."}}},"agentic_account_under_safety_bar":{"summary":"Account under the safety bar","value":{"error":{"code":"agentic_account_under_safety_bar","details":{"accounts":[{"accountAgeDays":12,"blockedLabel":"Needs more karma","blockedReason":"karma_too_low","commentKarma":9,"id":"ra_demo","redditUsername":"quill_mark","totalKarma":41}],"safetyBar":{"minAccountAgeDays":30,"minCommentKarma":150,"minTotalKarma":300,"removalFreeDays":14}},"message":"Rankhog holds product posts and comments from an account under its safety bar, because Reddit removes them and can ban the account. u/quill_mark: needs more karma (12 days old, 41 karma, 9 of it from comments). To pass the bar an account is out of warm-up and 30 days old with 300 karma, 150 of it from comments, and nothing removed in the last 14 days. Tell the person this risk in plain words. If they accept it, call again with the account they chose as the executor and acceptAccountRisk: true."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/opportunities/cancel":{"post":{"description":"Cancel one opportunity's pending execution and dismiss the opportunity. Running Reddit writes cannot be stopped mid-flight; their approval is rejected so the preflight aborts. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"cancel_opportunity_execution","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Cancel Opportunity Execution","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","idempotencyKey":"cancel-opp-2026-06-17-001","opportunityId":"opp_2x9opportunity","reason":"The thread went stale."},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"opportunityId":{"type":"string","minLength":1,"maxLength":160,"example":"opp_..."},"reason":{"type":"string","maxLength":1000}},"required":["managedRedditAccountId","organizationId","websiteId","idempotencyKey","opportunityId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"cancelledJobIds":["job_2x9rnkhdemo"],"failedJobIds":[],"opportunityId":"opp_2x9opportunity","outcome":"cancelled","runningJobIds":[]},"schema":{"type":"object","properties":{"cancelledJobIds":{"type":"array","items":{"type":"string"}},"failedJobIds":{"type":"array","items":{"type":"string"}},"opportunityId":{"type":"string"},"outcome":{"type":"string","enum":["already_resolved","cancelled"]},"runningJobIds":{"type":"array","items":{"type":"string"}}},"required":["cancelledJobIds","failedJobIds","opportunityId","outcome","runningJobIds"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","reddit:draft:write"]},"message":"Missing required scope: rankhog:read, reddit:draft:write."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found, agentic_opportunity_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}},"agentic_opportunity_not_found":{"summary":"Opportunity not found","value":{"error":{"code":"agentic_opportunity_not_found","message":"Opportunity not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/opportunities/draft":{"post":{"description":"Edit one opportunity's linked Reddit draft, or write its first draft with expectedRevision 0. Typed text takes Reddit's limits: a comment or reply up to 10,000 characters, a post title up to 300 and a post body up to 40,000. Direct saves immediately and costs nothing; audited mode saves first, then checks the saved revision. A conversation with no Reddit action yet refuses. Changes retain the requesting actor attribution. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"update_opportunity_draft","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Update Opportunity Draft","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"idempotencyKey":"edit-draft-1","managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","body":"We switched to a single guided setup step and activation improved. What changed onboarding for you?","expectedRevision":3,"mode":"audit","opportunityId":"opp_2x9opportunity"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"body":{"type":"string","minLength":1,"maxLength":40000,"description":"The text, as Reddit Markdown. Up to 10,000 characters for a comment or reply and 40,000 for a post body (Reddit's own limits); the response names the exact limit when it is over."},"expectedRevision":{"type":"integer","minimum":0,"description":"The draft revision being edited. Serves as the concurrency token; a mismatch rejects the save. Use 0 to write the first draft of an opportunity that has none (a new post or an undrafted find); the save creates revision 1."},"mode":{"type":"string","enum":["audit","direct"],"default":"direct","description":"Direct saves immediately. Audit saves first and then checks that saved revision without changing it."},"opportunityId":{"type":"string","minLength":1,"maxLength":160,"example":"opp_..."},"title":{"type":["string","null"],"minLength":1,"maxLength":300,"description":"A post's title, one line, up to 300 characters. Required for a post; ignored for a comment or reply."}},"required":["managedRedditAccountId","organizationId","websiteId","idempotencyKey","body","expectedRevision","opportunityId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"auditJobId":"job_2x9rnkhdemo","kind":"audit_queued","opportunityId":"opp_2x9opportunity"},"schema":{"type":"object","properties":{"auditJobId":{"type":["string","null"]},"kind":{"type":"string","enum":["audit_queued","saved"]},"opportunityId":{"type":"string"}},"required":["auditJobId","kind","opportunityId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input, agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Draft over Reddit's limit","value":{"error":{"code":"agentic_invalid_input","message":"A comment can have up to 10,000 characters."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","reddit:draft:write"]},"message":"Missing required scope: rankhog:read, reddit:draft:write."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found, agentic_opportunity_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}},"agentic_opportunity_not_found":{"summary":"Opportunity not found","value":{"error":{"code":"agentic_opportunity_not_found","message":"Opportunity not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_draft_conflict.","content":{"application/json":{"examples":{"agentic_draft_conflict":{"summary":"Stale draft revision","value":{"error":{"code":"agentic_draft_conflict","message":"The draft changed since revision 3. Reload and edit again."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"The request is syntactically valid but unsafe. Documented codes: agentic_draft_unsafe.","content":{"application/json":{"examples":{"agentic_draft_unsafe":{"summary":"Draft failed safety checks","value":{"error":{"code":"agentic_draft_unsafe","message":"This warm-up draft has not passed the helpfulness and repetition checks."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/opportunities/draft/audit":{"post":{"description":"Audit a saved draft revision. Returns advisory findings without editing, approving, scheduling, or executing it. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"audit_opportunity_draft","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","reddit:draft:write"]},{"sessionBearer":[]}],"summary":"Audit Opportunity Draft","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","idempotencyKey":"audit-draft-3","opportunityId":"opp_2x9opportunity","expectedRevision":3},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"opportunityId":{"type":"string","minLength":1,"maxLength":160,"example":"opp_..."},"expectedRevision":{"type":"integer","minimum":1}},"required":["managedRedditAccountId","organizationId","websiteId","idempotencyKey","opportunityId","expectedRevision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"auditJobId":"job_2x9rnkhdemo","opportunityId":"opp_2x9opportunity","draftRevision":3},"schema":{"type":"object","properties":{"auditJobId":{"type":"string"},"opportunityId":{"type":"string"},"draftRevision":{"type":"integer","minimum":1}},"required":["auditJobId","opportunityId","draftRevision"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","reddit:draft:write"]},"message":"Missing required scope: rankhog:read, reddit:draft:write."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/warmup/state":{"post":{"description":"Return the workspace warm-up snapshot: active plan progress, the reading days before its first comment (an account writes nothing until it has read for readingDaysBeforeWriting full days: 3, or 14 for an account Rankhog bought), connection-pause reasons, remaining warming time, today's work, per-account warming state, credit requirement, and account health. Connection pauses resume automatically after repair; the credit's 90-day expiry remains unchanged. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_warmup_state","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Warm-up State","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."}},"required":["managedRedditAccountId","organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"activePlan":{"activeSafetyIncident":null,"effectiveStatus":"active","connectionPause":null,"remainingTimeMs":950400000,"dayIndex":3,"durationDays":14,"endsAt":"2026-06-30T09:00:00.000Z","readingDays":5,"readingDaysBeforeWriting":3,"id":"warmup_plan_2x9rnkhdemo","redditAccountId":"reddit_2x9rnkhdemo","startedAt":"2026-06-17T12:00:00.000Z","subreddits":[{"eligibilityStatus":"allowed","subreddit":"askreddit"},{"eligibilityStatus":"allowed","subreddit":"todayilearned"},{"eligibilityStatus":"allowed","subreddit":"nostupidquestions"}],"day":{"comingUp":[{"kind":"comment","notBefore":"2026-06-17T12:00:00.000Z","state":"drafted","subreddit":"todayilearned"},{"kind":"visit","notBefore":"2026-06-17T12:00:00.000Z","state":"planned","subreddit":"technology"}],"comments":{"planned":3,"sent":1},"done":[{"at":"2026-06-17T12:00:00.000Z","count":2,"kind":"votes","subreddit":"askreddit","url":null},{"at":"2026-06-17T12:00:00.000Z","count":1,"kind":"comment","subreddit":"askreddit","url":"https://www.reddit.com/r/AskReddit/comments/1abcde/comment/k1abcde/"}],"skipped":[{"kind":"comment","reason":"no_thread","subreddit":"nostupidquestions"}]},"todayWork":{"comments":3,"commentsReady":2,"commentsWaitingForSources":1,"findingAskReddit":false},"windowElapsed":false},"accounts":[{"effectiveStatus":"active","connectionPause":null,"remainingTimeMs":950400000,"accountAgeDays":245,"commentKarma":412,"creditConsumed":true,"isPrimary":true,"metricsFresh":true,"recommendedDurationDays":14,"redditAccountId":"reddit_2x9rnkhdemo","redditUsername":"rankhog_demo","resumableDays":0,"startCost":25,"totalKarma":1830,"warming":true}],"credits":{"available":212,"cost":25,"spendable":208},"health":{"accountAgeDays":245,"capturedAt":"2026-06-17T12:00:00.000Z","commentKarma":412,"healthStatus":"healthy","karmaDelta7d":36,"posture":"standard","reasons":[],"score":82,"totalKarma":1830}},"schema":{"type":"object","properties":{"activePlan":{"type":["object","null"],"properties":{"activeSafetyIncident":{"type":["object","null"],"properties":{"explanation":{"type":"string"}},"required":["explanation"],"additionalProperties":false},"effectiveStatus":{"type":"string","enum":["active","paused"]},"connectionPause":{"type":["object","null"],"properties":{"outageId":{"type":"string"},"pausedAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"reason":{"type":"string"},"label":{"type":"string"},"remediation":{"type":["string","null"]}},"required":["outageId","pausedAt","reason","label","remediation"],"additionalProperties":false},"remainingTimeMs":{"type":"number","minimum":0},"dayIndex":{"type":"integer","minimum":1},"durationDays":{"type":"integer","minimum":1},"endsAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"readingDays":{"type":"integer","minimum":0},"readingDaysBeforeWriting":{"type":"integer","minimum":0},"id":{"type":"string"},"redditAccountId":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"subreddits":{"type":"array","items":{"type":"object","properties":{"eligibilityStatus":{"type":"string"},"subreddit":{"type":"string"}},"required":["eligibilityStatus","subreddit"],"additionalProperties":false}},"day":{"type":"object","properties":{"comingUp":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["comment","reply","visit"]},"notBefore":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"state":{"type":"string","enum":["drafted","planned","running","waiting_for_thread"]},"subreddit":{"type":["string","null"]}},"required":["kind","notBefore","state","subreddit"],"additionalProperties":false}},"comments":{"type":"object","properties":{"planned":{"type":"integer","minimum":0},"sent":{"type":"integer","minimum":0}},"required":["planned","sent"],"additionalProperties":false},"done":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"count":{"type":"integer","minimum":1},"kind":{"type":"string","enum":["comment","join","reply","visit","votes"]},"subreddit":{"type":["string","null"]},"url":{"type":["string","null"]}},"required":["at","count","kind","subreddit","url"],"additionalProperties":false}},"skipped":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["comment","reply"]},"reason":{"type":"string","enum":["dropped","no_thread"]},"subreddit":{"type":["string","null"]}},"required":["kind","reason","subreddit"],"additionalProperties":false}}},"required":["comingUp","comments","done","skipped"],"additionalProperties":false},"todayWork":{"type":"object","properties":{"comments":{"type":"integer","minimum":0},"commentsReady":{"type":"integer","minimum":0},"commentsWaitingForSources":{"type":"integer","minimum":0},"findingAskReddit":{"type":"boolean"}},"required":["comments","commentsReady","commentsWaitingForSources","findingAskReddit"],"additionalProperties":false},"windowElapsed":{"type":"boolean"}},"required":["activeSafetyIncident","effectiveStatus","connectionPause","remainingTimeMs","dayIndex","durationDays","endsAt","readingDays","readingDaysBeforeWriting","id","redditAccountId","startedAt","subreddits","day","todayWork","windowElapsed"],"additionalProperties":false},"accounts":{"type":"array","items":{"type":"object","properties":{"effectiveStatus":{"type":["string","null"],"enum":["active","paused",null]},"connectionPause":{"type":["object","null"],"properties":{"outageId":{"type":"string"},"pausedAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"reason":{"type":"string"},"label":{"type":"string"},"remediation":{"type":["string","null"]}},"required":["outageId","pausedAt","reason","label","remediation"],"additionalProperties":false},"remainingTimeMs":{"type":["number","null"],"minimum":0},"accountAgeDays":{"type":["integer","null"]},"commentKarma":{"type":["number","null"]},"creditConsumed":{"type":"boolean"},"isPrimary":{"type":"boolean"},"metricsFresh":{"type":"boolean"},"recommendedDurationDays":{"type":["integer","null"]},"redditAccountId":{"type":"string"},"redditUsername":{"type":["string","null"]},"resumableDays":{"type":"integer","minimum":0},"startCost":{"type":"integer","minimum":0,"description":"Credits a 28-day warm-up costs, first time or not. The price climbs by the day from the 7-day minimum to this at 28 days and on to the 60-day price; rounded up."},"totalKarma":{"type":["number","null"]},"warming":{"type":"boolean"}},"required":["effectiveStatus","connectionPause","remainingTimeMs","accountAgeDays","commentKarma","creditConsumed","isPrimary","metricsFresh","recommendedDurationDays","redditAccountId","redditUsername","resumableDays","startCost","totalKarma","warming"],"additionalProperties":false}},"credits":{"type":"object","properties":{"available":{"type":"number"},"cost":{"type":"number"},"spendable":{"type":"number"}},"required":["available","cost","spendable"],"additionalProperties":false},"health":{"type":["object","null"],"properties":{"accountAgeDays":{"type":["number","null"]},"capturedAt":{"type":["string","null"]},"commentKarma":{"type":["number","null"]},"healthStatus":{"type":"string"},"karmaDelta7d":{"type":["number","null"]},"posture":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}},"score":{"type":["number","null"]},"totalKarma":{"type":["number","null"]}},"required":["accountAgeDays","capturedAt","commentKarma","healthStatus","karmaDelta7d","posture","reasons","score","totalKarma"],"additionalProperties":false}},"required":["activePlan","accounts","credits","health"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/reddit-accounts/protection":{"post":{"description":"Return the protection policy and pacing risk that gate Reddit writes for one workspace account, so a blocked execution can be predicted instead of discovered. Changing the policy stays human-only. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_reddit_account_protection","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Reddit Account Protection","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"managedRedditAccountId":"mra_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo","redditAccountId":"reddit_2x9rnkhdemo"},"schema":{"type":"object","properties":{"managedRedditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"mra_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."},"redditAccountId":{"type":"string","minLength":1,"maxLength":160,"example":"ra_...","description":"Defaults to the workspace's managed Reddit account when omitted."}},"required":["managedRedditAccountId","organizationId","websiteId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"protection":{"accountHealth":{"accountAgeDays":245,"commentKarma":412,"healthStatus":"healthy","postKarma":1418,"reasons":[],"score":82,"totalKarma":1830},"risk":{"accountHealthScore":82,"explanations":["Daily budget capped at 6 protection points."],"label":"low","pace":{"daily":12,"hourly":8,"score":14,"spacing":10},"score":18,"vulnerability":18},"settings":{"dailyProtectionBudget":6,"hourlyProtectionBudget":3,"minimumSpacingMinutes":45},"snapshotFreshness":{"ageHours":5,"capturedAt":"2026-06-17T12:00:00.000Z","isMissing":false,"isStale":false,"label":"Captured 5 hours ago"},"summary":"6 points per day, 3 per hour, 45 minute spacing.","warnings":[]},"redditAccountId":"reddit_2x9rnkhdemo","redditUsername":"rankhog_demo"},"schema":{"type":"object","properties":{"protection":{"type":"object","properties":{"accountHealth":{"type":"object","properties":{"accountAgeDays":{"type":["number","null"]},"commentKarma":{"type":["number","null"]},"healthStatus":{"type":"string"},"postKarma":{"type":["number","null"]},"reasons":{"type":"array","items":{"type":"string"}},"score":{"type":"number"},"totalKarma":{"type":["number","null"]}},"required":["accountAgeDays","commentKarma","healthStatus","postKarma","reasons","score","totalKarma"],"additionalProperties":false},"risk":{"type":"object","properties":{"accountHealthScore":{"type":"number"},"explanations":{"type":"array","items":{"type":"string"}},"label":{"type":"string","enum":["low","moderate","high","very_high"]},"pace":{"type":"object","properties":{"daily":{"type":"number"},"hourly":{"type":"number"},"score":{"type":"number"},"spacing":{"type":"number"}},"required":["daily","hourly","score","spacing"],"additionalProperties":false},"score":{"type":"number"},"vulnerability":{"type":"number"}},"required":["accountHealthScore","explanations","label","pace","score","vulnerability"],"additionalProperties":false},"settings":{"type":"object","properties":{"dailyProtectionBudget":{"type":["integer","null"]},"hourlyProtectionBudget":{"type":["integer","null"]},"minimumSpacingMinutes":{"type":["integer","null"]}},"required":["dailyProtectionBudget","hourlyProtectionBudget","minimumSpacingMinutes"],"additionalProperties":false},"snapshotFreshness":{"type":"object","properties":{"ageHours":{"type":["number","null"]},"capturedAt":{"type":["string","null"]},"isMissing":{"type":"boolean"},"isStale":{"type":"boolean"},"label":{"type":"string"}},"required":["ageHours","capturedAt","isMissing","isStale","label"],"additionalProperties":false},"summary":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"required":["accountHealth","risk","settings","snapshotFreshness","summary","warnings"],"additionalProperties":false},"redditAccountId":{"type":"string"},"redditUsername":{"type":["string","null"]}},"required":["protection","redditAccountId","redditUsername"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"A paid Rankhog workspace or enough credits is required. Documented codes: agentic_paid_plan_required.","content":{"application/json":{"examples":{"agentic_paid_plan_required":{"summary":"Paid workspace required","value":{"error":{"code":"agentic_paid_plan_required","details":{"managedAccountBillingStatus":"active","productId":"site_demo","subscriptionStatus":"past_due"},"message":"This product has no active plan or trial yet. Call get_product_setup with productId site_demo: it gives the link where the person starts the 7-day trial. Never pay for them."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member, agentic_website_access_denied.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}},"agentic_website_access_denied":{"summary":"Website access denied","value":{"error":{"code":"agentic_website_access_denied","message":"The authenticated user does not have access to this website."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_managed_account_not_found, agentic_reddit_account_not_found.","content":{"application/json":{"examples":{"agentic_managed_account_not_found":{"summary":"Managed account not found","value":{"error":{"code":"agentic_managed_account_not_found","message":"Managed Reddit account not found."}}},"agentic_reddit_account_not_found":{"summary":"Reddit account not found","value":{"error":{"code":"agentic_reddit_account_not_found","message":"Reddit account not found in this workspace."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/jobs/cancel":{"post":{"description":"Cancel one scheduled Rankhog job the actor is authorized for. Running, finished, failed, and cancelled jobs cannot be cancelled. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"cancel_job","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","jobs:write"]},{"sessionBearer":[]}],"summary":"Cancel Job","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"idempotencyKey":"cancel-job-2026-06-17-001","jobId":"job_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","reason":"Superseded by a manual post."},"schema":{"type":"object","properties":{"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"jobId":{"type":"string","minLength":1,"maxLength":160,"example":"job_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["idempotencyKey","jobId","organizationId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"cancelledAt":"2026-06-17T12:05:00.000Z","id":"job_2x9rnkhdemo","scheduledAt":"2026-06-17T12:00:00.000Z","status":"cancelled","type":"reddit.execute_planned_action"},"schema":{"type":"object","properties":{"cancelledAt":{"type":["string","null"]},"id":{"type":"string","minLength":1,"maxLength":160,"example":"job_..."},"scheduledAt":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"}},"required":["cancelledAt","id","scheduledAt","status","type"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","jobs:write"]},"message":"Missing required scope: rankhog:read, jobs:write."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_job_not_found.","content":{"application/json":{"examples":{"agentic_job_not_found":{"summary":"Job not found","value":{"error":{"code":"agentic_job_not_found","message":"Job not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_job_not_cancellable.","content":{"application/json":{"examples":{"agentic_job_not_cancellable":{"summary":"Job is not scheduled","value":{"error":{"code":"agentic_job_not_cancellable","message":"Only scheduled jobs can be cancelled."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/jobs/reschedule":{"post":{"description":"Move one scheduled Rankhog job to a new time. Only scheduled jobs can be rescheduled. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"reschedule_job","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","jobs:write"]},{"sessionBearer":[]}],"summary":"Reschedule Job","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"idempotencyKey":"reschedule-job-2026-06-17-001","jobId":"job_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo","scheduledAt":"2026-06-18T09:00:00.000Z"},"schema":{"type":"object","properties":{"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"jobId":{"type":"string","minLength":1,"maxLength":160,"example":"job_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"scheduledAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"}},"required":["idempotencyKey","jobId","organizationId","scheduledAt"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"cancelledAt":null,"id":"job_2x9rnkhdemo","scheduledAt":"2026-06-18T09:00:00.000Z","status":"scheduled","type":"reddit.execute_planned_action"},"schema":{"type":"object","properties":{"cancelledAt":{"type":["string","null"]},"id":{"type":"string","minLength":1,"maxLength":160,"example":"job_..."},"scheduledAt":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"}},"required":["cancelledAt","id","scheduledAt","status","type"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","jobs:write"]},"message":"Missing required scope: rankhog:read, jobs:write."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_job_not_found.","content":{"application/json":{"examples":{"agentic_job_not_found":{"summary":"Job not found","value":{"error":{"code":"agentic_job_not_found","message":"Job not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_job_not_reschedulable.","content":{"application/json":{"examples":{"agentic_job_not_reschedulable":{"summary":"Job is not scheduled","value":{"error":{"code":"agentic_job_not_reschedulable","message":"Only scheduled jobs can be rescheduled."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/jobs/retry":{"post":{"description":"Retry one failed Rankhog job as a fresh scheduled run. Only failed jobs can be retried. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"retry_job","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","jobs:write"]},{"sessionBearer":[]}],"summary":"Retry Job","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"idempotencyKey":"retry-job-2026-06-17-001","jobId":"job_2x9rnkhdemo","organizationId":"org_2x9rnkhdemo"},"schema":{"type":"object","properties":{"idempotencyKey":{"type":"string","minLength":1,"maxLength":160,"example":"draft-2026-06-17-001"},"jobId":{"type":"string","minLength":1,"maxLength":160,"example":"job_..."},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."}},"required":["idempotencyKey","jobId","organizationId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"cancelledAt":null,"id":"job_2x9retry","scheduledAt":"2026-06-17T12:10:00.000Z","status":"scheduled","type":"reddit.execute_planned_action"},"schema":{"type":"object","properties":{"cancelledAt":{"type":["string","null"]},"id":{"type":"string","minLength":1,"maxLength":160,"example":"job_..."},"scheduledAt":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"}},"required":["cancelledAt","id","scheduledAt","status","type"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","jobs:write"]},"message":"Missing required scope: rankhog:read, jobs:write."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_job_not_found.","content":{"application/json":{"examples":{"agentic_job_not_found":{"summary":"Job not found","value":{"error":{"code":"agentic_job_not_found","message":"Job not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The request conflicts with workspace state. Documented codes: agentic_job_not_retryable, job_unsafe_external_verification_required.","content":{"application/json":{"examples":{"agentic_job_not_retryable":{"summary":"Job has not failed","value":{"error":{"code":"agentic_job_not_retryable","message":"Only failed jobs can be retried."}}},"job_unsafe_external_verification_required":{"summary":"External outcome requires verification","value":{"error":{"code":"job_unsafe_external_verification_required","message":"Verify the external action through its product workflow before retrying."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/credits/balance":{"post":{"description":"Return the credit balance for an organization, or for one product when websiteId is set: period credits, organization bank, committed and spendable amounts, per-product balances, and the current cost table. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"get_credit_balance","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read"]},{"sessionBearer":[]}],"summary":"Get Credit Balance","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo"},"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."}},"required":["organizationId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"agentLimit":{"limit":100,"remaining":88,"resetsAt":"2026-12-01T00:00:00.000Z","spent":12},"available":212,"bank":{"available":130,"balance":130},"committed":4,"costs":{"comment":0,"draft":1,"draft_regeneration":1,"managed_proxy":11,"managed_proxy_mobile":13,"post":0,"reply":0,"upvote":0,"warmup":25,"warmup_draft":0},"lowBalanceThreshold":20,"monthlyAllotmentPerProduct":100,"organizationId":"org_2x9rnkhdemo","period":{"allotment":100,"available":82,"periodEnd":"2026-07-01T00:00:00.000Z","periodStart":"2026-06-01T00:00:00.000Z","remaining":82,"source":"stripe_subscription"},"products":[{"available":212,"committed":4,"displayName":"Example SaaS","period":{"allotment":100,"available":82,"periodEnd":"2026-07-01T00:00:00.000Z","periodStart":"2026-06-01T00:00:00.000Z","remaining":82,"source":"stripe_subscription"},"spendable":208,"websiteId":"site_2x9rnkhdemo"}],"spendable":208,"websiteId":"site_2x9rnkhdemo"},"schema":{"type":"object","properties":{"agentLimit":{"type":"object","properties":{"limit":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"resetsAt":{"type":"string"},"spent":{"type":"integer","minimum":0}},"required":["limit","remaining","resetsAt","spent"],"additionalProperties":false,"description":"Credits agents may spend this calendar month. Only a person can change the limit."},"available":{"type":"integer","minimum":0},"bank":{"type":"object","properties":{"available":{"type":"integer","minimum":0},"balance":{"type":"integer"}},"required":["available","balance"],"additionalProperties":false},"committed":{"type":"integer","minimum":0},"costs":{"type":"object","properties":{"comment":{"type":"integer","minimum":0},"draft":{"type":"integer","minimum":0},"draft_regeneration":{"type":"integer","minimum":0},"managed_proxy":{"type":"integer","minimum":0},"managed_proxy_mobile":{"type":"integer","minimum":0},"post":{"type":"integer","minimum":0},"reply":{"type":"integer","minimum":0},"upvote":{"type":"integer","minimum":0},"warmup":{"type":"integer","minimum":0},"warmup_draft":{"type":"integer","minimum":0}},"required":["comment","draft","draft_regeneration","managed_proxy","managed_proxy_mobile","post","reply","upvote","warmup","warmup_draft"],"additionalProperties":false},"lowBalanceThreshold":{"type":"integer","minimum":0},"monthlyAllotmentPerProduct":{"type":"integer","minimum":0},"organizationId":{"type":"string"},"period":{"type":["object","null"],"properties":{"allotment":{"type":"integer","minimum":0},"available":{"type":"integer","minimum":0},"periodEnd":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"periodStart":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"remaining":{"type":"integer"},"source":{"type":"string","enum":["stripe_subscription","trial","manual","calendar"]}},"required":["allotment","available","periodEnd","periodStart","remaining","source"],"additionalProperties":false},"products":{"type":"array","items":{"type":"object","properties":{"available":{"type":"integer","minimum":0},"committed":{"type":"integer","minimum":0},"displayName":{"type":"string"},"period":{"type":["object","null"],"properties":{"allotment":{"type":"integer","minimum":0},"available":{"type":"integer","minimum":0},"periodEnd":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"periodStart":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"remaining":{"type":"integer"},"source":{"type":"string","enum":["stripe_subscription","trial","manual","calendar"]}},"required":["allotment","available","periodEnd","periodStart","remaining","source"],"additionalProperties":false},"spendable":{"type":"integer","minimum":0},"websiteId":{"type":"string"}},"required":["available","committed","displayName","period","spendable","websiteId"],"additionalProperties":false}},"spendable":{"type":"integer","minimum":0},"websiteId":{"type":["string","null"]}},"required":["agentLimit","available","bank","committed","costs","lowBalanceThreshold","monthlyAllotmentPerProduct","organizationId","period","products","spendable","websiteId"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read"]},"message":"Missing required scope: rankhog:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"Website not found","value":{"error":{"code":"agentic_website_not_found","message":"Website workspace not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/agent/v1/credits/ledger":{"post":{"description":"Page through the organization credit ledger, newest first: grants, purchases, refunds, adjustments, and every debit with its actor kind and the action, warm-up, purchase, or opportunity it paid for. Member names and user ids are never included. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.","operationId":"list_credit_ledger","security":[{"apiKeyAuth":[]},{"apiKeyHeader":[]},{"mcpOAuth":["rankhog:read","credits:read"]},{"sessionBearer":[]}],"summary":"List Credit Ledger","tags":["agentic"],"requestBody":{"required":true,"content":{"application/json":{"example":{"limit":25,"organizationId":"org_2x9rnkhdemo","websiteId":"site_2x9rnkhdemo"},"schema":{"type":"object","properties":{"cursor":{"type":"string","minLength":1,"maxLength":1000,"description":"Opaque cursor from a previous response's nextCursor. Omit for the first page."},"limit":{"type":"integer","minimum":1,"maximum":100,"default":25},"organizationId":{"type":"string","minLength":1,"maxLength":160,"example":"org_..."},"websiteId":{"type":"string","minLength":1,"maxLength":160,"example":"site_..."}},"required":["organizationId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful JSON response.","content":{"application/json":{"example":{"items":[{"actorKind":"system","bucket":"period","createdAt":"2026-06-17T11:46:08.000Z","entryType":"consumption","id":"cl_2x9consumption","quantity":-1,"reason":null,"reference":{"opportunityId":"opp_2x9opportunity","plannedRedditActionId":"act_2x9planned","purchaseId":null,"redditActionId":"ract_2x9rnkhdemo","warmupCreditId":null},"resourceKind":"comment","websiteId":"site_2x9rnkhdemo"},{"actorKind":"user","bucket":"bank","createdAt":"2026-06-10T09:12:00.000Z","entryType":"purchase","id":"cl_2x9purchase","quantity":250,"reason":null,"reference":{"opportunityId":null,"plannedRedditActionId":null,"purchaseId":"pur_2x9rnkhdemo","redditActionId":null,"warmupCreditId":null},"resourceKind":null,"websiteId":null},{"actorKind":"system","bucket":"period","createdAt":"2026-06-01T00:00:00.000Z","entryType":"period_grant","id":"cl_2x9periodgrant","quantity":100,"reason":null,"reference":{"opportunityId":null,"plannedRedditActionId":null,"purchaseId":null,"redditActionId":null,"warmupCreditId":null},"resourceKind":null,"websiteId":"site_2x9rnkhdemo"}],"nextCursor":"eyJjcmVhdGVkQXQiOiIyMDI2LTA2LTAxVDAwOjAwOjAwLjAwMFoiLCJpZCI6ImNsXzJ4OXBlcmlvZGdyYW50In0"},"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"actorKind":{"type":"string","enum":["user","system","admin","auto_top_up","api_key","migration"]},"bucket":{"type":"string","enum":["period","bank"]},"createdAt":{"type":"string","format":"date-time","example":"2026-06-17T12:00:00.000Z"},"entryType":{"type":"string","enum":["period_grant","purchase","refund","migration","manual_adjustment","consumption","reversal","license_grant","license_revoke"]},"id":{"type":"string"},"quantity":{"type":"integer"},"reason":{"type":["string","null"]},"reference":{"type":"object","properties":{"opportunityId":{"type":["string","null"]},"plannedRedditActionId":{"type":["string","null"]},"purchaseId":{"type":["string","null"]},"redditActionId":{"type":["string","null"]},"warmupCreditId":{"type":["string","null"]}},"required":["opportunityId","plannedRedditActionId","purchaseId","redditActionId","warmupCreditId"],"additionalProperties":false},"resourceKind":{"type":["string","null"],"enum":["warmup","draft","warmup_draft","post","comment","reply","upvote","draft_regeneration","managed_proxy","managed_proxy_mobile",null]},"websiteId":{"type":["string","null"]}},"required":["actorKind","bucket","createdAt","entryType","id","quantity","reason","reference","resourceKind","websiteId"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON or invalid request input. Documented codes: agentic_invalid_input.","content":{"application/json":{"examples":{"agentic_invalid_input":{"summary":"Invalid request body","value":{"error":{"code":"agentic_invalid_input","details":{"issues":[{"code":"invalid_type","message":"Expected string, received undefined.","path":["organizationId"]}]},"message":"Request body did not match the agentic capability schema."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Authentication is required. Documented codes: agentic_unauthorized, agentic_invalid_api_key.","content":{"application/json":{"examples":{"agentic_unauthorized":{"summary":"Missing authentication","value":{"error":{"code":"agentic_unauthorized","message":"Authenticate before using Rankhog agentic capabilities."}}},"agentic_invalid_api_key":{"summary":"Invalid API key","value":{"error":{"code":"agentic_invalid_api_key","message":"The Rankhog API key is invalid, disabled, or expired."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The actor lacks permission or scope. Documented codes: agentic_missing_scope, agentic_api_key_wrong_organization, agentic_not_org_member.","content":{"application/json":{"examples":{"agentic_missing_scope":{"summary":"Missing OAuth scope","value":{"error":{"code":"agentic_missing_scope","details":{"missingScopes":["rankhog:read","credits:read"]},"message":"Missing required scope: rankhog:read, credits:read."}}},"agentic_api_key_wrong_organization":{"summary":"API key organization mismatch","value":{"error":{"code":"agentic_api_key_wrong_organization","message":"This API key cannot access the requested organization."}}},"agentic_not_org_member":{"summary":"Organization access denied","value":{"error":{"code":"agentic_not_org_member","message":"The authenticated user is not a member of this organization."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The requested resource was not found. Documented codes: agentic_website_not_found.","content":{"application/json":{"examples":{"agentic_website_not_found":{"summary":"Website not found","value":{"error":{"code":"agentic_website_not_found","message":"Website workspace not found."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Rankhog could not complete the request. Documented codes: agentic_internal_error.","content":{"application/json":{"examples":{"agentic_internal_error":{"summary":"Unexpected failure","value":{"error":{"code":"agentic_internal_error","message":"Rankhog could not complete this agentic request."}}}},"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}}},"webhooks":{}}