> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Dataset Schema

> Retrieves the schema of a dataset, including details about columns, their types, and metadata



## OpenAPI

````yaml /openapi/product/data-sets.yaml get /api/query/v1/datasources/{datasetId}/schema/indexed
openapi: 3.0.0
info:
  title: Datasets API
  version: v1
  description: >
    The Domo Datasets API provides a set of endpoints for managing, creating,
    and updating datasets within Domo. The API allows developers to execute SQL
    queries on datasets,

    manage access permissions, retrieve metadata, append rows, share datasets,
    and perform various dataset operations.
servers:
  - url: https://{instance}.domo.com
    description: Domo Instance
    variables:
      instance:
        default: example
        description: Your Domo instance name
security:
  - developerToken: []
paths:
  /api/query/v1/datasources/{datasetId}/schema/indexed:
    get:
      tags:
        - Datasets API
      summary: Get Dataset Schema
      description: >-
        Retrieves the schema of a dataset, including details about columns,
        their types, and metadata
      parameters:
        - name: datasetId
          in: path
          required: true
          schema:
            type: string
        - name: includeHidden
          in: query
          description: Specifies whether hidden columns are included
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: Dataset schema
          content:
            application/json:
              example:
                name: schema
                tables:
                  - columns:
                      - name: Display Name
                        id: Display Name
                        type: STRING
                        visible: true
                        order: 0
                      - name: Role
                        id: Role
                        type: STRING
                        visible: true
                        order: 0
                dataSourceId: 94a4edfa-5926-4f0c-ad1e-a341f53f6113
      security:
        - sessionToken: []
      x-codeSamples:
        - lang: HTTP
          source: >
            GET
            /api/query/v1/datasources/{datasetId}/schema/indexed?includeHidden=false
            HTTP/1.1

            Host: {instance}.domo.com

            x-domo-authentication: {session_token}

            Content-Type: application/json

            Accept: application/json
components:
  securitySchemes:
    developerToken:
      type: apiKey
      in: header
      name: X-DOMO-Developer-Token
      description: Developer token obtained from Domo
    sessionToken:
      type: apiKey
      in: header
      name: x-domo-authentication
      description: Session token for authenticated requests

````