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

# Create a dashboard

> Save a new dashboard from one MDX document (DashboardMeta, layout, and inline Log Query Spec v2 artifacts) plus any static files it references by path. Generate the id yourself and reuse it on retries: an identical retry returns the original result. The response's editBase goes into DashboardMeta before the next update.



## OpenAPI

````yaml /openapi.json post /dashboards
openapi: 3.2.0
info:
  title: Sazabi Public API
  version: 1.0.0
  description: >
    Public REST API for Sazabi. Authenticate using a secret API key in the
    Authorization header.


    ## Pagination


    This API uses two pagination strategies depending on the endpoint type:


    ### Cursor-Based Pagination (List Endpoints)


    List endpoints (threads, messages, keys) use cursor-based pagination for
    efficient, consistent results:


    - **Parameters**: `limit` (items per page, default 50, max 100), `cursor`
    (opaque pagination token)

    - **Response**: Includes `nextCursor` field - pass this as `cursor` in the
    next request

    - **End of results**: When `nextCursor` is `null`, there are no more results

    - **Example**: `GET
    /v1/threads?limit=20&cursor=01234567-89ab-cdef-0123-456789abcdef`


    ### Page-Based Pagination (Search Endpoints)


    Search endpoints use page-based pagination due to the underlying search
    engine:


    - **Parameters**: `limit` (items per page, default 20, max 100), `page`
    (1-indexed page number)

    - **Response**: Includes `pagination` object with `page`, `limit`,
    `totalResults`, `totalPages`

    - **Example**: `GET /v1/search/threads?q=error&limit=10&page=2`
servers:
  - url: https://api.sazabi.com/v1
    description: Production
