FlashDrive

App · 20 actions

Find files, read their text and track folders and documents in a shared drive.

Actions

ActionWhat it does
Count the folders and files in a folder and everything below it, and their bytes, to show before a recursive deleteCount the folders and files in a folder and everything below it, and their bytes, to show before a recursive delete
Create folderCreate folder
Find text in a drive's files by keyword, exact phrase or pattern, with the matching line; needs full-text search turned on for the driveFind text in a drive's files by keyword, exact phrase or pattern, with the matching line; needs full-text search turned on for the drive
Get the enforced content limitsGet the enforced content limits
List direct child folders; omission selects rootList direct child folders; omission selects root
List files by path, or find them with a glob pattern; continue with next_cursor until it is nullList files by path, or find them with a glob pattern; continue with next_cursor until it is null
List workspace drivesList workspace drives
Make sure folder paths exist: at most 500 paths of at most 64 names; existing folders are reusedMake sure folder paths exist: at most 500 paths of at most 64 names; existing folders are reused
Read a file's extracted text by byte range or by line range; without parameters, the first linesRead a file's extracted text by byte range or by line range; without parameters, the first lines
Read accepted and searchable revision IDsRead accepted and searchable revision IDs
Read an operation's statusRead an operation's status
Read an upload's processing state and accepted operationRead an upload's processing state and accepted operation
Read bulk upload supportRead bulk upload support
Read drive counts and published snapshotRead drive counts and published snapshot
Read enabled search policyRead enabled search policy
Read folderRead folder
Read how many files and bytes the drive holds, live and in the trash. Every count of bytes is a whole number of bytes of original file content; storage is billed in decimal gigabytes (1 GB is 1,000,000,000 bytes). A deleted file counts in the deleted fields and in stored_bytes until its hour in the trash has passed and it is removed. A drive that does not support this operation answers 409 not_supported_on_this_drive.Read how many files and bytes the drive holds, live and in the trash.
Read the workspace default driveRead the workspace default drive
Read workspace key context and SDK compatibilityRead workspace key context and SDK compatibility
Snapshot list; omit folder_id for all, use root for unfiledSnapshot list; omit folder_id for all, use root for unfiled

Count the folders and files in a folder and everything below it, and their bytes, to show before a recursive delete

Count the folders and files in a folder and everything below it, and their bytes, to show before a recursive delete

Inputs

Drive IDdrive_idtextRequired
Drive id.
Folderfolder_idtextRequired
Folder id.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "bytes": 1,
    "capped": false,
    "documents": 1,
    "folders": 1
  }
}

Create folder

Create folder

Inputs

Drive IDdrive_idtextRequired
Drive id.
Flashdrive write protocolflashdrive_write_protocoltext
Declare support for server-owned writes. Required on drives with server finalization enabled. Read uploads/capabilities before interpreting queued upload receipts; keep this header on every drive mutation, including continuation requests.
NamenametextRequired
Name.
Parent folder IDparent_folder_idtext
Parent folder id.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "created_at": "2026-11-30T12:00:00Z",
    "depth": 1,
    "id": "00000000-0000-4000-8000-000000000001",
    "name": "Example",
    "parent_folder_id": "00000000-0000-4000-8000-000000000001",
    "path": "Example",
    "sequence": "Example",
    "version": "Example"
  }
}

Find text in a drive's files by keyword, exact phrase or pattern, with the matching line; needs full-text search turned on for the drive

Find text in a drive's files by keyword, exact phrase or pattern, with the matching line; needs full-text search turned on for the drive

Inputs

Drive IDdrive_idtextRequired
Drive id.
Flashdrive write protocolflashdrive_write_protocoltext
Declare support for server-owned writes. Required on drives with server finalization enabled. Read uploads/capabilities before interpreting queued upload receipts; keep this header on every drive mutation, including continuation requests.
QueryquerytextRequired
Query.
Modemodetext
keyword: all words in any order, ranked. phrase: the words in order, ranked. regex: a pattern applied to each line (no look-around or back-references).One of: keyword, phrase, regex. Default: keyword.
Case sensitivecase_sensitivetrue/false
For phrase and regex.Default: false.
Path globpath_globtext
Only files whose path matches this glob (ripgrep rules).
Folder IDfolder_idtext
Only files in this folder and below.
Context linescontext_linesnumber
Lines before and after each content match.From 0 to 5. Default: 0.
Limitlimitnumber
Limit.From 1 to 100. Default: 20.
Cursorcursortext
next_cursor of the previous page, with the same query.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "complete": false,
    "index": {
      "indexed_documents": 1,
      "state": "ready",
      "verified_at": "2026-11-30T12:00:00Z"
    },
    "next_cursor": "Example",
    "results": [
      {
        "after": [
          "Example"
        ],
        "before": [
          "Example"
        ],
        "citation": {
          "anchor": {},
          "document_id": "00000000-0000-4000-8000-000000000001",
          "revision": "Example",
          "source_url": "https://example.com"
        },
        "document_id": "00000000-0000-4000-8000-000000000001",
        "end_line": 1,
        "filename": "Example",
        "kind": "content",
        "path": "Example",
        "revision": "Example",
        "score": 1,
        "start_line": 1,
        "text": "Example"
      }
    ]
  }
}

