Important Note: Only documents created after May 30th 2023 are available for query and sort.
Examples
Here are some examples of what you can do with the Search Documents API. IMPORTANT: Query Template Documents - If you’re trying to query documents for a specific template can still follow the same guide below. Instead of retrieving a document in the Getting Started step, you simply need to use the Templates API route to retrieve the template. Retrieving theFile ID and FieldID for internal field queries work the same for both templates and documents because they both follow the same object structure.
Getting Started
Before we get started with querying documents data we are going to retrieve a document and grab our targetFileID and FieldID. These IDs will be used to query documents based on their internal field data.
Return exact match and sort results
Lookup documents that match the exact internal field value of"joy" and sort by createdOn.
Return substring match and sort results
Lookup documents that contain the internal field value of"joy" (case insensitive) and sort by internal field value.
Combine Multiple Filters
Lookup documents matching a combination of internal field data and date range. The documents below will contain the valuejoy and have a createdOn timestamp within the specified 6 day period.