> 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.

# Files List

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

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

## 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)

## Response

### 200

Successful Response

- `list of AppFilesFileOut`

## Errors

### 422 Agents Files List Request Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### AppFilesFileOut

- `id` (string, required)
- `path` (string, required)
- `media_type` (string, required)
- `size` (integer, required)
- `searchable` (boolean, required)
- `index` (IndexOut, required, nullable) — How far a searchable file's index is: `indexing`, `ready` or `failed`; what to know of it (why it failed, what of it can't be searched); how many of its pages had no text and were read by the model.
- `created_at` (datetime, required)

### ValidationError

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

### IndexOut

How far a searchable file's index is: `indexing`, `ready` or `failed`; what to know of it (why it failed, what of it can't be searched); how many of its pages had no text and were read by the model.

- `state` (enum, required)
  - Allowed values: `indexing`, `ready`, `failed`
- `detail` (string, required, nullable)
- `scanned` (integer, required)

### ValidationErrorLocItem

## Examples

**Response**

```json
[
  {
    "id": "id",
    "path": "path",
    "media_type": "media_type",
    "size": 1,
    "searchable": true,
    "index": {
      "state": "indexing",
      "detail": "detail",
      "scanned": 1
    },
    "created_at": "2024-01-15T09:30:00Z"
  }
]
```

**SDK Code**

```python
import requests

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

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

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

print(response.json())
```