security: []
tags:
  - name: 'section: Send data'
    summary: Send data
    kind: nav
  - name: 'section: Detect issues'
    summary: Detect issues
    kind: nav
  - name: 'section: Triage issues'
    summary: Triage issues
    kind: nav
  - name: 'section: Ask Sazabi'
    summary: Ask Sazabi
    kind: nav
  - name: 'section: Explore logs'
    summary: Explore logs
    kind: nav
  - name: 'section: Ship fixes'
    summary: Ship fixes
    kind: nav
  - name: 'section: Integrations'
    summary: Integrations
    kind: nav
  - name: 'section: Organization and access'
    summary: Organization and access
    kind: nav
  - name: 'section: Billing'
    summary: Billing
    kind: nav
  - name: 'section: Webhooks and events'
    summary: Webhooks and events
    kind: nav
  - name: 'section: CLI onboarding support'
    summary: CLI onboarding support
    kind: nav
  - name: Log Sources
    summary: Log Sources
    kind: nav
    parent: 'section: Send data'
  - name: Log Streams
    summary: Log Streams
    kind: nav
    parent: 'section: Send data'
  - name: Public Keys
    summary: Public Keys
    kind: nav
    parent: 'section: Send data'
  - name: Signals
    summary: Signals
    kind: nav
    parent: 'section: Detect issues'
  - name: Issues
    summary: Issues
    kind: nav
    parent: 'section: Triage issues'
  - name: Components
    summary: Components
    kind: nav
    parent: 'section: Triage issues'
  - name: Notification delivery rules
    summary: Notification delivery rules
    kind: nav
    parent: 'section: Triage issues'
  - name: Notification channels
    summary: Notification channels
    kind: nav
    parent: 'section: Triage issues'
  - name: Tasks
    summary: Tasks
    kind: nav
    parent: 'section: Triage issues'
  - name: Task creation rules
    summary: Task creation rules
    kind: nav
    parent: 'section: Triage issues'
  - name: Task status mapping
    summary: Task status mapping
    kind: nav
    parent: 'section: Triage issues'
  - name: Work Items
    summary: Work Items
    kind: nav
    parent: 'section: Triage issues'
  - name: Threads
    summary: Threads
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Messages
    summary: Messages
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Runs
    summary: Runs
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Search
    summary: Search
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Memory
    summary: Memory
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Artifacts
    summary: Artifacts
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Tool permissions
    summary: Tool permissions
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Sandbox Environment Variables
    summary: Sandbox Environment Variables
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Sandbox Init Script
    summary: Sandbox Init Script
    kind: nav
    parent: 'section: Ask Sazabi'
  - name: Logs
    summary: Logs
    kind: nav
    parent: 'section: Explore logs'
  - name: Dashboards
    summary: Dashboards
    kind: nav
    parent: 'section: Explore logs'
  - name: AgentDispatches
    summary: AgentDispatches
    kind: nav
    parent: 'section: Ship fixes'
  - name: Pull Requests
    summary: Pull Requests
    kind: nav
    parent: 'section: Ship fixes'
  - name: Repos
    summary: Repos
    kind: nav
    parent: 'section: Ship fixes'
  - name: Integrations
    summary: Integrations
    kind: nav
    parent: 'section: Integrations'
  - name: MCP Connectors
    summary: MCP Connectors
    kind: nav
    parent: 'section: Integrations'
  - name: Connected Accounts
    summary: Connected Accounts
    kind: nav
    parent: 'section: Integrations'
  - name: Sandbox CLIs
    summary: Sandbox CLIs
    kind: nav
    parent: 'section: Integrations'
  - name: Auth
    summary: Auth
    kind: nav
    parent: 'section: Organization and access'
  - name: Organizations
    summary: Organizations
    kind: nav
    parent: 'section: Organization and access'
  - name: Projects
    summary: Projects
    kind: nav
    parent: 'section: Organization and access'
  - name: Members
    summary: Members
    kind: nav
    parent: 'section: Organization and access'
  - name: Teams
    summary: Teams
    kind: nav
    parent: 'section: Organization and access'
  - name: SSO
    summary: SSO
    kind: nav
    parent: 'section: Organization and access'
  - name: Secret Keys
    summary: Secret Keys
    kind: nav
    parent: 'section: Organization and access'
  - name: Support Tickets
    summary: Support Tickets
    kind: nav
    parent: 'section: Organization and access'
  - name: Billing
    summary: Billing
    kind: nav
    parent: 'section: Billing'
  - name: Webhooks
    summary: Webhooks
    kind: nav
    parent: 'section: Webhooks and events'
  - name: Webhook events
    summary: Webhook events
    kind: nav
    parent: 'section: Webhooks and events'
  - name: Onboarding
    summary: Onboarding
    kind: nav
    parent: 'section: CLI onboarding support'
  - name: Onboarding Tasks
    summary: Onboarding Tasks
    kind: nav
    parent: 'section: CLI onboarding support'
  - name: Recommendations
    summary: Recommendations
    kind: nav
    parent: 'section: CLI onboarding support'
