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

# Get a drive

> Fetch a drive and its files. A drive created by another user returns 404 Not Found, even in the same organization.



## OpenAPI

````yaml /openapi.json get /drives/{drive_pid}
openapi: 3.1.0
info:
  title: Cominty API
  description: >-
    The HTTP API behind the Cominty Python SDK: chat and threads, memory, MCP
    integrations, agents, skills, document sources, and documents. Send your API
    key in the x-cominty-token header.
  version: main.5359267
servers:
  - url: https://ds.cominty.com
security:
  - comintyToken: []
paths:
  /drives/{drive_pid}:
    get:
      tags:
        - drives
      summary: Get a drive
      description: >-
        Fetch a drive and its files. A drive created by another user returns 404
        Not Found, even in the same organization.
      operationId: get_drive_drives__drive_pid__get
      parameters:
        - name: drive_pid
          in: path
          required: true
          schema:
            type: string
            title: Drive Pid
          description: Identifier of the drive.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DriveOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DriveOut:
      properties:
        id:
          type: string
          title: Id
          description: Identifier of the drive. Use it as config.drive_id.
        files:
          items:
            $ref: '#/components/schemas/FileOut'
          type: array
          title: Files
      additionalProperties: false
      type: object
      required:
        - id
        - files
      title: DriveOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FileOut:
      properties:
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        id:
          type: string
          title: Id
          description: Identifier of the file.
        name:
          type: string
          title: Name
        size:
          type: integer
          title: Size
        mimetype:
          type: string
          title: Mimetype
      additionalProperties: false
      type: object
      required:
        - created_at
        - updated_at
        - id
        - name
        - size
        - mimetype
      title: FileOut
    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:
    comintyToken:
      type: apiKey
      in: header
      name: x-cominty-token
      description: >-
        A Cominty Platform API secret. A key created now starts with sk-cmt-.
        Send it as is, or as Bearer sk-cmt-..., with at most one Bearer prefix.
        A key created before the prefix existed has no sk-cmt- and still works.

````

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