---
title: "Get Hub Resources"
method: POST
path: "/v1/hub/{hub_id}/resources"
tags: ["Hub"]
---

# Get Hub Resources

`POST /v1/hub/{hub_id}/resources`

Retrieve resources associated with a specific hub identified by its UUID

## Path parameters

- `hub_id` string, uuid, required

## Request body

- GetResources
  - `typeId` string, nullable
  - `projectPermissions` boolean, nullable
  - `excludeTables` boolean, nullable
  - `excludeProcesses` boolean, nullable
  - `onlyDeleted` boolean, nullable
  - `adminView` boolean, nullable
  - `onlyAdmin` boolean

## Response `200`

Successfully retrieved hub resources

- object
  - `metadata` object
  - `data` object[]
    - `type` string — Type of the resource (document or table)
    - `name` string — Name of the resource
    - `process` PermissionedDocument
      - `logo` string
      - `updatedAt` string, date-time
      - `deletedAt` string, date-time, nullable
      - `name` string
      - `type` string
      - `publicId` string, uuid
      - `createdAt` string, date-time
    - `table` SimpleDocumentTable
      - `publicId` string, uuid
      - `name` string
      - `type` string
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
      - `deletedAt` string, date-time
      - `isDeleted` boolean
      - `defaultViewId` string
      - `logo` string
      - `joins` TableJoin[], nullable
        - `publicId` string, uuid
        - `joinTableId` string
        - `joinViewId` string
        - `isOneToMany` boolean
        - `joinColumns` TableColumnJoin[]
          - `sourceColumnId` string
          - `targetColumnId` string
        - `dataColumns` TableJoinImportedColumns[]
          - `sourceColumnId` string
          - `targetColumnId` string

## Other responses

- `403` — You do not have the appropriate permissions
- `404` — Hub not found

---

[API](https://skmtc.net/morta-technology/apis/morta-api-reference.md) · [All operations](https://skmtc.net/morta-technology/apis/morta-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morta-technology/morta-api-reference/versions/9c58c1c1e7e8/schema)
