> This page is for Referencia de la API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://signalcore.ai/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://signalcore.ai/docs/_mcp/server.

# Search Files

GET https://signalcore.ai/v1/agents/{agent_id}/files/search

What the agent finds in the files it may read (its own and the organization's), as its
`search_files` finds it.

Reference: https://signalcore.ai/docs/referencia/agentes/search-files

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `agent_id` (string, required)

### Query parameters

- `query` (string, required)
- `path` (string, optional, nullable)
- `limit` (integer, optional, default: 6)

## Response

### 200

Successful Response

- `list of Hit`

## Errors

### 422 Agents Search Files Request Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### Hit

A passage found: its file, where it is in it (in words, and as its parts: first and last page, sheet, first and last row, section) and its text.

- `path` (string, required)
- `location` (string, required)
- `text` (string, required)
- `pages` (list of integer, required, nullable)
- `sheet` (string, required, nullable)
- `rows` (list of integer, required, nullable)
- `section` (string, required, nullable)

### ValidationError

- `loc` (list of ValidationErrorLocItem, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (map from string to any, optional)

### ValidationErrorLocItem

## Examples

**Response**

```json
[
  {
    "path": "path",
    "location": "location",
    "text": "text",
    "pages": [
      1
    ],
    "sheet": "sheet",
    "rows": [
      1
    ],
    "section": "section"
  }
]
```

**SDK Code**

```python
import requests

url = "https://signalcore.ai/v1/agents/agent_id/files/search"

querystring = {"query":"query"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```