---
updatedAt: 2026-09-02T17:35:26.000Z
agentTools:
  projectIndex: https://docs.go.v7labs.com/llms.txt
---

# List hubs

Lists all hubs in the workspace

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Common.APIErrorDetails": {
        "description": "Additional structured error context. Shape varies by error code.\n\n- For conflict errors: contains a `conflicts` array with conflicting resources\n- For other errors: may contain arbitrary error-specific context",
        "nullable": true,
        "oneOf": [
          {
            "$ref": "#/components/schemas/Common.ConflictErrorDetails"
          },
          {
            "additionalProperties": true,
            "description": "Generic error details for non-conflict errors",
            "type": "object"
          }
        ],
        "title": "Common.APIErrorDetails"
      },
      "Pagination.Cursor": {
        "description": "A base64 encoded value representing a cursor, or an element ID if applicable",
        "example": "ZXhhbXBsZQo=",
        "nullable": true,
        "title": "Pagination.Cursor",
        "type": "string"
      },
      "Hubs.HubErrorCounts": {
        "additionalProperties": false,
        "description": "Counts of hub files with facet errors by category.\nUpdated when the hub index is recomputed.\n",
        "properties": {
          "content": {
            "description": "Errors on the transcript facet.\nData used internally for citations/grounding, as well as in search.\n",
            "minimum": 0,
            "type": "integer"
          },
          "displayable": {
            "description": "Errors on the displayable facet. Used for file previews.",
            "minimum": 0,
            "type": "integer"
          },
          "embeddings": {
            "description": "Errors on the embeddings facet, used for hub search and chat",
            "minimum": 0,
            "type": "integer"
          },
          "ocr": {
            "description": "Errors on the bounding boxes facet, for ocr_pages and ocr_storage_key",
            "minimum": 0,
            "type": "integer"
          },
          "summary": {
            "description": "Errors on summary facets (full and prefix summary).\nUsed in search and to provide a quick insight into the contents of the file\n",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "ocr",
          "content",
          "embeddings",
          "summary",
          "displayable"
        ],
        "title": "Hubs.HubErrorCounts",
        "type": "object"
      },
      "Pagination.OrderDirections": {
        "description": "List of order directions for the fields in `order_by`. The `*_nulls_last` / `*_nulls_first` variants control where empty values are placed.",
        "example": [
          "desc_nulls_last",
          "asc"
        ],
        "items": {
          "enum": [
            "asc",
            "desc",
            "asc_nulls_last",
            "asc_nulls_first",
            "desc_nulls_last",
            "desc_nulls_first"
          ],
          "type": "string"
        },
        "nullable": true,
        "title": "Pagination.OrderDirections",
        "type": "array"
      },
      "Common.ConflictErrorDetails": {
        "additionalProperties": false,
        "description": "Details for conflict errors",
        "properties": {
          "conflicts": {
            "description": "List of conflicting resources",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "conflicts"
        ],
        "title": "Common.ConflictErrorDetails",
        "type": "object"
      },
      "Users.PermissionCondition": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/Users.ConditionCreatedByUser"
          },
          {
            "$ref": "#/components/schemas/Users.ConditionManagedRole"
          }
        ],
        "title": "Users.PermissionCondition"
      },
      "Hubs.HubsResponse": {
        "additionalProperties": false,
        "description": "Response containing a list of hubs",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/Hubs.Hub"
            },
            "type": "array"
          },
          "metadata": {
            "$ref": "#/components/schemas/Pagination.PageMetadata"
          }
        },
        "required": [
          "data",
          "metadata"
        ],
        "title": "Hubs.HubsResponse",
        "type": "object"
      },
      "Hubs.HasErrorsHubs": {
        "description": "When true, only hubs with at least one facet error count above zero are returned. When false, only hubs where all facet error counts are zero. When omitted, error counts are not used to filter.",
        "nullable": true,
        "title": "Hubs.HasErrorsHubs",
        "type": "boolean"
      },
      "Pagination.PageSize": {
        "description": "The page size or limit of the query. Set to the `first` or `last` parameter when using cursor-based pagination.",
        "example": 50,
        "minimum": 1,
        "title": "Pagination.PageSize",
        "type": "integer"
      },
      "Common.UUID": {
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "Common.UUID",
        "type": "string"
      },
      "Hubs.ContextIndexLenses": {
        "additionalProperties": false,
        "description": "Guidance text that the Hub's owners give to the context index, by slot. It shapes emphasis and tone; it cannot change output formats or citation rules.",
        "properties": {
          "summary": {
            "description": "Guidance for entity summaries, or null when the Hub has none",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "summary"
        ],
        "title": "Hubs.ContextIndexLenses",
        "type": "object"
      },
      "Users.ConditionManagedRole": {
        "additionalProperties": false,
        "description": "A condition restricting operations based on a role of a user that this operation relates to. Only listed roles can be affected by the operation.\n",
        "properties": {
          "any_of": {
            "description": "List of roles that can be affected by the operation",
            "items": {
              "enum": [
                "owner",
                "admin",
                "editor",
                "contributor",
                "reviewer",
                "reader",
                "worker"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "permission": {
            "enum": [
              "invite_members",
              "add_members",
              "update_members",
              "remove_members"
            ],
            "type": "string"
          }
        },
        "required": [
          "permission",
          "any_of"
        ],
        "title": "Users.ConditionManagedRole",
        "type": "object"
      },
      "Pagination.PageMetadata": {
        "additionalProperties": false,
        "description": "Metadata returns for paginated requests. The values set depend on the type of pagination used",
        "properties": {
          "current_offset": {
            "$ref": "#/components/schemas/Pagination.Offset"
          },
          "end_cursor": {
            "$ref": "#/components/schemas/Pagination.Cursor"
          },
          "has_next_page": {
            "example": true,
            "type": "boolean"
          },
          "has_previous_page": {
            "example": false,
            "type": "boolean"
          },
          "page_size": {
            "$ref": "#/components/schemas/Pagination.PageSize"
          },
          "start_cursor": {
            "$ref": "#/components/schemas/Pagination.Cursor"
          },
          "total_count": {
            "$ref": "#/components/schemas/Pagination.TotalCount"
          }
        },
        "required": [
          "current_offset",
          "page_size",
          "start_cursor",
          "end_cursor",
          "has_next_page",
          "has_previous_page",
          "total_count"
        ],
        "title": "Pagination.PageMetadata",
        "type": "object"
      },
      "Pagination.TotalCount": {
        "description": "The total count of records for the given query. Always `null` when using cursor-based  pagination.",
        "example": 50,
        "nullable": true,
        "title": "Pagination.TotalCount",
        "type": "integer"
      },
      "Hubs.IncludeMembershipInfo": {
        "default": false,
        "description": "Include membership information for the calling user",
        "title": "Hubs.IncludeMembershipInfo",
        "type": "boolean"
      },
      "Pagination.Offset": {
        "description": "The offset to use when paginating records",
        "example": 50,
        "minimum": 0,
        "nullable": true,
        "title": "Pagination.Offset",
        "type": "integer"
      },
      "Hubs.Hub": {
        "additionalProperties": false,
        "description": "A hub represents a collection of indexed files",
        "properties": {
          "context_index_enabled": {
            "description": "Whether the context index processes and serves the Hub's files",
            "type": "boolean"
          },
          "context_index_lenses": {
            "$ref": "#/components/schemas/Hubs.ContextIndexLenses"
          },
          "created_at": {
            "$ref": "#/components/schemas/Common.DateTime"
          },
          "description": {
            "description": "Description of the hub",
            "nullable": true,
            "type": "string"
          },
          "error_counts": {
            "$ref": "#/components/schemas/Hubs.HubErrorCounts"
          },
          "hub_type": {
            "description": "Hub classification derived from backing relationships",
            "enum": [
              "standard",
              "knowledge_graph"
            ],
            "type": "string"
          },
          "id": {
            "$ref": "#/components/schemas/Common.UUID"
          },
          "index_status": {
            "enum": [
              "stale",
              "recomputing",
              "ready"
            ],
            "type": "string"
          },
          "membership_info": {
            "$ref": "#/components/schemas/Projects.MembershipInfo"
          },
          "name": {
            "description": "Name of the hub",
            "type": "string"
          },
          "summary": {
            "description": "Summary of the hub",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "description": "Resource type",
            "enum": [
              "hub"
            ],
            "type": "string"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Common.DateTime"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Common.UUID"
          }
        },
        "required": [
          "id",
          "type",
          "hub_type",
          "name",
          "index_status",
          "error_counts",
          "context_index_enabled",
          "context_index_lenses",
          "created_at",
          "updated_at",
          "workspace_id"
        ],
        "title": "Hubs.Hub",
        "type": "object"
      },
      "Projects.MembershipInfo": {
        "additionalProperties": false,
        "description": "Project's membership information for the calling user",
        "nullable": true,
        "properties": {
          "conditions": {
            "description": "Additional conditions for the permissions. If condition is present for any given permission, the permission is only effective if all the conditions are met.\n",
            "items": {
              "$ref": "#/components/schemas/Users.PermissionCondition"
            },
            "type": "array"
          },
          "permissions": {
            "items": {
              "enum": [
                "create_own_api_keys",
                "create_projects",
                "update_projects",
                "delete_projects",
                "update_workspaces",
                "delete_workspaces",
                "invite_members",
                "add_members",
                "update_members",
                "remove_members",
                "update_entities",
                "create_entities",
                "run_playbook",
                "create_assigned_entities",
                "delete_entities",
                "recalculate_entities",
                "create_hubs",
                "update_hubs",
                "delete_hubs",
                "read_hubs",
                "read_hub_files",
                "update_hub_files",
                "delete_hub_files",
                "create_data_stores",
                "update_data_stores",
                "delete_data_stores",
                "manage_data_stores",
                "manage_workload_grants",
                "write_data_stores",
                "read_data_stores",
                "manage_agent_skills",
                "manage_integrations",
                "manage_personal_integrations",
                "manage_inbound_triggers",
                "manage_properties",
                "manage_views",
                "manage_triggers",
                "manage_billing",
                "manage_tool_integrations",
                "manage_project_exports",
                "manage_playbook_email",
                "create_playbook",
                "update_playbook",
                "delete_playbook",
                "read_playbook",
                "read_agent_skills",
                "read_others",
                "revoke_links",
                "use_cases",
                "use_apps",
                "use_llm_chat",
                "use_graphql",
                "create_folders",
                "update_folders",
                "delete_folders",
                "create_files",
                "set_access_type",
                "manage_service_accounts",
                "update_field_reviews",
                "manage_skills",
                "manage_sso",
                "manage_token_reports",
                "manage_slide_decks",
                "manage_organization",
                "read_organization_reports"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "role": {
            "enum": [
              "owner",
              "admin",
              "editor",
              "contributor",
              "reviewer",
              "reader",
              "worker"
            ],
            "type": "string"
          }
        },
        "required": [
          "role",
          "permissions",
          "conditions"
        ],
        "title": "Projects.MembershipInfo",
        "type": "object"
      },
      "Pagination.Last": {
        "description": "The number of records to return for before the provided cursor; used in combination with `before`",
        "example": 50,
        "nullable": true,
        "title": "Pagination.Last",
        "type": "integer"
      },
      "Hubs.ListHubsOrderBy": {
        "description": "List of field names to order by",
        "example": [
          "name"
        ],
        "items": {
          "enum": [
            "id",
            "name",
            "updated_at"
          ],
          "type": "string"
        },
        "nullable": true,
        "title": "Hubs.ListHubsOrderBy",
        "type": "array"
      },
      "Common.DateTime": {
        "description": "DateTime in RFC3339 format",
        "example": "2020-01-20T14:00:00Z",
        "format": "date-time",
        "title": "Common.DateTime",
        "type": "string"
      },
      "Pagination.First": {
        "description": "The number of records to return after the provided cursor; used in combination with `after`",
        "example": 50,
        "nullable": true,
        "title": "Pagination.First",
        "type": "integer"
      },
      "Common.APIError": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "example": "bad_request",
            "type": "string"
          },
          "details": {
            "$ref": "#/components/schemas/Common.APIErrorDetails"
          },
          "message": {
            "example": "Bad Request",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "Common.APIError",
        "type": "object"
      },
      "Common.NullableString": {
        "nullable": true,
        "title": "Common.NullableString",
        "type": "string"
      },
      "Pagination.Limit": {
        "description": "The maximum number of records to return when using `offset` pagination",
        "example": 50,
        "minimum": 0,
        "nullable": true,
        "title": "Pagination.Limit",
        "type": "integer"
      },
      "Users.ConditionCreatedByUser": {
        "additionalProperties": false,
        "description": "A condition restricting operations to resources created by the current user.\nThe field specifies which resource field contains the creator's user ID.\n",
        "properties": {
          "field": {
            "description": "The field on the resource that must match the current user's ID",
            "type": "string"
          },
          "permission": {
            "enum": [
              "revoke_links"
            ],
            "type": "string"
          }
        },
        "required": [
          "permission",
          "field"
        ],
        "title": "Users.ConditionCreatedByUser",
        "type": "object"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "in": "header",
        "name": "X-API-KEY",
        "type": "apiKey"
      },
      "BearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "V7 Go API",
    "version": "0.1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/api/workspaces/{workspace_id}/hubs": {
      "get": {
        "callbacks": {},
        "description": "Lists all hubs in the workspace",
        "operationId": "hub-list",
        "parameters": [
          {
            "description": "",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Common.UUID"
            }
          },
          {
            "description": "Include membership information for the calling user",
            "in": "query",
            "name": "include_membership_info",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Hubs.IncludeMembershipInfo"
            }
          },
          {
            "description": "When true, only hubs with at least one facet error count above zero are returned. When false, only hubs where all facet error counts are zero. When omitted, error counts are not used to filter.",
            "in": "query",
            "name": "has_errors",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Hubs.HasErrorsHubs"
            }
          },
          {
            "description": "",
            "in": "query",
            "name": "name_contains",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Common.NullableString"
            }
          },
          {
            "description": "List of field names to order by",
            "in": "query",
            "name": "order_by",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Hubs.ListHubsOrderBy"
            }
          },
          {
            "description": "List of order directions for the fields in `order_by`. The `*_nulls_last` / `*_nulls_first` variants control where empty values are placed.",
            "in": "query",
            "name": "order_directions",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.OrderDirections"
            }
          },
          {
            "description": "The maximum number of records to return when using `offset` pagination",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.Limit"
            }
          },
          {
            "description": "The offset to use when paginating records",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.Offset"
            }
          },
          {
            "description": "The number of records to return after the provided cursor; used in combination with `after`",
            "in": "query",
            "name": "first",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.First"
            }
          },
          {
            "description": "The number of records to return for before the provided cursor; used in combination with `before`",
            "in": "query",
            "name": "last",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.Last"
            }
          },
          {
            "description": "A base64 encoded value representing a cursor, or an element ID if applicable",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.Cursor"
            }
          },
          {
            "description": "A base64 encoded value representing a cursor, or an element ID if applicable",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Pagination.Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hubs.HubsResponse"
                }
              }
            },
            "description": "Hubs.HubsResponse"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          }
        },
        "summary": "List hubs",
        "tags": [
          "Hubs"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "description": "EU",
      "url": "https://go.v7labs.com",
      "variables": {}
    },
    {
      "description": "US",
      "url": "https://go.us.v7labs.com",
      "variables": {}
    },
    {
      "description": "UAE",
      "url": "https://go.uae.v7labs.com",
      "variables": {}
    }
  ]
}
```