API Reference

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...

POST
/agent/v1/warmup/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.

Authorization

AuthorizationBearer <token>

Rankhog organization API key sent as Authorization: Bearer rhog_....

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/agent/v1/warmup/state" \  -H "Content-Type: application/json" \  -d '{    "managedRedditAccountId": "mra_2x9rnkhdemo",    "organizationId": "org_2x9rnkhdemo",    "websiteId": "site_2x9rnkhdemo"  }'
{  "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  }}
{  "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."  }}

{  "error": {    "code": "agentic_unauthorized",    "message": "Authenticate before using Rankhog agentic capabilities."  }}

{  "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."  }}

{  "error": {    "code": "agentic_missing_scope",    "details": {      "missingScopes": [        "rankhog:read"      ]    },    "message": "Missing required scope: rankhog:read."  }}

{  "error": {    "code": "agentic_managed_account_not_found",    "message": "Managed Reddit account not found."  }}
{  "error": {    "code": "agentic_internal_error",    "message": "Rankhog could not complete this agentic request."  }}