paths:
  /dashboards:
    post:
      tags:
        - Dashboards
      summary: Create a dashboard
      description: >-
        Save a new dashboard from one MDX document (DashboardMeta, layout, and
        inline Log Query Spec v2 artifacts) plus any static files it references
        by path. Generate the id yourself and reuse it on retries: an identical
        retry returns the original result. The response's editBase goes into
        DashboardMeta before the next update.
      operationId: dashboards.create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  format: uuid
                  description: >-
                    Client-generated dashboard UUID; retries reuse it for
                    idempotent creation.
                input:
                  anyOf:
                    - type: object
                      properties:
                        source:
                          type: string
                          minLength: 1
                          description: >-
                            Complete MDX text: DashboardMeta, layout, and inline
                            artifact definitions.
                        files:
                          type: object
                          propertyNames:
                            type: string
                            minLength: 1
                            maxLength: 400
                          additionalProperties:
                            anyOf:
                              - anyOf:
                                  - type: object
                                    properties:
                                      version:
                                        const: 1
                                      type:
                                        const: flame_chart
                                      data:
                                        type: object
                                        properties:
                                          items:
                                            type: array
                                            minItems: 1
                                            maxItems: 1000
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                parent:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                value:
                                                  type: number
                                                  minimum: 0
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                detail:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 300
                                              required:
                                                - name
                                                - value
                                              additionalProperties: false
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                        required:
                                          - items
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 1
                                      type:
                                        const: waterfall_chart
                                      data:
                                        type: object
                                        properties:
                                          items:
                                            type: array
                                            minItems: 1
                                            maxItems: 500
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                parent:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                start:
                                                  type: number
                                                  minimum: 0
                                                duration:
                                                  type: number
                                                  minimum: 0
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                detail:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 300
                                              required:
                                                - name
                                                - start
                                                - duration
                                              additionalProperties: false
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                        required:
                                          - items
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 1
                                      type:
                                        const: area_chart
                                      data:
                                        type: object
                                        properties:
                                          series:
                                            type: array
                                            minItems: 1
                                            maxItems: 8
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                points:
                                                  type: array
                                                  minItems: 1
                                                  maxItems: 1000
                                                  items: {}
                                              required:
                                                - name
                                                - points
                                              additionalProperties: false
                                          stacked:
                                            type: boolean
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                        required:
                                          - series
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 1
                                      type:
                                        const: treemap_chart
                                      data:
                                        type: object
                                        properties:
                                          items:
                                            type: array
                                            minItems: 1
                                            maxItems: 1000
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                parent:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                value:
                                                  type: number
                                                  minimum: 0
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                detail:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 300
                                              required:
                                                - name
                                                - value
                                              additionalProperties: false
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                        required:
                                          - items
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 1
                                      type:
                                        const: graph_chart
                                      data:
                                        type: object
                                        properties:
                                          nodes:
                                            type: array
                                            minItems: 1
                                            maxItems: 60
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                value:
                                                  type: number
                                                  minimum: 0
                                                detail:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 300
                                              required:
                                                - name
                                              additionalProperties: false
                                          edges:
                                            type: array
                                            maxItems: 150
                                            items:
                                              type: object
                                              properties:
                                                from:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                to:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                label:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 60
                                                value:
                                                  type: number
                                                  minimum: 0
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                              required:
                                                - from
                                                - to
                                              additionalProperties: false
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                        required:
                                          - nodes
                                          - edges
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                              - anyOf:
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: area_chart
                                      data:
                                        type: object
                                        properties:
                                          series:
                                            type: array
                                            minItems: 1
                                            maxItems: 8
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                points:
                                                  type: array
                                                  minItems: 1
                                                  maxItems: 1000
                                                  items: {}
                                              required:
                                                - name
                                                - points
                                              additionalProperties: false
                                        required:
                                          - series
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                          stacked:
                                            type: boolean
                                          interval:
                                            enum:
                                              - auto
                                              - fixed
                                            type: string
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: bar_chart
                                      data:
                                        type: object
                                        properties:
                                          series:
                                            type: array
                                            minItems: 1
                                            maxItems: 8
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                points:
                                                  type: array
                                                  minItems: 1
                                                  maxItems: 1000
                                                  items: {}
                                              required:
                                                - name
                                                - points
                                              additionalProperties: false
                                        required:
                                          - series
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                          stacked:
                                            type: boolean
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: pie_chart
                                      data:
                                        type: object
                                        properties:
                                          slices:
                                            type: array
                                            minItems: 1
                                            maxItems: 12
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                value:
                                                  type: number
                                                  minimum: 0
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                              required:
                                                - name
                                                - value
                                              additionalProperties: false
                                        required:
                                          - slices
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                          donut:
                                            type: boolean
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: heatmap_chart
                                      data:
                                        type: object
                                        properties:
                                          columns:
                                            type: array
                                            minItems: 1
                                            maxItems: 96
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 64
                                          rows:
                                            type: array
                                            minItems: 1
                                            maxItems: 24
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                values:
                                                  type: array
                                                  minItems: 1
                                                  maxItems: 96
                                                  items: {}
                                              required:
                                                - name
                                                - values
                                              additionalProperties: false
                                        required:
                                          - columns
                                          - rows
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: gauge_chart
                                      data:
                                        type: object
                                        properties:
                                          value:
                                            type: number
                                          min:
                                            type: number
                                          max:
                                            type: number
                                          thresholds:
                                            type: array
                                            maxItems: 4
                                            items:
                                              type: object
                                              properties:
                                                at:
                                                  type: number
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                              required:
                                                - at
                                                - tone
                                              additionalProperties: false
                                        required:
                                          - value
                                          - max
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                          min:
                                            type: number
                                          max:
                                            type: number
                                          thresholds:
                                            type: array
                                            maxItems: 4
                                            items:
                                              type: object
                                              properties:
                                                at:
                                                  type: number
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                              required:
                                                - at
                                                - tone
                                              additionalProperties: false
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: timeseries
                                      data:
                                        type: object
                                        properties:
                                          series:
                                            type: array
                                            minItems: 1
                                            maxItems: 8
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                points:
                                                  type: array
                                                  minItems: 1
                                                  maxItems: 1000
                                                  items: {}
                                              required:
                                                - name
                                                - points
                                              additionalProperties: false
                                        required:
                                          - series
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                          mode:
                                            enum:
                                              - line
                                              - bar
                                              - area
                                            type: string
                                          interval:
                                            enum:
                                              - auto
                                              - fixed
                                            type: string
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: table
                                      data:
                                        type: object
                                        properties:
                                          rows:
                                            type: array
                                            maxItems: 200
                                            items:
                                              type: object
                                              propertyNames:
                                                type: string
                                                minLength: 1
                                                maxLength: 80
                                              additionalProperties:
                                                anyOf:
                                                  - {}
                                                  - {}
                                                  - {}
                                                  - {}
                                          rowKinds:
                                            type: array
                                            maxItems: 200
                                            items:
                                              enum:
                                                - data
                                                - subtotal
                                                - total
                                                - cohort
                                              type: string
                                        required:
                                          - rows
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                          dataset: {}
                                          maxWindowSeconds:
                                            type: integer
                                            minimum: 1
                                            maximum: 31536000
                                          columns:
                                            type: array
                                            minItems: 1
                                            maxItems: 30
                                            items:
                                              type: object
                                              properties:
                                                field:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 80
                                                label:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                unit:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 20
                                                signed:
                                                  type: boolean
                                                changeColor:
                                                  enum:
                                                    - positive-good
                                                    - negative-good
                                                  type: string
                                                formula:
                                                  anyOf:
                                                    - {}
                                                    - {}
                                                link:
                                                  anyOf:
                                                    - {}
                                                    - {}
                                              required:
                                                - field
                                              additionalProperties: false
                                          pivot:
                                            type: object
                                            properties:
                                              field:
                                                type: string
                                                minLength: 1
                                                maxLength: 80
                                              values:
                                                type: array
                                                minItems: 1
                                                maxItems: 29
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 80
                                              fill:
                                                anyOf:
                                                  - const: 0
                                                  - type: 'null'
                                            required:
                                              - field
                                            additionalProperties: false
                                          rows:
                                            type: array
                                            minItems: 1
                                            maxItems: 8
                                            items:
                                              type: object
                                              properties:
                                                id:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 80
                                                label:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                predicate:
                                                  $ref: '#/components/schemas/Predicate'
                                                kind:
                                                  enum:
                                                    - data
                                                    - subtotal
                                                    - total
                                                    - cohort
                                                  type: string
                                                dateWindow:
                                                  type: object
                                                  properties:
                                                    field: {}
                                                    days: {}
                                                  additionalProperties: false
                                              required:
                                                - id
                                                - label
                                                - predicate
                                              additionalProperties: false
                                          rowField:
                                            type: string
                                            minLength: 1
                                            maxLength: 80
                                          compare:
                                            type: object
                                            properties:
                                              offsetSeconds:
                                                type: integer
                                                minimum: 1
                                                maximum: 31536000
                                              emptyAsUnknown:
                                                type: boolean
                                            required:
                                              - offsetSeconds
                                            additionalProperties: false
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: metric
                                      data:
                                        type: object
                                        properties:
                                          value:
                                            anyOf:
                                              - type: number
                                              - type: string
                                                maxLength: 120
                                          previous:
                                            type: object
                                            properties:
                                              value:
                                                anyOf:
                                                  - type: number
                                                  - type: 'null'
                                              from:
                                                type: string
                                                format: date-time
                                              to:
                                                type: string
                                                format: date-time
                                            required:
                                              - value
                                              - from
                                              - to
                                            additionalProperties: false
                                        required:
                                          - value
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                          compare:
                                            enum:
                                              - previous_period
                                            type: string
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: flame_chart
                                      data:
                                        type: object
                                        properties:
                                          items:
                                            type: array
                                            minItems: 1
                                            maxItems: 1000
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                parent:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                value:
                                                  type: number
                                                  minimum: 0
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                detail:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 300
                                              required:
                                                - name
                                                - value
                                              additionalProperties: false
                                        required:
                                          - items
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: waterfall_chart
                                      data:
                                        type: object
                                        properties:
                                          items:
                                            type: array
                                            minItems: 1
                                            maxItems: 500
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                parent:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                start:
                                                  type: number
                                                  minimum: 0
                                                duration:
                                                  type: number
                                                  minimum: 0
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                detail:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 300
                                              required:
                                                - name
                                                - start
                                                - duration
                                              additionalProperties: false
                                        required:
                                          - items
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: treemap_chart
                                      data:
                                        type: object
                                        properties:
                                          items:
                                            type: array
                                            minItems: 1
                                            maxItems: 1000
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                parent:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                value:
                                                  type: number
                                                  minimum: 0
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                detail:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 300
                                              required:
                                                - name
                                                - value
                                              additionalProperties: false
                                        required:
                                          - items
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                          unit:
                                            type: string
                                            minLength: 1
                                            maxLength: 20
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      version:
                                        const: 2
                                      type:
                                        const: graph_chart
                                      data:
                                        type: object
                                        properties:
                                          nodes:
                                            type: array
                                            minItems: 1
                                            maxItems: 60
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                                value:
                                                  type: number
                                                  minimum: 0
                                                detail:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 300
                                              required:
                                                - name
                                              additionalProperties: false
                                          edges:
                                            type: array
                                            maxItems: 150
                                            items:
                                              type: object
                                              properties:
                                                from:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                to:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                label:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 60
                                                value:
                                                  type: number
                                                  minimum: 0
                                                tone:
                                                  enum:
                                                    - neutral
                                                    - info
                                                    - success
                                                    - warning
                                                    - danger
                                                    - critical
                                                  type: string
                                              required:
                                                - from
                                                - to
                                              additionalProperties: false
                                        required:
                                          - nodes
                                          - edges
                                        additionalProperties: false
                                      view:
                                        type: object
                                        properties:
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                        additionalProperties: false
                                    required:
                                      - version
                                      - type
                                      - data
                                    additionalProperties: false
                          description: >-
                            Static artifact definitions keyed by the normalized
                            relative path each `path` prop names. Live query
                            definitions stay in the MDX.
                      required:
                        - source
                      additionalProperties: false
                    - type: object
                      properties:
                        template:
                          type: object
                          properties:
                            key:
                              type: string
                              maxLength: 120
                              pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
                            version:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              exclusiveMinimum: 0
                            inputs:
                              type: object
                              properties:
                                title:
                                  type: string
                                  minLength: 1
                                  maxLength: 120
                                timeRange:
                                  anyOf:
                                    - type: object
                                      properties:
                                        kind:
                                          const: absolute
                                        from:
                                          type: string
                                          format: date-time
                                        to:
                                          type: string
                                          format: date-time
                                      required:
                                        - kind
                                        - from
                                        - to
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          const: relative
                                        lookbackSeconds:
                                          type: integer
                                          minimum: -9007199254740991
                                          maximum: 7776000
                                          exclusiveMinimum: 0
                                      required:
                                        - kind
                                        - lookbackSeconds
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          const: anchored
                                        from:
                                          anyOf:
                                            - type: string
                                              format: date-time
                                            - enum:
                                                - startOfYear
                                                - firstData
                                              type: string
                                      required:
                                        - kind
                                        - from
                                      additionalProperties: false
                              additionalProperties: false
                          required:
                            - key
                            - version
                          additionalProperties: false
                      required:
                        - template
                      additionalProperties: false
                    - type: object
                      properties:
                        dashboard:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            revision:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              exclusiveMinimum: 0
                          required:
                            - id
                            - revision
                          additionalProperties: false
                          description: >-
                            Copy this exact dashboard revision into an
                            independent dashboard. Content is resolved on the
                            server and validated in the destination project.
                      required:
                        - dashboard
                      additionalProperties: false
                projectId:
                  type: string
                  format: uuid
                  description: >-
                    Project that owns the dashboard. Auto-filled from CLI and
                    SDK context when omitted.
              required:
                - id
                - input
              additionalProperties: false
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  revision:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                    exclusiveMinimum: 0
                  definitionHash:
                    type: string
                    pattern: ^sha256:[0-9a-f]{64}$
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  editBase:
                    type: object
                    properties:
                      organizationId:
                        type: string
                        minLength: 1
                        maxLength: 200
                      projectId:
                        type: string
                        format: uuid
                      dashboardId:
                        type: string
                        format: uuid
                      revision:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                        exclusiveMinimum: 0
                    required:
                      - organizationId
                      - projectId
                      - dashboardId
                      - revision
                    additionalProperties: false
                  warnings:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          minLength: 1
                          maxLength: 120
                        message:
                          type: string
                          minLength: 1
                          maxLength: 2000
                        severity:
                          enum:
                            - error
                            - warning
                          type: string
                        line:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                          exclusiveMinimum: 0
                        column:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                          exclusiveMinimum: 0
                        componentId:
                          type: string
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$
                        filePath:
                          type: string
                          minLength: 1
                          maxLength: 400
                        artifactPath:
                          type: array
                          items:
                            anyOf:
                              - type: string
                              - type: integer
                                minimum: 0
                                maximum: 9007199254740991
                          description: >-
                            Location inside the artifact definition, e.g.
                            ['query', 'bucket'].
                        propPath:
                          type: array
                          items:
                            anyOf:
                              - type: string
                              - type: integer
                                minimum: 0
                                maximum: 9007199254740991
                          description: >-
                            Location inside the component's own props, e.g.
                            ['data', 0, 'value'] — distinct from artifactPath,
                            which locates a problem inside an artifact
                            (query/static data) definition. Set only for
                            components with no artifact at all, such as a
                            literal Chart or DataTable.
                        repairHint:
                          type: string
                          minLength: 1
                          maxLength: 1000
                      required:
                        - code
                        - message
                        - severity
                      additionalProperties: false
                    description: Nonblocking diagnostics from a successful save.
                required:
                  - id
                  - revision
                  - definitionHash
                  - createdAt
                  - updatedAt
                  - editBase
                additionalProperties: false
