API Reference

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

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

POST

``/`agent`/`v1`/`setup`/`product`

Send

Authorization

Body

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.

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

`mcpOAuth rankhog:read, setup:write`

AuthorizationBearer <token>

In: `header`

Scope: `rankhog:read, setup:write`

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

`application/json`

TypeScript Definitions

Use the request body type in TypeScript.

Copy

audience?string

Length`1 <= length <= 2000`

organizationId?string

Length`1 <= length <= 128`

postingLanguage?string

Length`2 <= length <= 10`

productId?string

Length`1 <= length <= 128`

productName?string

Length`1 <= length <= 120`

timeZone?string

Length`1 <= length <= 64`

websiteUrl\*string

Length`4 <= length <= 500`

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

### 200  `application/json`

### 400  `application/json`

### 403  `application/json`

### 404  `application/json`

### 429  `application/json`

cURL

JavaScript

Go

Python

Java

C#

```
curl -X POST "https://api.rankhog.com/agent/v1/setup/product" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
    "audience": "Founders of small SaaS companies",
    "websiteUrl": "https://supportleaf.example"
  }'
```

200400403404429

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

```
{
  "error": {
    "code": "agentic_invalid_input",
    "message": "Invalid capability input."
  }
}
```

```
{
  "error": {
    "code": "agentic_human_actor_required",
    "message": "This agentic capability requires a human-authenticated Rankhog user."
  }
}
```

```
{
  "error": {
    "code": "agentic_not_found",
    "message": "Website not found."
  }
}
```

```
{
  "error": {
    "code": "agentic_too_many_requests",
    "message": "You have added a lot of websites today. Try again tomorrow."
  }
}
```

[API Reference\\
\\
Find every Rankhog agentic REST API endpoint, with its parameters, request body, responses, and the auth modes it accepts.](/content/docs/api/reference/index.html) [Get product setup and reportPOST\\
\\
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.](/content/docs/api/reference/get_product_setup/index.html)
