API Reference

API Reference

Find every Rankhog agentic REST API endpoint, with its parameters, request body, responses, and the auth modes it accepts.

Endpoints

Set up a product and its free report

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.

Get product setup and report

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.

Get Desktop setup status

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.

Get product answers

Read the existing product's positioning, audience, and competitors. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.

Update product answers

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.

Get product settings

Read the product's market, posting language, and copilot/autopilot mode. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.

Update the product's market

Set the country and language used by discovery and drafting. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.

Set copilot or autopilot

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.

List Reddit accounts

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.

Steer Discovery

Update Discovery direction without restarting the session. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.

Get a Discovery scan

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.

List Discovery scans

Inspect recent Discovery scan outcomes, including when product billing is inactive. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.

Restart strategy setup

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.

Start editing a draft

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.

Recheck a card's Reddit post

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.

Find another post for a card

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.

Retry preparing a card

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.

Retry a failed send

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.

Take over a card

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.

Choose the account for a card

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.

Choose the subreddit for a post

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.

Get the drafting profile

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.

Update the drafting profile

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.

Find a warm-up comment now

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.

Start a warm-up

Start account warm-up using existing credits and safety checks. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.

Stop a warm-up

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.

Resolve a warm-up safety stop

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.

Settle an unconfirmed send

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.

Get the link to buy credits

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.

Get opportunity evidence

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.

Get Agentic Actor

Return the authenticated Rankhog agentic actor, source, organization, and granted scopes. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.

List Agentic Workspaces

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.

Get Subreddit Rules

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.

Get Subreddit Activity

Return subreddit activity Rankhog already read, without forcing a new read. Cache policy: cached. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.

Get Subreddit Best Time

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.

Get Reddit Browser Status

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.

Open Reddit URL

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.

Get Workspace Strategy

Return the current product-owned Discovery and Radar strategy. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.

Get Radar Coverage

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.

Get Radar Activity

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.

Get Radar Status

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.

Start Discovery

Start Discovery with an optional product direction. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.

Stop Discovery

Stop Discovery without changing Radar. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.

Run Discovery Now

Run the active Discovery session now, subject to its hourly limit. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.

Set Radar Enabled

Enable or disable Radar without changing Discovery. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.

Update Strategy Inputs

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.

List Opportunities

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.

Get Opportunity

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.

Get Planned Reddit Action

Return one planned Reddit action from a paid workspace. Cache policy: live. Idempotency: none. Auth modes: api_key, mcp_oauth, session_bearer.

List Planned Reddit Actions

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.

Get Opportunity Conversation

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.

Post Opportunity Conversation Message

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.

Start Conversation

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.

Create Reddit Post Draft

Create a ready manual Reddit post draft after fetching subreddit rules. Cache policy: live. Idempotency: required. Auth modes: api_key, mcp_oauth, session_bearer.

Create Reddit Action

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.

Execute Reddit Action

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.

Get Reddit Action Execution Status

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.

List Reddit Action History

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.

Get Reddit Action History

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.

Get Control Pane Analytics Summary

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.

Get Job

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.

List Planned Jobs

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.

Confirm Opportunity Action

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.

Cancel Opportunity Execution

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.

Update Opportunity Draft

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.

Audit Opportunity Draft

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.

Get Warm-up State

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.

Get Reddit Account Protection

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.

Cancel Job

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.

Reschedule Job

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.

Retry Job

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.

Get Credit Balance

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.

List Credit Ledger

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.

On this page