Get the link to buy credits | Rankhog Docs
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 URLhttps://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
apiKeyAuth
AuthorizationBearer
Rankhog organization API key sent as Authorization: Bearer rhog_....
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Copy
organizationId*string
Length1 <= length <= 160
websiteId*string
Length1 <= length <= 160
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. Get opportunity evidencePOST\ \ Read bounded opportunity product knowledge, source evidence, community rules, or conversation history. Targets are scoped to the opportunity.