FlashDrive
App · 20 actions
Find files, read their text and track folders and documents in a shared drive.
Actions
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 ID
drive_idtextRequired - Drive id.
- Folder
folder_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 ID
drive_idtextRequired - Drive id.
- Flashdrive write protocol
flashdrive_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.
- Name
nametextRequired - Name.
- Parent folder ID
parent_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 ID
drive_idtextRequired - Drive id.
- Flashdrive write protocol
flashdrive_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.
- Query
querytextRequired - Query.
- Mode
modetext - 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 sensitive
case_sensitivetrue/false - For phrase and regex.Default:
false. - Path glob
path_globtext - Only files whose path matches this glob (ripgrep rules).
- Folder ID
folder_idtext - Only files in this folder and below.
- Context lines
context_linesnumber - Lines before and after each content match.From 0 to 5. Default:
0. - Limit
limitnumber - Limit.From 1 to 100. Default:
20. - Cursor
cursortext - 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 ID
drive_idtextRequired - Drive id.
- Limit
limitnumber - Limit.From 1 to 100. Default:
50. - Cursor
cursortext - Cursor.
- Parent folder ID
parent_folder_idtext - Parent folder id.
- Sort
sorttext - id (the default) or name, case-insensitive.One of:
id,name. Default:id. - Order
ordertext - 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 ID
drive_idtextRequired - Drive id.
- Pattern
patterntext - 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 ID
folder_idtext - A folder id, or root for unfiled files.
- Limit
limitnumber - Limit.From 1 to 100. Default:
50. - Cursor
cursortext - 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 ID
workspace_idtextRequired - Workspace id.
- Limit
limitnumber - Limit.From 1 to 100. Default:
50. - Cursor
cursortext - Cursor.
- State
statetext - 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 ID
drive_idtextRequired - Drive id.
- Flashdrive write protocol
flashdrive_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.
- Paths
pathslistRequired - 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 ID
drive_idtextRequired - Drive id.
- Document
document_idtextRequired - Document id.
- Offset
offsetnumber - Byte range: first byte (0-based) of the UTF-8 text.At least 0.
- Length
lengthnumber - Byte range: bytes to read; at most 32,768.From 1 to 32768.
- Start line
start_linenumber - Line range: first line (1-based).At least 1.
- Line count
line_countnumber - Line range: lines to read; the byte limit may end it sooner.From 1 to 2000.
- Revision
revisiontext - 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 ID
drive_idtextRequired - Drive id.
- Document
document_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 ID
workspace_idtextRequired - Workspace id.
- Operation ID
operation_idtextRequired - Operation id.
- Drive ID
drive_idtext - Optional drive scope for a direct operation lookup within this workspace.
- Wait
waittext - 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 ID
drive_idtextRequired - Drive id.
- Upload ID
upload_idtextRequired - Upload id.
- Wait
waittext - 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 ID
drive_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 ID
drive_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 ID
workspace_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 ID
drive_idtextRequired - Drive id.
- Folder
folder_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 ID
drive_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 ID
workspace_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 ID
drive_idtextRequired - Drive id.
- Limit
limitnumber - Limit.From 1 to 100. Default:
50. - Cursor
cursortext - Cursor.
- Folder ID
folder_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"
}
}