components:
  schemas:
    Predicate:
      anyOf:
        - type: object
          properties:
            op:
              enum:
                - and
                - or
              type: string
            children:
              type: array
              maxItems: 50
              items:
                $ref: '#/components/schemas/Predicate'
          required:
            - op
            - children
          additionalProperties: false
        - type: object
          properties:
            op:
              const: not
            child:
              $ref: '#/components/schemas/Predicate'
          required:
            - op
            - child
          additionalProperties: false
        - type: object
          properties:
            op:
              const: compare
            field:
              anyOf:
                - type: object
                  properties:
                    kind:
                      const: service
                  required:
                    - kind
                  additionalProperties: false
                  description: The service that wrote the line.
                - type: object
                  properties:
                    kind:
                      const: severity
                  required:
                    - kind
                  additionalProperties: false
                  description: >-
                    The line's level: TRACE, DEBUG, INFO, WARN, ERROR, FATAL,
                    lowest first. Read from the level the sender wrote, in any
                    spelling (`err`, `Error`, `WARNING`, `critical`), or from
                    its OpenTelemetry severity number when it wrote none.
                    Compare with eq, neq, in, gt, gte, lt, lte (`gte "WARN"` is
                    warnings and worse) or exists; a line whose level names none
                    of these has no severity.
                - type: object
                  properties:
                    kind:
                      const: column
                    name:
                      enum:
                        - severity_text
                        - trace_id
                        - span_id
                        - deployment.environment
                        - k8s.pod.name
                        - http.request.method
                        - http.route
                        - url.path
                        - http.response.status_code
                        - operation_kind
                        - server.address
                        - http.request.body.size
                        - http.response.body.size
                        - event.name
                      type: string
                  required:
                    - kind
                    - name
                  additionalProperties: false
                  description: A field every line carries in a fixed place.
                - type: object
                  properties:
                    kind:
                      const: attribute
                    source:
                      enum:
                        - resource
                        - scope
                        - log
                      type: string
                    key:
                      type: string
                      minLength: 1
                      maxLength: 1024
                  required:
                    - kind
                    - source
                    - key
                  additionalProperties: false
                  description: >-
                    An OpenTelemetry attribute of the line (`log`), of the
                    resource that wrote it (`resource`), or of its
                    instrumentation scope (`scope`).
                - type: object
                  properties:
                    kind:
                      const: body
                  required:
                    - kind
                  additionalProperties: false
                  description: The whole log line as text.
                - type: object
                  properties:
                    kind:
                      const: message
                  required:
                    - kind
                  additionalProperties: false
                  description: >-
                    What the line says: for a JSON line its message field
                    (`msg`, `message`, or a tracing event's `fields.message`;
                    empty when it has none), for a text line the whole line.
                - type: object
                  properties:
                    kind:
                      const: body_json
                    path:
                      type: array
                      minItems: 1
                      maxItems: 8
                      items:
                        type: string
                        minLength: 1
                        maxLength: 1024
                  required:
                    - kind
                    - path
                  additionalProperties: false
                  description: >-
                    A value inside a JSON log line, by object path:
                    `["metadata", "durationMs"]`.
                - type: object
                  properties:
                    kind:
                      const: key
                    key:
                      type: string
                      minLength: 1
                      maxLength: 1024
                  required:
                    - kind
                    - key
                  additionalProperties: false
                  description: >-
                    A stored field by its exact key, as the log store keeps it
                    (`message.event`, `jsonPayload.level`,
                    `event.properties.status`): read verbatim, never resolved.
              description: A field of a log line.
            comparator:
              enum:
                - eq
                - neq
                - gt
                - gte
                - lt
                - lte
                - in
                - contains
                - starts_with
                - exists
              type: string
            value:
              anyOf:
                - anyOf:
                    - type: string
                      maxLength: 8192
                    - type: number
                    - type: boolean
                    - type: 'null'
                - type: array
                  maxItems: 100
                  items:
                    anyOf:
                      - type: string
                        maxLength: 8192
                      - type: number
                      - type: boolean
                      - type: 'null'
          required:
            - op
            - field
            - comparator
          additionalProperties: false

````

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