Get the enforced content limits

Get the enforced content limits

Inputs

None.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "max_drive_documents": 1,
    "max_drive_source_bytes": 1,
    "max_file_bytes": 1,
    "max_text_bytes": 1,
    "schema": "Example"
  }
}

List direct child folders; omission selects root

List direct child folders; omission selects root

Inputs

Drive IDdrive_idtextRequired
Drive id.
Limitlimitnumber
Limit.From 1 to 100. Default: 50.
Cursorcursortext
Cursor.
Parent folder IDparent_folder_idtext
Parent folder id.
Sortsorttext
id (the default) or name, case-insensitive.One of: id, name. Default: id.
Orderordertext
Order.One of: asc, desc. Default: asc.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "data": [
      {
        "counts_capped": false,
        "created_at": "2026-11-30T12:00:00Z",
        "etag": "Example",
        "file_count": 1,
        "folder_count": 1,
        "id": "00000000-0000-4000-8000-000000000001",
        "item_count": 1,
        "name": "Example",
        "parent_folder_id": "00000000-0000-4000-8000-000000000001",
        "version": "Example"
      }
    ],
    "next_cursor": "Example"
  }
}

List files by path, or find them with a glob pattern; continue with next_cursor until it is null

List files by path, or find them with a glob pattern; continue with next_cursor until it is null

Inputs

Drive IDdrive_idtextRequired
Drive id.
Patternpatterntext
Glob as ripgrep reads one: * and ? stay in a folder, ** crosses folders, [a-z] and {a,b} work. Without a slash it matches file names at any depth.
Folder IDfolder_idtext
A folder id, or root for unfiled files.
Limitlimitnumber
Limit.From 1 to 100. Default: 50.
Cursorcursortext
next_cursor of the previous page, with the same other parameters.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "complete": false,
    "data": [
      {
        "document_id": "00000000-0000-4000-8000-000000000001",
        "filename": "Example",
        "folder_id": "00000000-0000-4000-8000-000000000001",
        "format": "Example",
        "path": "Example",
        "revision": "Example",
        "searchable": false,
        "size_bytes": 1
      }
    ],
    "next_cursor": "Example"
  }
}

List workspace drives

List workspace drives

Inputs

Workspace IDworkspace_idtextRequired
Workspace id.
Limitlimitnumber
Limit.From 1 to 100. Default: 50.
Cursorcursortext
Cursor.
Statestatetext
Omit for active drives. Deleted drive recovery must be enabled on the server.One of: deleted.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "data": [
      {
        "etag": "Example",
        "full_text": false,
        "id": "00000000-0000-4000-8000-000000000001",
        "mode": "Example",
        "name": "Example",
        "version": "Example"
      }
    ],
    "next_cursor": "Example"
  }
}

Make sure folder paths exist: at most 500 paths of at most 64 names; existing folders are reused

Make sure folder paths exist: at most 500 paths of at most 64 names; existing folders are reused

Inputs

Drive IDdrive_idtextRequired
Drive id.
Flashdrive write protocolflashdrive_write_protocoltext
Declare support for server-owned writes. Required on drives with server finalization enabled. Read uploads/capabilities before interpreting queued upload receipts; keep this header on every drive mutation, including continuation requests.
PathspathslistRequired
Paths.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "folders": [
      {
        "id": "00000000-0000-4000-8000-000000000001",
        "path": "Example"
      }
    ],
    "sequence": "Example"
  }
}

Read a file's extracted text by byte range or by line range; without parameters, the first lines

Read a file's extracted text by byte range or by line range; without parameters, the first lines

Inputs

