List Agentic Workspaces | Rankhog Docs

API Reference

List Agentic Workspaces

List the products this connection can see, with their ids and billing state. A product being set up shows billing.unlocked false.

Server URLhttps://api.rankhog.com/

POST

``/agent/v1/workspaces

Send

Authorization

Body

List the products this connection can see, with their ids and billing state. A product being set up shows billing.unlocked false. When nothing has a plan yet, next says what to do: setup_product for a new person, get_product_setup for the trial link. 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

Response Body

200 application/json

400 application/json

401 application/json

403 application/json

500 application/json

cURL

JavaScript

Go

Python

Java

C#

curl -X POST "https://api.rankhog.com/agent/v1/workspaces" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_2x9rnkhdemo"
  }'

200400401403500

{
  "next": null,
  "workspaces": [\
    {\
      "billing": {\
        "status": "active",\
        "subscriptionId": "sub_2x9rnkhdemo",\
        "unlocked": true\
      },\
      "managedRedditAccount": {\
        "billingStatus": "active",\
        "id": "mra_2x9rnkhdemo",\
        "redditUsername": "rankhog_founder",\
        "status": "active"\
      },\
      "redditAccount": {\
        "browserConnectionStatus": "connected",\
        "healthStatus": "healthy",\
        "id": "ra_2x9rnkhdemo",\
        "redditUsername": "rankhog_founder",\
        "status": "active"\
      },\
      "organization": {\
        "id": "org_2x9rnkhdemo",\
        "name": "Example SaaS",\
        "role": "owner",\
        "slug": "example-saas"\
      },\
      "website": {\
        "displayName": "Example SaaS",\
        "id": "site_2x9rnkhdemo",\
        "slug": "example-saas",\
        "status": "active",\
        "websiteUrl": "https://example-saas.com"\
      }\
    }\
  ]
}
{
  "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

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

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

Get Agentic ActorPOST\ \ Return the authenticated Rankhog agentic actor, source, organization, and granted scopes. Get Subreddit RulesPOST\ \ Fetch verified or live Reddit subreddit rules for a paid Rankhog workspace.