---
title: "Get all Widget types for specified Bundle (getBundleWidgetTypesByBundleAlias) (Deprecated)"
method: GET
path: "/api/widgetTypes"
tags: ["widget-type-controller"]
deprecated: true
---

# Get all Widget types for specified Bundle (getBundleWidgetTypesByBundleAlias) (Deprecated)

`GET /api/widgetTypes`

> **Deprecated.**

Returns an array of Widget Type objects that belong to specified Widget Bundle.Widget Type represents the template for widget creation. Widget Type and Widget are similar to class and object in OOP theory. 

Available for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.

## Query parameters

- `widgetsBundleId` string, required
- `pageSize` integer, required
- `page` integer, required
- `textSearch` string
- `sortProperty` 'createdTime' | 'name' | 'deprecated' | 'tenantId'
- `sortOrder` 'ASC, DESC'
- `tenantOnly` boolean
- `fullSearch` boolean
- `deprecatedFilter` 'ALL' | 'ACTUAL' | 'DEPRECATED'
- `widgetTypeList` string[]
- `scadaFirst` boolean
- `isSystem` boolean, required
- `bundleAlias` string, required

## Response `200`

OK

- union
  - PageDataWidgetTypeInfo
    - `data` WidgetTypeInfo[] — Array of the entities
      - `id` WidgetTypeId
        - `id` string, uuid, required — ID of the entity, time-based UUID v1
        - `entityType` 'WIDGET_TYPE', required — string
      - `createdTime` integer — Timestamp of the Widget Type creation, in milliseconds
      - `tenantId` TenantId
        - `id` string, uuid, required — ID of the entity, time-based UUID v1
        - `entityType` 'TENANT', required — string
      - `fqn` string — Unique FQN that is used in dashboards as a reference widget type
      - `name` string — Widget name used in search and UI
      - `deprecated` boolean — Whether widget type is deprecated.
      - `scada` boolean — Whether widget type is SCADA symbol.
      - `version` integer
      - `image` string — Base64 encoded widget thumbnail
      - `description` string — Description of the widget type
      - `tags` string[] — Tags of the widget type
      - `widgetType` string — Type of the widget (timeseries, latest, control, alarm or static)
      - `bundles` WidgetBundleInfo[] — Bundles
        - `id` EntityId
          - `id` string, uuid, required — ID of the entity, time-based UUID v1
          - `entityType` 'TENANT' | 'CUSTOMER' | 'USER' | 'DASHBOARD' | 'ASSET' | 'DEVICE' | 'ALARM' | 'RULE_CHAIN' | 'RULE_NODE' | 'ENTITY_VIEW' | 'WIDGETS_BUNDLE' | 'WIDGET_TYPE' | 'TENANT_PROFILE' | 'DEVICE_PROFILE' | 'ASSET_PROFILE' | 'API_USAGE_STATE' | 'TB_RESOURCE' | 'OTA_PACKAGE' | 'EDGE' | 'RPC' | 'QUEUE' | 'NOTIFICATION_TARGET' | 'NOTIFICATION_TEMPLATE' | 'NOTIFICATION_REQUEST' | 'NOTIFICATION' | 'NOTIFICATION_RULE' | 'QUEUE_STATS' | 'OAUTH2_CLIENT' | 'DOMAIN' | 'MOBILE_APP' | 'MOBILE_APP_BUNDLE' | 'CALCULATED_FIELD' | 'JOB' | 'ADMIN_SETTINGS' | 'AI_MODEL' | 'API_KEY', required
        - `name` string — Entity Name
    - `totalPages` integer — Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria
    - `totalElements` integer — Total number of elements in all available pages
    - `hasNext` boolean — 'false' value indicates the end of the result set
  - WidgetType[]
    - `id` WidgetTypeId
      - `id` string, uuid, required — ID of the entity, time-based UUID v1
      - `entityType` 'WIDGET_TYPE', required — string
    - `createdTime` integer — Timestamp of the Widget Type creation, in milliseconds
    - `tenantId` TenantId
      - `id` string, uuid, required — ID of the entity, time-based UUID v1
      - `entityType` 'TENANT', required — string
    - `fqn` string — Unique FQN that is used in dashboards as a reference widget type
    - `name` string — Widget name used in search and UI
    - `deprecated` boolean — Whether widget type is deprecated.
    - `scada` boolean — Whether widget type is SCADA symbol.
    - `version` integer
    - `descriptor` unknown

---

[API](https://skmtc.net/thingsboard/apis/thingsboard-rest-api.md) · [All operations](https://skmtc.net/thingsboard/apis/thingsboard-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thingsboard/thingsboard-rest-api/revisions/40169ccdec5c/schema)
