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

# Preview a dataset



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/bi/datasets/{file_id}/preview
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/v1/bi/datasets/{file_id}/preview:
    get:
      tags:
        - bi-datasets
      summary: Preview a dataset
      operationId: preview_dataset_api_v1_bi_datasets__file_id__preview_get
      parameters:
        - name: file_id
          in: path
          required: true
          schema:
            type: string
            title: File Id
        - name: organization_id
          in: query
          required: true
          schema:
            type: string
            title: Organization Id
        - name: project_id
          in: query
          required: false
          schema:
            type: string
            title: Project Id
            default: thaink2
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Preview Dataset Api V1 Bi Datasets  File Id  Preview
                  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

## Related topics

- [Preview a OneDrive spreadsheet (xlsx/xls/xlsm/ods/csv/tsv)](/api-reference/bi-datasets/preview-a-onedrive-spreadsheet-xlsxxlsxlsmodscsvtsv.md)
- [Get Excel Preview](/api-reference/onedrive-browser/get-excel-preview.md)
- [Delete an uploaded dataset](/api-reference/bi-datasets/delete-an-uploaded-dataset.md)
- [List uploaded datasets](/api-reference/bi-datasets/list-uploaded-datasets.md)
- [List database tool configurations](/api-reference/bi-datasets/list-database-tool-configurations.md)
