> ## 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 files exist



## OpenAPI

````yaml /api-reference/openapi.personal.json post /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:
    post:
      tags:
        - Volumes
      summary: Check if files exist
      operationId: exists_batch
      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
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FilePathsRequest'
        required: true
      responses:
        '200':
          description: Check if files exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VolumeFileExistsBatchResponse'
        '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:
    FilePathsRequest:
      type: object
      required:
        - paths
      properties:
        paths:
          type: array
          items:
            type: string
          description: Volume-relative paths to check, at most 100 per request.
          maxItems: 100
    VolumeFileExistsBatchResponse:
      type: object
      description: Requested paths that exist in the volume.
      required:
        - existing_paths
      properties:
        existing_paths:
          type: array
          items:
            type: string
  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.

````