Search Documents
DocHub24
DocHub24
Search Documents
Full-text search within a document library.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
library_id | dropdown | Required | The document library to search. |
search_query | text | Required | Search text to find documents. |
page | number | Optional | Page number (1-based). |
page_size | number | Optional | Number of results per page (max 200). |
Outputs
| Name | Type | Description |
|---|---|---|
body | object | Search results. |
total | number | Total matching documents. |
documents | array of object | Matching documents. |
id | text | Document ID. |
title | text | Document title. |
libraryId | text | Library ID the document belongs to. |
tenantId | text | Tenant ID. |
fileName | text | Original file name. |
mimeType | text | MIME type of the file. |
sizeBytes | number | File size in bytes. |
classification | number | Classification level. |
currentVersionId | text | ID of the current document version. |
createdAt | text | Creation timestamp (ISO 8601). |
updatedAt | text | Last updated timestamp (ISO 8601). |
createdById | text | ID of the user who created the document. |
fieldValues | object | Custom field values keyed by field ID. |
isDeleted | yes/no | Whether the document is soft-deleted. |
externalRef | text | External reference identifier, if any. |
matches | array of object | Search match details per document. |
documentId | text | ID of the matched document. |
fields | array | Fields that matched the search query. Further: item fields: field, value. |