> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tryhikoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Workspaces With Websites

> Workspaces the user belongs to, each with its websites nested inside.

One-shot discovery: the caller gets the full tree (workspaces → websites
+ active-subscription flag) in a single call so an agent can pick the
right website without follow-up requests.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/public/workspaces/with-websites
openapi: 3.1.0
info:
  title: Hikoo REST API
  description: >-
    Programmatic access to your Hikoo data: citations, prompts, competitors,
    audits, health and more. Authenticate with a personal API key
    (`Authorization: Bearer <key>`) created from the dashboard settings.
  version: 1.0.0
servers:
  - url: https://api.tryhikoo.com
security:
  - apiKey: []
paths:
  /api/v1/public/workspaces/with-websites:
    get:
      tags:
        - Workspaces
      summary: List Workspaces With Websites
      description: |-
        Workspaces the user belongs to, each with its websites nested inside.

        One-shot discovery: the caller gets the full tree (workspaces → websites
        + active-subscription flag) in a single call so an agent can pick the
        right website without follow-up requests.
      operationId: list_workspaces_with_websites_api_v1_public_workspaces_with_websites_get
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Bearer <api_key>
            title: Authorization
          description: Bearer <api_key>
        - name: X-MCP-Secret
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Mcp-Secret
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WorkspaceWithWebsites'
                title: >-
                  Response List Workspaces With Websites Api V1 Public
                  Workspaces With Websites Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WorkspaceWithWebsites:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        role:
          $ref: '#/components/schemas/WorkspaceRole'
        websites:
          items:
            $ref: '#/components/schemas/WorkspaceWebsiteItem'
          type: array
          title: Websites
      type: object
      required:
        - id
        - name
        - role
        - websites
      title: WorkspaceWithWebsites
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WorkspaceRole:
      type: string
      enum:
        - owner
        - admin
        - member
      title: WorkspaceRole
    WorkspaceWebsiteItem:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        url:
          type: string
          title: Url
        has_active_subscription:
          type: boolean
          title: Has Active Subscription
        plan_tier:
          anyOf:
            - type: string
            - type: 'null'
          title: Plan Tier
      type: object
      required:
        - id
        - name
        - url
        - has_active_subscription
      title: WorkspaceWebsiteItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Personal API key created in the dashboard (Settings > API keys).

````