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 URL`https://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](/content/docs/api/reference/list_agentic_workspaces/index.html#authorization)

`apiKeyAuth`

AuthorizationBearer <token>

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

In: `header`

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

`application/json`

TypeScript Definitions

Use the request body type in TypeScript.

Copy

organizationId?string

Length`1 <= length <= 160`

## [Response Body](/content/docs/api/reference/list_agentic_workspaces/index.html#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.](/content/docs/api/reference/get_agentic_me/index.html) [Get Subreddit RulesPOST\\
\\
Fetch verified or live Reddit subreddit rules for a paid Rankhog workspace.](/content/docs/api/reference/get_subreddit_rules/index.html)
