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

# Fetch one remote file

> Copy one provider file, named by an open_ref from browse, into a Vault (vault_id) or to a presigned S3 PUT URL (upload_url). Runs synchronously; files over 100 MB return 413 and belong in a transfer. A repeat for an unchanged provider version returns the first copy with 200. Vault copies are stored as uploaded: call POST /vault/{id}/ingest/{objectId} to index them. Fetched copies are never exported by a link.



## OpenAPI

````yaml /openapi.json post /connectors/v1/fetch
openapi: 3.1.0
info:
  title: Case.dev API
  description: >-
    The AI-native platform for legal technology. Build smarter legal
    applications with our suite of AI-powered APIs.
  version: 1.0.0
  contact:
    name: Case.dev Support
    email: support@casemark.com
    url: https://case.dev
  license:
    name: Proprietary
    url: https://case.dev/terms
servers:
  - url: https://api.case.dev
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Vaults
    description: Secure document storage with semantic search
  - name: Vault Events
    description: Vault-scoped event subscriptions and delivery testing
  - name: Vault Memory
    description: Vault-scoped persistent memory and semantic retrieval
  - name: Vault Objects
    description: Vault object management, content access, and document operations
  - name: Memory
    description: >-
      Persistent memory for AI agents with semantic search and 12 generic
      indexed tag fields
  - name: OCR
    description: Extract text from PDFs, images, and scanned documents
  - name: Voice
    description: Audio transcription and text-to-speech
  - name: LLMs
    description: Access 40+ language models through a unified API
  - name: Search
    description: Web search and AI answers
  - name: Mail
    description: Managed inboxes for agent email workflows
  - name: Media
    description: Transcript retrieval and captioned media clip generation
  - name: Legal
    description: Legal research tools including citation verification
  - name: Privilege
    description: Privilege detection for e-discovery and litigation workflows
  - name: Compute
    description: Serverless GPU and CPU infrastructure
  - name: Format
    description: Document formatting and template rendering (MD/JSON to PDF/DOCX)
  - name: SuperDoc
    description: Document conversion and template automation
  - name: Webhooks
    description: Webhook endpoint management
  - name: System
    description: Public system metadata and discovery endpoints
  - name: Usage
    description: Usage reporting and webhook subscriptions
  - name: Database
    description: Serverless PostgreSQL databases with instant branching
  - name: Translation
    description: Language detection and translation for multilingual legal workflows
  - name: Skills
    description: Search and read legal AI skills for agents
  - name: Agents/Linc
    description: Durable, stateful legal agent sessions with sandboxed tools and files
  - name: Matters
    description: Matter-native legal workspaces and orchestration primitives
  - name: Connectors
    description: Import and export between provider folders and vaults
  - name: Applications Projects
    description: Web application project management
  - name: Applications Deployments
    description: Web application deployment management
  - name: Applications Domains
    description: Custom domain configuration for applications
  - name: Applications Env Vars
    description: Environment variable management for applications
paths:
  /connectors/v1/fetch:
    post:
      tags:
        - Connectors
      summary: Fetch one remote file
      description: >-
        Copy one provider file, named by an open_ref from browse, into a Vault
        (vault_id) or to a presigned S3 PUT URL (upload_url). Runs
        synchronously; files over 100 MB return 413 and belong in a transfer. A
        repeat for an unchanged provider version returns the first copy with
        200. Vault copies are stored as uploaded: call POST
        /vault/{id}/ingest/{objectId} to index them. Fetched copies are never
        exported by a link.
      operationId: fetchConnectorFile
      parameters:
        - name: x-case-connector-subject
          in: header
          schema:
            type: string
            pattern: ^[A-Za-z0-9_-]{1,255}$
          description: >-
            Trusted server-to-server application-user assertion. Must match the
            subject the open_ref was minted for.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - open_ref
              properties:
                open_ref:
                  type: string
                  description: From a browse item, exactly as received
                vault_id:
                  type: string
                  description: Destination Vault. Exactly one destination.
                upload_url:
                  type: string
                  description: >-
                    Presigned HTTPS S3 PUT URL. Content-Type must not be a
                    signed header. Exactly one destination.
      responses:
        '200':
          description: >-
            An earlier copy of this provider version, returned without
            downloading
        '201':
          description: File copied
          content:
            application/json:
              schema:
                type: object
                properties:
                  fetch_id:
                    type: string
                  reused:
                    type: boolean
                    description: True when an earlier copy was returned
                  vault_id:
                    type: string
                    nullable: true
                  vault_object_id:
                    type: string
                    nullable: true
                  filename:
                    type: string
                  content_type:
                    type: string
                  size_bytes:
                    type: integer
                  checksum:
                    type: string
                    description: sha256 of the copied bytes
                  provider_version:
                    type: object
                    nullable: true
                  modified_at:
                    type: string
                    nullable: true
        '400':
          description: Missing open_ref, or not exactly one valid destination
        '401':
          description: Invalid API key
        '403':
          description: Insufficient permissions, Vault not granted, or connector disabled
        '404':
          description: open_ref, connection, Vault or file not found
        '409':
          description: Connection needs reauthorization, or fetch_in_progress
        '413':
          description: 'fetch_too_large: over 100 MB'
        '422':
          description: fetch_not_supported or fetch_unsupported_item
        '429':
          description: Provider request budget exhausted; Retry-After when known
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds before retrying
        '502':
          description: provider_error or upload_url_rejected
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key starting with `sk_case_`

````

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