Drive IDdrive_idtextRequired
Drive id.
Documentdocument_idtextRequired
Document id.
Offsetoffsetnumber
Byte range: first byte (0-based) of the UTF-8 text.At least 0.
Lengthlengthnumber
Byte range: bytes to read; at most 32,768.From 1 to 32768.
Start linestart_linenumber
Line range: first line (1-based).At least 1.
Line countline_countnumber
Line range: lines to read; the byte limit may end it sooner.From 1 to 2000.
Revisionrevisiontext
Reject with 412 when the file's latest revision differs.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "document_id": "00000000-0000-4000-8000-000000000001",
    "length": 1,
    "mode": "Example",
    "next_offset": 1,
    "offset": 1,
    "revision": "Example",
    "text": "Example",
    "total_bytes": 1
  }
}

Read accepted and searchable revision IDs

Read accepted and searchable revision IDs

Inputs

Drive IDdrive_idtextRequired
Drive id.
Documentdocument_idtextRequired
Document id.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "content_revision": "Example",
    "created_at": "2026-11-30T12:00:00Z",
    "external_id": "sample_external_id",
    "filename": "Example",
    "folder_id": "00000000-0000-4000-8000-000000000001",
    "id": "00000000-0000-4000-8000-000000000001",
    "kind": "pdf",
    "latest_revision": "Example",
    "metadata": {},
    "operation_id": "00000000-0000-4000-8000-000000000001",
    "operation_state": "Example",
    "searchable_revision": "Example",
    "source": "upload",
    "source_bytes": 1,
    "source_format": "Example",
    "source_id": "sample_source_id",
    "source_url": "https://example.com",
    "source_version": "Example",
    "text_status": "text",
    "text_status_reason": "no_text_layer",
    "updated_at": "2026-11-30T12:00:00Z"
  }
}

Read an operation's status

Read an operation's status

Inputs

Workspace IDworkspace_idtextRequired
Workspace id.
Operation IDoperation_idtextRequired
Operation id.
Drive IDdrive_idtext
Optional drive scope for a direct operation lookup within this workspace.
Waitwaittext
Wait.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "completed_at": "Example",
    "created_at": "Example",
    "document_count": 1,
    "error_code": "Example",
    "error_message": "Example",
    "id": "00000000-0000-4000-8000-000000000001",
    "index_snapshot_id": "00000000-0000-4000-8000-000000000001",
    "progress": {
      "accepted_documents": 1,
      "failed_documents": 1,
      "indexed_documents": 1
    },
    "status": "queued",
    "usage": {}
  }
}

Read an upload's processing state and accepted operation

Read an upload's processing state and accepted operation

Inputs

Drive IDdrive_idtextRequired
Drive id.
Upload IDupload_idtextRequired
Upload id.
Waitwaittext
Wait.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "committed_content_revision": "Example",
    "committed_revision": "Example",
    "document_id": "00000000-0000-4000-8000-000000000001",
    "error_code": "Example",
    "error_message": "Example",
    "id": "00000000-0000-4000-8000-000000000001",
    "operation_id": "00000000-0000-4000-8000-000000000001",
    "state": "Example",
    "timings": {
      "created_at": "2026-11-30T12:00:00Z",
      "processing_ms": 1,
      "queue_ms": 1,
      "searchable_at": "2026-11-30T12:00:00Z",
      "total_ms": 1,
      "transfer_ms": 1,
      "uploaded_at": "2026-11-30T12:00:00Z",
      "uploaded_to_searchable_ms": 1
    },
    "warnings": [
      "Example"
    ]
  }
}

Read bulk upload support

Read bulk upload support

Inputs

Drive IDdrive_idtextRequired
Drive id.

Outputs

dataobject
How this drive takes uploads. Read it before uploading more than one file. version 1: the drive has the batch routes (uploads/batch, uploads/batch/complete, uploads/batch/status); max_items is the most files one batch request names and max_body_bytes the largest JSON body of one. version 2: the drive takes files one at a time and has no batch routes (they answer 409 not_supported_on_this_drive); max_items is 1, and max_body_bytes is the largest JSON body an upload route accepts. max_file_bytes, when present, is this drive’s file-size ceiling; when absent, keep the legacy file-size limit.
Example output
{
  "data": {
    "max_body_bytes": "Example",
    "max_items": "Example",
    "version": "Example"
  }
}

Read drive counts and published snapshot

Read drive counts and published snapshot

Inputs

Drive IDdrive_idtextRequired
Drive id.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "document_count": "Example",
    "full_text": false,
    "id": "00000000-0000-4000-8000-000000000001",
    "index_snapshot_id": "00000000-0000-4000-8000-000000000001",
    "indexed_document_count": "Example",
    "last_searchable_at": "Example",
    "mode": "Example",
    "name": "Example",
    "status": "Example",
    "version": "Example"
  }
}

