Document Index
The "Document Index" endpoint generates a comprehensive index of all documents within a specified Google Drive folder. By default, this endpoint will recursively index all subfolders, but you can choose to disable this behavior if desired. The response includes detailed metadata for each document and folder, making it easier to manage and access documents during processes like due diligence.
Endpoint
Parameters
google_drive_folder (required, string): The Google Drive folder ID that you want to index. This can be found from the Google Drive UI by navigating to the folder and copying the folder ID from the URL. The folder ID is the string of characters following
/folders/
in the URL.Example URL:
https://drive.google.com/drive/u/0/folders/1A2B3C4D5E6F7G8H9I
In this example, the folder ID is
1A2B3C4D5E6F7G8H9I
.recursive (optional, boolean): Specifies whether to index subfolders recursively. The default value is
true
. Set tofalse
if you only want to index the documents in the specified folder without including subfolders.
Note: The user must be logged in with an account that is authorized to access the specified Google Drive folder.
Example Request
Example Response
Usage Notes
Google Drive Folder ID: To obtain the correct folder ID, navigate to the desired folder in Google Drive and copy the folder ID from the URL. Ensure you have the necessary permissions to access the folder.
Metadata Included: The response includes comprehensive metadata for each document and folder, such as
document_id
,document_name
,document_url
,date_created
,date_updated
,size
,mime_type
,folder_id
, andsource
. This allows for easier document management and retrieval.Recursive Indexing: By default, the endpoint will index all documents within the folder and its subfolders. Use the
recursive
parameter to control whether subfolders should be indexed.
Example Use Case: Due Diligence Document Index
In a due diligence process, it’s crucial to organize and review a vast number of documents across multiple categories, such as financial reports, legal agreements, and compliance certifications. By using the "Document Index" endpoint, you can automatically generate a detailed index of all files stored in a Google Drive folder designated for due diligence.
This index will not only categorize the documents but also provide important metadata like creation and update dates, file sizes, document IDs for direct retrieval, and direct URLs for easy access. This information can be invaluable for keeping track of document versions and ensuring all necessary materials are readily available to the due diligence team.
Last updated