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

> ## Agent Instructions
> To set up traceroot in a repository, follow the setup prompt in https://traceroot.ai/docs/getting-started/coding-agents.md.

# Get Dashboard

> Fetch one traceroot dashboard by id together with its widgets, including each widget's title, type, query spec, and creation time.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/public/dashboards/{dashboard_id}
openapi: 3.1.0
info:
  title: traceroot Public API
  version: 0.1.0
servers:
  - description: traceroot Cloud
    url: https://app.traceroot.ai
  - description: Self-hosted
    url: '{baseUrl}'
    variables:
      baseUrl:
        default: http://localhost:8000
        description: Your traceroot backend URL
security: []
paths:
  /api/v1/public/dashboards/{dashboard_id}:
    get:
      tags:
        - Dashboards
      summary: Get Dashboard
      description: Get one dashboard with its widgets for the caller's project.
      operationId: get_dashboard
      parameters:
        - in: path
          name: dashboard_id
          required: true
          schema:
            title: Dashboard Id
            type: string
        - description: >-
            Target project for the request. Required when authenticating with a
            user session token (a user credential is only meaningful scoped to a
            project); for an API key it is optional and, if given, must match
            the key's project.
          in: query
          name: project_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Target project for the request. Required when authenticating with
              a user session token (a user credential is only meaningful scoped
              to a project); for an API key it is optional and, if given, must
              match the key's project.
            title: Project Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DashboardDetail'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Authentication failed
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Dashboard not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Authentication service unavailable
      security:
        - BearerAuth: []
components:
  schemas:
    DashboardDetail:
      description: |-
        One dashboard with its widgets, ordered by creation time.

        ``layout`` is the stored grid placement of the widgets that have one, or
        None when the dashboard service did not report it.
      properties:
        create_time:
          format: date-time
          title: Create Time
          type: string
        creator:
          anyOf:
            - type: string
            - type: 'null'
          title: Creator
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        id:
          title: Id
          type: string
        is_default:
          title: Is Default
          type: boolean
        layout:
          anyOf:
            - items:
                $ref: '#/components/schemas/DashboardLayoutItem'
              type: array
            - type: 'null'
          title: Layout
        name:
          title: Name
          type: string
        update_time:
          format: date-time
          title: Update Time
          type: string
        widgets:
          items:
            $ref: '#/components/schemas/DashboardWidgetItem'
          title: Widgets
          type: array
      required:
        - id
        - name
        - description
        - is_default
        - creator
        - create_time
        - update_time
        - widgets
      title: DashboardDetail
      type: object
    ErrorResponse:
      description: >-
        The canonical public error envelope (matches the gateway's normalized
        shape).
      properties:
        detail:
          title: Detail
          type: string
      required:
        - detail
      title: ErrorResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    DashboardLayoutItem:
      description: |-
        One widget's place on a dashboard's grid, in grid units.

        ``i`` is the widget id; ``x``/``w`` count columns of the twelve-column
        grid and ``y``/``h`` count rows. A widget with no entry is placed by the
        dashboard page itself, below everything that has one.
      properties:
        h:
          title: H
          type: integer
        i:
          title: I
          type: string
        w:
          title: W
          type: integer
        x:
          title: X
          type: integer
        'y':
          title: 'Y'
          type: integer
      required:
        - i
        - x
        - 'y'
        - w
        - h
      title: DashboardLayoutItem
      type: object
    DashboardWidgetItem:
      description: A widget on a dashboard (Postgres ``widgets``).
      properties:
        create_time:
          format: date-time
          title: Create Time
          type: string
        id:
          title: Id
          type: string
        spec:
          title: Spec
        title:
          title: Title
          type: string
        type:
          title: Type
          type: string
      required:
        - id
        - title
        - type
        - spec
        - create_time
      title: DashboardWidgetItem
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    BearerAuth:
      scheme: bearer
      type: http

````

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