Read enabled search policy

Read enabled search policy

Inputs

Workspace IDworkspace_idtextRequired
Workspace id.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "effort_config": {
      "large": {
        "timeout_ms": 1
      },
      "medium": {
        "timeout_ms": 1
      },
      "small": {
        "timeout_ms": 1
      }
    },
    "enabled_efforts": [
      "small"
    ],
    "search_enabled": false
  }
}

Read folder

Read folder

Inputs

Drive IDdrive_idtextRequired
Drive id.
Folderfolder_idtextRequired
Folder id.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "created_at": "2026-11-30T12:00:00Z",
    "depth": 1,
    "id": "00000000-0000-4000-8000-000000000001",
    "name": "Example",
    "parent_folder_id": "00000000-0000-4000-8000-000000000001",
    "path": "Example",
    "version": "Example"
  }
}

Read how many files and bytes the drive holds, live and in the trash. Every count of bytes is a whole number of bytes of original file content; storage is billed in decimal gigabytes (1 GB is 1,000,000,000 bytes). A deleted file counts in the deleted fields and in stored_bytes until its hour in the trash has passed and it is removed. A drive that does not support this operation answers 409 not_supported_on_this_drive.

Read how many files and bytes the drive holds, live and in the trash. Every count of bytes is a whole number of bytes of original file content; storage is billed in decimal gigabytes (1 GB is 1,000,000,000 bytes). A deleted file counts in the deleted fields and in stored_bytes until its hour in the trash has passed and it is removed. A drive that does not support this operation answers 409 not_supported_on_this_drive.

Inputs

Drive IDdrive_idtextRequired
Drive id.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "deleted_document_count": 1,
    "deleted_source_bytes": 1,
    "document_count": 1,
    "source_bytes": 1,
    "stored_bytes": 1
  }
}

Read the workspace default drive

Read the workspace default drive

Inputs

Workspace IDworkspace_idtextRequired
Workspace id.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "default_drive_id": "00000000-0000-4000-8000-000000000001",
    "version": "Example"
  }
}

Read workspace key context and SDK compatibility

Read workspace key context and SDK compatibility

Inputs

None.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "compatibility": {
      "api_major": 1,
      "cli": {
        "api_major": 1,
        "latest_stable_cli_version": "Example",
        "minimum_cli_version": "Example",
        "notices": [
          {}
        ]
      },
      "latest_stable_sdk_version": "Example",
      "minimum_sdk_version": "Example",
      "notices": [
        {
          "documentation_url": "https://example.com",
          "effective_date": "2026-11-30T12:00:00Z",
          "id": "sample_id",
          "message": "Example",
          "severity": "upgrade"
        }
      ]
    },
    "default_drive_id": "00000000-0000-4000-8000-000000000001",
    "default_version": "Example",
    "permission": "search",
    "upload_batch": {
      "max_body_bytes": "Example",
      "max_items": "Example",
      "version": "Example"
    },
    "workspace_id": "00000000-0000-4000-8000-000000000001"
  }
}

Snapshot list; omit folder_id for all, use root for unfiled

Snapshot list; omit folder_id for all, use root for unfiled

Inputs

Drive IDdrive_idtextRequired
Drive id.
Limitlimitnumber
Limit.From 1 to 100. Default: 50.
Cursorcursortext
Cursor.
Folder IDfolder_idtext
Folder id.

Outputs

dataobject
The response from FlashDrive.
Example output
{
  "data": {
    "data": [
      {
        "content_revision": "Example",
        "created_at": "2026-11-30T12:00:00Z",
        "external_id": "sample_external_id",
        "filename": "Example",
        "folder_id": "00000000-0000-4000-8000-000000000001",
        "id": "00000000-0000-4000-8000-000000000001",
        "kind": "pdf",
        "latest_revision": "Example",
        "metadata": {},
        "operation_id": "00000000-0000-4000-8000-000000000001",
        "operation_state": "Example",
        "searchable_revision": "Example",
        "source": "upload",
        "source_bytes": 1,
        "source_format": "Example",
        "source_id": "sample_source_id",
        "source_url": "https://example.com",
        "source_version": "Example",
        "text_status": "text",
        "text_status_reason": "no_text_layer",
        "updated_at": "2026-11-30T12:00:00Z"
      }
    ],
    "next_cursor": "Example"
  }
}

On this page