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

# Check if a file exists



## OpenAPI

````yaml /api-reference/openapi.personal.json get /v1/orgs/{slug}/volumes/{id}/files/exists
openapi: 3.1.0
info:
  title: Personal token API
  description: User-scoped API for account and organization management.
  version: 0.1.0
servers:
  - url: https://api.microsandbox.dev
security:
  - bearer: []
paths:
  /v1/orgs/{slug}/volumes/{id}/files/exists:
    get:
      tags:
        - Volumes
      summary: Check if a file exists
      operationId: exists
      parameters:
        - name: slug
          in: path
          description: Organization slug
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: Volume UUID
          required: true
          schema:
            type: string
            format: uuid
        - name: x-msb-file-path
          in: header
          description: URL-safe base64 encoded volume-relative UTF-8 path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Check if a file exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VolumeFileExistsResponse'
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
        '403':
          description: Insufficient permissions
        '404':
          description: Volume or path not found
        '502':
          description: Volume filesystem unavailable
      security:
        - bearer: []
components:
  schemas:
    VolumeFileExistsResponse:
      type: object
      description: Whether the requested path exists.
      required:
        - exists
      properties:
        exists:
          type: boolean
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        Personal access token (msb_pat_…) or session JWT - the credential an
        agent acts with on a user's behalf.

````