---
title: "Search selected file contents"
method: POST
path: "/tally/files/content-search"
tags: ["Tally Files"]
---

# Search selected file contents

`POST /tally/files/content-search`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/tally/files/content-search`
- Auth: HTTP bearer

Performs bounded on-demand content search and saves a Markdown report with page, sheet/cell, ZIP-entry, or line citations.

## Request body

- object
  - `query` string, required
  - `fileIds` string[], required
  - `companyOrganizationId` string, uuid, nullable, required
  - `destinationPath` string, required

## Response `201`

Cited search report

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
