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

# Get a dataset



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/user/dataset/{dataset_id}
openapi: 3.1.0
info:
  title: 4MINDS API
  version: v1
  description: >-
    OpenAPI spec for the 4MINDS-native API (`/api/v1`), generated from the
    Python client's request/response definitions. Successful responses use the
    envelope `{"status":"success","data": ...}`; errors use
    `{"status":"error","message": ...}`.
servers:
  - url: https://api.4minds.ai
security:
  - bearerAuth: []
tags:
  - name: Models
  - name: Conversations
  - name: Datasets
  - name: Evaluations
  - name: Inference
paths:
  /api/v1/user/dataset/{dataset_id}:
    parameters:
      - name: dataset_id
        in: path
        required: true
        schema:
          type: integer
        description: ''
    get:
      tags:
        - Datasets
      summary: Get a dataset
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - data
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  data:
                    $ref: '#/components/schemas/Dataset'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    Dataset:
      additionalProperties: true
      description: >-
        Represents a top-level user dataset container workspace on the 4MINDS
        platform.
      properties:
        id:
          description: The unique database identifier index.
          exclusiveMinimum: 0
          title: Id
          type: integer
        name:
          description: The designation name of the dataset workspace.
          maxLength: 255
          minLength: 1
          title: Name
          type: string
        size:
          description: The overall dataset capacity footprint measured in bytes.
          minimum: 0
          title: Size
          type: integer
        description:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: An optional summary or narrative describing the data.
          title: Description
        type:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: The format extension marker if this maps to a single flat file.
          title: Type
        rows:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          description: The line count summary if explicitly computed for this node.
          title: Rows
        uploaded_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          default: null
          description: The initial ingest record timestamp.
          title: Uploaded At
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          default: null
          title: Created At
        updated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          default: null
          title: Updated At
        file_count:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: File Count
      required:
        - id
        - name
        - size
      title: Dataset
      type: object
    ErrorEnvelope:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Static, non-expiring API key: `Authorization: Bearer
        <FOURMINDS_API_KEY>`.

````