Skip to main content
Search files stored in Affinity by keyword, optionally limited to one company or specific files.
Tool ID: affinity_v2_files_search_post

Run this action

Use the TypeScript SDK for one call. Use ctx.tools.execute(...) inside a Play for durable calls, scheduled calls, or CSV processing.

CLI

Example response

The SDK returns this shape at result.toolResponse.raw. The example values illustrate the response.
Use deepline describe affinity_v2_files_search_post --json for the latest machine-readable contract.

Input reference

Search files by keyword. The scope of the search is controlled by the request body: - Provide fileIds to limit the search to specific files. - Provide companyId to 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.

Output reference

Deepline cost

  • Pricing model: fixed (per call).
  • Estimated Deepline credits: 0 per pricing unit.
  • Provider-native pricing may still exist outside Deepline credit billing.