API Reference

# List Opportunities

List actionable Rankhog opportunities for a paid workspace, including timing, blockers, compact evidence, and linked execution state.

Server URL`https://api.rankhog.com/`

POST

``/`agent`/`v1`/`opportunities`

Send

Authorization

Body

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.

## [Authorization](/content/docs/api/reference/list_opportunities/index.html#authorization)

`apiKeyAuth`

AuthorizationBearer <token>

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

In: `header`

## [Request Body](/content/docs/api/reference/list_opportunities/index.html#request-body)

`application/json`

TypeScript Definitions

Use the request body type in TypeScript.

Copy

managedRedditAccountId?string\|null

Default`null`Length`1 <= length <= 160`

organizationId\*string

Length`1 <= length <= 160`

websiteId\*string

Length`1 <= length <= 160`

radarFoundOn?string

Only Radar opportunities created on this date (YYYY-MM-DD) in the product's Radar reporting timezone.

Format`date`

warmupTarget?boolean

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?boolean

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?string\|null

Length`length <= 2048`

includeRecent?boolean

Default`true`

limit?integer

Default`50`Range`1 <= value <= 100`

## [Response Body](/content/docs/api/reference/list_opportunities/index.html#response-body)

### 200  `application/json`

### 400  `application/json`

### 401  `application/json`

### 402  `application/json`

### 403  `application/json`

### 404  `application/json`

### 500  `application/json`

cURL

JavaScript

Go

Python

Java

C#

```
curl -X POST "https://api.rankhog.com/agent/v1/opportunities" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
    "managedRedditAccountId": "mra_2x9rnkhdemo",
    "organizationId": "org_2x9rnkhdemo",
    "websiteId": "site_2x9rnkhdemo",
    "includeRecent": true,
    "limit": 50
  }'
```

200400401402403404500

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

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

### Missing authentication

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

### Invalid API key

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

### Missing OAuth scope

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

### API key organization mismatch

### Organization access denied

### Website access denied

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

[Update Strategy InputsPOST\\
\\
Replace shared strategy keywords and watched Radar communities. A community Rankhog has a guide for starts watching immediately; any other is saved but...](/content/docs/api/reference/update_strategy_inputs/index.html) [Get OpportunityPOST\\
\\
Return one Rankhog opportunity with public-safe evidence, blocker remediation, timing, outcome, and linked action summary.](/content/docs/api/reference/get_opportunity/index.html)
