API Reference

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

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

POST

``/`agent`/`v1`/`growth`/`get-credit-purchase-link`

Send

Authorization

Body

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.

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

`apiKeyAuth`

AuthorizationBearer <token>

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

In: `header`

## [Request Body](/content/docs/api/reference/get_credit_purchase_link/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`

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

### 200  `application/json`

### 400  `application/json`

### 401  `application/json`

### 403  `application/json`

### 404  `application/json`

cURL

JavaScript

Go

Python

Java

C#

```
curl -X POST "https://api.rankhog.com/agent/v1/growth/get-credit-purchase-link" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_demo",
    "websiteId": "site_demo"
  }'
```

200400401403404

```
{
  "url": "https://rankhog.com/product/site_demo/billing",
  "requiresHumanCheckout": true
}
```

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

```
{
  "error": {
    "code": "agentic_unauthorized",
    "message": "Authentication is required."
  }
}
```

```
{
  "error": {
    "code": "agentic_missing_scope",
    "message": "The required permission has not been granted."
  }
}
```

```
{
  "error": {
    "code": "agentic_website_not_found",
    "message": "Product not found."
  }
}
```

[Settle an unconfirmed sendPOST\\
\\
Resolve an uncertain submission. Submitted requires an exact permalink that passes account, content, target, and time checks; never blindly resends.](/content/docs/api/reference/resolve_reddit_action_verification/index.html) [Get opportunity evidencePOST\\
\\
Read bounded opportunity product knowledge, source evidence, community rules, or conversation history. Targets are scoped to the opportunity.](/content/docs/api/reference/get_opportunity_evidence/index.html)
