---
agentTools:
  projectIndex: https://searchie.readme.io/llms.txt
---

# Get a list of hubs

Returns a paginated list of hubs.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Searchie API Documentation",
    "description": "Searchie API Documentation",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://app.searchie.io/api/v2",
      "description": "API Server"
    }
  ],
  "paths": {
    "/hubs": {
      "get": {
        "tags": [
          "Hubs"
        ],
        "summary": "Get a list of hubs",
        "description": "Returns a paginated list of hubs.",
        "operationId": "getHubs",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "description": "Search query for hub titles",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "description": "Number of items per page",
            "schema": {
              "type": "integer",
              "default": 25
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Related resources to include (e.g., audiencesCount, pagesCount)",
            "schema": {
              "type": "string",
              "example": ""
            }
          },
          {
            "name": "append",
            "in": "query",
            "description": "Additional attributes to append to each hub (e.g., custom_logo_url, custom_login_logo_url, social_image_url, favicon_url, dashboard, onboarding)",
            "schema": {
              "type": "string",
              "example": ""
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sort the results by specific fields (e.g., created_at,id,title,updated_at)",
            "schema": {
              "type": "string",
              "example": ""
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/HubResource"
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Unprocessable Entity"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "apiAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "HubResource": {
        "title": "Hub Resource",
        "description": "Hub resource schema",
        "properties": {
          "id": {
            "type": "integer"
          },
          "hash": {
            "type": "string"
          },
          "team_id": {
            "type": "integer"
          },
          "user_id": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "meta": {
            "properties": {
              "onboard": {
                "properties": {
                  "checked_set_privacy": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "apiAuth": {
        "type": "apiKey",
        "description": "Login with email and password to get the authentication token",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Hubs"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 130,
      "2": 251,
      "3": 234,
      "4": 150,
      "5": 84,
      "6": 125,
      "7": 0,
      "8": 113,
      "9": 220,
      "10": 23,
      "11": 106
    }
  }
}
```