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

# Get dashboard widget

> Returns a single dashboard widget.



## OpenAPI

````yaml /openapi-public.json get /dashboards/{id}/widgets/{wgt_id}
openapi: 3.1.0
info:
  title: Akua API
  version: 1.0.0
  description: >-
    Public API for managing Akua workspaces, clusters, products, and installs.


    Authenticate with a workspace API token via the `Authorization: Bearer
    sk_akua_...` header.


    A workspace-owned token implies its workspace. Broad tokens select the
    active workspace via the optional `Akua-Context` header.
  contact:
    name: Akua API support
    email: support@akua.dev
    url: https://akua.dev/docs
servers:
  - url: https://api.akua.dev/v1
    description: Production
security: []
tags:
  - name: Auth
    description: Authentication and token management.
  - name: Agent events
    description: Persisted agent transcripts and response recovery.
  - name: Custom domains
    description: Workspace custom domains and routing targets.
  - name: Cloudflare
    description: Cloudflare account credentials and gateway control.
  - name: Clusters
    description: Kubernetes clusters and cluster access operations.
  - name: ComputeConfigs
    description: Workspace compute provider configurations.
  - name: Entitlements
    description: Effective workspace capabilities and limits.
  - name: Dashboards
    description: Dashboard and widget resources.
  - name: Installs
    description: Installation and render operations.
  - name: Machines
    description: Compute machines and lifecycle events.
  - name: Notifications
    description: User notification state.
  - name: Offer Channels
    description: Private offer channels and policy versions.
  - name: Offers
    description: Marketplace offers and redemption tracking.
  - name: Operations
    description: Long-running operation status and controls.
  - name: Order Drafts
    description: Draft checkout orders and checkout sessions.
  - name: Organizations
    description: Organizations, memberships, and managed workspaces.
  - name: Packages
    description: Software packages, versions, and input schemas.
  - name: Products
    description: Marketplace product catalog resources.
  - name: Preview hostnames
    description: Install preview hostnames and routing state.
  - name: Quotas
    description: Workspace quota limits and usage.
  - name: Regions
    description: Available deployment regions.
  - name: Registry
    description: Container registry credentials and repositories.
  - name: Repository change requests
    description: Fork-backed repository change reviews and lifecycle actions.
  - name: Repositories
    description: Source repositories available to the workspace.
  - name: Secrets
    description: Workspace secrets and secret versions.
  - name: Snippets
    description: Reusable snippets and snippet runs.
  - name: Workspace subdomains
    description: Workspace subdomain identity.
  - name: Workspaces
    description: Workspace resources, members, and billing state.
paths:
  /dashboards/{id}/widgets/{wgt_id}:
    get:
      tags:
        - Dashboards
      summary: Get dashboard widget
      description: Returns a single dashboard widget.
      operationId: dashboards.getWidget
      parameters:
        - name: id
          in: path
          schema:
            type: string
            minLength: 1
            maxLength: 55
          required: true
        - name: wgt_id
          in: path
          schema:
            type: string
            minLength: 1
            maxLength: 54
          required: true
      responses:
        '200':
          description: Dashboard widget details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Widget'
        '401':
          description: Missing, invalid or expired credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiUnauthorized'
        '403':
          description: The credential may not act in this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiForbidden'
        '404':
          description: The resource was not found in this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiNotFound'
      security:
        - BearerAuth: []
