Search Files by Keyword
| ⚠️ This endpoint is currently in BETA |
|---|
Search files by keyword. The scope of the search is controlled by the request body:
- Provide
fileIdsto limit the search to specific files. - Provide
companyIdto limit the search to files associated with a specific company. - Omit both to search across your entire account.
fileIds and companyId are mutually exclusive.
Returns up to limit files ordered by relevance. Prompts with no strong matches may
still return low-relevance results.
Each result contains a matched file and a single representative excerpt (a matching passage from that file). Even if a file contains multiple matching passages, it appears exactly once in the response with one excerpt.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
- File Keyword Search Criteria (org-wide or by file IDs)
- File Keyword Search Criteria (by company)
Search all files in the org, or limit to specific file IDs.
The search query. Returns up to limit files ordered by relevance. Prompts with
no strong matches may still return low-relevance results.
3 - 500"revenue projections pitch deck"
Limit search to these specific files. Omit for org-wide search.
1001 <= x <= 2147483647[1, 2]Maximum number of files to return.
1 <= x <= 100Response
Created
Results of a keyword search over files.
Matching file results, one per file, ordered by relevance.
100