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

# Get organisations hubs

> Retrieves the hubs belonging to a given organisation.




## OpenAPI

````yaml get /organisations/{organisationId}/hubs
openapi: 3.0.3
info:
  title: Switchboard API
  description: >-
    The Switchboard API provides users the ability to manage their Apps,
    Integrations and Workflows
  version: 0.0.1-alpha.0
servers:
  - url: https://platform.versori.com/api/switchboard/v1alpha1/
    description: Production server
  - url: http://localhost:8080/v1alpha1/
    description: Localhost
security:
  - apiKey: []
paths:
  /organisations/{organisationId}/hubs:
    get:
      tags:
        - hubs
      description: |
        Retrieves the hubs belonging to a given organisation.
      operationId: GetHubs
      parameters:
        - name: organisationId
          in: path
          required: true
          schema:
            type: string
        - name: search
          in: query
          required: false
          schema:
            type: string
        - name: first
          in: query
          required: false
          schema:
            type: integer
            default: 20
        - name: before
          in: query
          required: false
          schema:
            type: string
        - name: after
          in: query
          required: false
          schema:
            type: string
        - name: sort
          in: query
          required: false
          examples:
            single column ascending:
              summary: Single column search in ascending order
              value: id:asc
            single column descending:
              summary: Single column search in descending order
              value: name:desc
            multiple columns:
              summary: Multiple column search
              value: name:asc,id:desc
          schema:
            type: string
            pattern: ^([^:,]+:[^:,]+)(,[^:,]+:[^:,]+)*$
      responses:
        '200':
          $ref: '#/components/responses/GetHubsResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  responses:
    GetHubsResponse:
      description: A paginated set of Hubs
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/HubsPage'
    ErrorResponse:
      description: The default error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    HubsPage:
      type: object
      allOf:
        - $ref: '#/components/schemas/PageInfo'
        - type: object
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/Hub'
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        extensions:
          type: object
      required:
        - code
        - message
    PageInfo:
      type: object
      properties:
        totalCount:
          type: integer
        next:
          type: string
        prev:
          type: string
      required:
        - totalCount
    Hub:
      type: object
      properties:
        id:
          type: string
        orgId:
          type: string
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        deletedAt:
          type: string
          format: date-time
      required:
        - id
        - orgId
        - name
        - createdAt
        - updatedAt
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization

````