API Reference

# Start Discovery

Start Discovery with an optional product direction. Cache policy: live.

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

POST

``/`agent`/`v1`/`strategy`/`discovery`/`start`

Send

Authorization

Body

Start Discovery with an optional product direction. Cache policy: live. Idempotency: required. Auth modes: api\_key, mcp\_oauth, session\_bearer.

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

`apiKeyAuth`

AuthorizationBearer <token>

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

In: `header`

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

`application/json`

TypeScript Definitions

Use the request body type in TypeScript.

Copy

organizationId\*string

Length`1 <= length <= 160`

websiteId\*string

Length`1 <= length <= 160`

idempotencyKey\*string

Length`1 <= length <= 160`

direction?string\|null

Length`length <= 2000`

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

### 200  `application/json`

### 400  `application/json`

### 401  `application/json`

### 403  `application/json`

### 429  `application/json`

### 500  `application/json`

cURL

JavaScript

Go

Python

Java

C#

```
curl -X POST "https://api.rankhog.com/agent/v1/strategy/discovery/start" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_2x9rnkhdemo",
    "websiteId": "site_2x9rnkhdemo",
    "direction": "Find comparison demand",
    "idempotencyKey": "start-discovery-001"
  }'
```

200400401403429500

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

```
{
  "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_missing_scope",
    "details": {
      "missingScopes": [\
        "rankhog:read",\
        "strategy:write"\
      ]
    },
    "message": "Missing required scope: rankhog:read, strategy:write."
  }
}
```

```
{
  "error": {
    "code": "agentic_write_rate_limited",
    "details": {
      "limit": 10,
      "windowSeconds": 3600
    },
    "message": "Agentic Reddit writes are rate-limited for this workspace."
  }
}
```

```
{
  "error": {
    "code": "agentic_internal_error",
    "message": "Rankhog could not complete this agentic request."
  }
}
```

[Get Radar StatusPOST\\
\\
Report whether Radar is running for this workspace, what is blocking it, and what it has checked, surfaced and triaged recently.](/content/docs/api/reference/get_radar_status/index.html) [Stop DiscoveryPOST\\
\\
Stop Discovery without changing Radar. Cache policy: live. Idempotency: required.](/content/docs/api/reference/stop_discovery/index.html)