components:
  schemas:
    Widget:
      oneOf:
        - type: object
          properties:
            id:
              type: string
              minLength: 1
              maxLength: 54
            dashboard_id:
              type: string
              minLength: 1
              maxLength: 55
            title:
              anyOf:
                - type: string
                  maxLength: 100
                - type: 'null'
            position:
              type: integer
            col_span:
              type: number
              enum:
                - 1
                - 2
                - 3
                - 4
            height:
              type: string
              enum:
                - compact
                - standard
                - tall
            drill_down:
              anyOf:
                - type: string
                  minLength: 1
                  maxLength: 2048
                - type: 'null'
            visualization_options:
              type: object
            freshness_policy:
              oneOf:
                - type: object
                  properties:
                    mode:
                      type: string
                      enum:
                        - provider_default
                  required:
                    - mode
                  additionalProperties: false
                - type: object
                  properties:
                    mode:
                      type: string
                      enum:
                        - max_age
                    max_age_seconds:
                      type: integer
                      minimum: 30
                      maximum: 86400
                  required:
                    - mode
                    - max_age_seconds
                  additionalProperties: false
            created_at:
              type: integer
              minimum: 0
              description: Unix timestamp (seconds)
            updated_at:
              type: integer
              minimum: 0
              description: Unix timestamp (seconds)
            etag:
              type: string
            widget_type:
              type: string
              enum:
                - platform_metric
            metric_key:
              type: string
              minLength: 1
              maxLength: 100
              pattern: ^[a-z][a-z0-9_]*$
            metric_version:
              type: integer
              exclusiveMinimum: 0
            filter_bindings:
              type: object
              additionalProperties:
                oneOf:
                  - type: object
                    properties:
                      mode:
                        type: string
                        enum:
                          - inherit
                      filter_key:
                        anyOf:
                          - type: string
                            enum:
                              - time
                              - comparison
                              - cluster
                              - install
                              - product
                              - package
                              - region
                              - status
                          - type: string
                            pattern: ^var\.[a-z][a-z0-9_]{0,31}$
                    required:
                      - mode
                      - filter_key
                    additionalProperties: false
                  - type: object
                    properties:
                      mode:
                        type: string
                        enum:
                          - fixed
                      value: {}
                    required:
                      - mode
                      - value
                    additionalProperties: false
                  - type: object
                    properties:
                      mode:
                        type: string
                        enum:
                          - unbound
                    required:
                      - mode
                    additionalProperties: false
          required:
            - id
            - dashboard_id
            - title
            - position
            - col_span
            - height
            - drill_down
            - visualization_options
            - freshness_policy
            - created_at
            - updated_at
            - etag
            - widget_type
            - metric_key
            - metric_version
            - filter_bindings
          additionalProperties: false
        - type: object
          properties:
            id:
              type: string
              minLength: 1
              maxLength: 54
            dashboard_id:
              type: string
              minLength: 1
              maxLength: 55
            title:
              anyOf:
                - type: string
                  maxLength: 100
                - type: 'null'
            position:
              type: integer
            col_span:
              type: number
              enum:
                - 1
                - 2
                - 3
                - 4
            height:
              type: string
              enum:
                - compact
                - standard
                - tall
            drill_down:
              anyOf:
                - type: string
                  minLength: 1
                  maxLength: 2048
                - type: 'null'
            visualization_options:
              type: object
            freshness_policy:
              oneOf:
                - type: object
                  properties:
                    mode:
                      type: string
                      enum:
                        - provider_default
                  required:
                    - mode
                  additionalProperties: false
                - type: object
                  properties:
                    mode:
                      type: string
                      enum:
                        - max_age
                    max_age_seconds:
                      type: integer
                      minimum: 30
                      maximum: 86400
                  required:
                    - mode
                    - max_age_seconds
                  additionalProperties: false
            created_at:
              type: integer
              minimum: 0
              description: Unix timestamp (seconds)
            updated_at:
              type: integer
              minimum: 0
              description: Unix timestamp (seconds)
            etag:
              type: string
            widget_type:
              type: string
              enum:
                - snippet
            snippet_id:
              type: string
              minLength: 1
              maxLength: 54
            snippet_etag:
              anyOf:
                - type: string
                - type: 'null'
            input_bindings:
              type: object
              additionalProperties:
                oneOf:
                  - type: object
                    properties:
                      mode:
                        type: string
                        enum:
                          - inherit
                      filter_key:
                        anyOf:
                          - type: string
                            enum:
                              - time
                              - comparison
                              - cluster
                              - install
                              - product
                              - package
                              - region
                              - status
                          - type: string
                            pattern: ^var\.[a-z][a-z0-9_]{0,31}$
                    required:
                      - mode
                      - filter_key
                    additionalProperties: false
                  - type: object
                    properties:
                      mode:
                        type: string
                        enum:
                          - fixed
                      value: {}
                    required:
                      - mode
                      - value
                    additionalProperties: false
                  - type: object
                    properties:
                      mode:
                        type: string
                        enum:
                          - unbound
                    required:
                      - mode
                    additionalProperties: false
            visualization:
              anyOf:
                - type: string
                  enum:
                    - stat
                    - sparkline
                    - line
                    - area
                    - bar
                    - donut
                    - table
                    - status_list
                    - logs
                    - json
                - type: 'null'
            refresh_policy:
              oneOf:
                - type: object
                  properties:
                    mode:
                      type: string
                      enum:
                        - on_load
                  required:
                    - mode
                  additionalProperties: false
                - type: object
                  properties:
                    mode:
                      type: string
                      enum:
                        - manual
                  required:
                    - mode
                  additionalProperties: false
                - type: object
                  properties:
                    mode:
                      type: string
                      enum:
                        - interval
                    interval_seconds:
                      type: integer
                      minimum: 60
                      maximum: 86400
                  required:
                    - mode
                    - interval_seconds
                  additionalProperties: false
            display_type:
              anyOf:
                - type: string
                  enum:
                    - table
                    - stat
                    - json
                    - logs
                    - timeseries
                - type: 'null'
              description: Controls how the snippet result is rendered in dashboard widgets
          required:
            - id
            - dashboard_id
            - title
            - position
            - col_span
            - height
            - drill_down
            - visualization_options
            - freshness_policy
            - created_at
            - updated_at
            - etag
            - widget_type
            - snippet_id
            - snippet_etag
            - input_bindings
            - visualization
            - refresh_policy
            - display_type
          additionalProperties: false
      x-platform-exact-union: true
    ApiUnauthorized:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - Unauthorized
        success:
          type: boolean
          enum:
            - false
        errors:
          type: array
          prefixItems:
            - $ref: '#/components/schemas/ApiErrorEntry'
          minItems: 1
          items:
            $ref: '#/components/schemas/ApiErrorEntry'
        result:
          type: object
          additionalProperties: false
      required:
        - _tag
        - success
        - errors
        - result
      additionalProperties: false
    ApiForbidden:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - Forbidden
        success:
          type: boolean
          enum:
            - false
        errors:
          type: array
          prefixItems:
            - $ref: '#/components/schemas/ApiErrorEntry'
          minItems: 1
          items:
            $ref: '#/components/schemas/ApiErrorEntry'
        result:
          type: object
          additionalProperties: false
      required:
        - _tag
        - success
        - errors
        - result
      additionalProperties: false
    ApiNotFound:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - NotFound
        success:
          type: boolean
          enum:
            - false
        errors:
          type: array
          prefixItems:
            - $ref: '#/components/schemas/ApiErrorEntry'
          minItems: 1
          items:
            $ref: '#/components/schemas/ApiErrorEntry'
        result:
          type: object
          additionalProperties: false
      required:
        - _tag
        - success
        - errors
        - result
      additionalProperties: false
    ApiErrorEntry:
      type: object
      properties:
        code:
          type: integer
          description: Machine-readable error code
          examples:
            - 7002
        message:
          type: string
          description: Human-readable error message
          examples:
            - Resource not found
        path:
          type: array
          items:
            type: string
          description: Field path that caused the error, when applicable
          examples:
            - - body
              - name
        metadata:
          type: object
          additionalProperties:
            type: string
      required:
        - code
        - message
      additionalProperties: false
  securitySchemes:
    BearerAuth:
      description: >-
        workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at
        https://akua.dev/developers/api-tokens
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.