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

# Get a file from Google Drive by its unique identifier

> The current handler contains placeholder logic; a successful response does not guarantee the requested operation was performed.



## OpenAPI

````yaml /api-reference/openapi.json get /app.rocksky.googledrive.getFile
openapi: 3.1.0
info:
  title: Rocksky XRPC API
  version: 1.0.0
  description: >-
    Generated from the registered Rocksky XRPC handlers and current lexicons.
    Provider-defined payloads remain open schemas. Some handlers return empty
    fallback objects on service failures. This reference describes the
    repository implementation; production may run an earlier revision.
  license:
    name: MIT License
    identifier: MIT
servers:
  - url: https://api.rocksky.app/xrpc
    description: Rocksky API
security: []
paths:
  /app.rocksky.googledrive.getFile:
    get:
      tags:
        - app.rocksky.googledrive
      summary: Get a file from Google Drive by its unique identifier
      description: >-
        The current handler contains placeholder logic; a successful response
        does not guarantee the requested operation was performed.
      operationId: app.rocksky.googledrive.getFile
      parameters:
        - name: fileId
          in: query
          required: true
          description: The unique identifier of the file to retrieve
          schema:
            type: string
            description: The unique identifier of the file to retrieve
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/app.rocksky.googledrive.defs__fileView'
        '400':
          description: Invalid XRPC request or parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/XrpcError'
        default:
          description: XRPC error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/XrpcError'
      security:
        - Bearer: []
components:
  schemas:
    app.rocksky.googledrive.defs__fileView:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the file.
        name:
          type: string
        fileId:
          type: string
        directoryId:
          type: string
        trackId:
          type: string
        createdAt:
          type: string
        updatedAt:
          type: string
    XrpcError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: Rocksky bearer token.

````

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