---
title: "Get affected files by error"
method: GET
path: "/runs/{id}/agents/{agent_id}/errors/files"
tags: ["Runs"]
---

# Get affected files by error

`GET /runs/{id}/agents/{agent_id}/errors/files`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/runs/{id}/agents/{agent_id}/errors/files`
- Auth: API key in header `Authorization`

Returns affected files by error.

## Path parameters

- `id` number, required
- `agent_id` number, required

## Query parameters

- `folderid` string
- `error_code` string
- `max_entries` number

## Response `200`

Successful response

- object
  - `size` number, required: Total number of files in the error
  - `path` string, required: Base path for all files
  - `files` object, required: List of files information
  - `files.path` string, required: Relative file path
  - `files.real_name` string, required: Real file path on disk
  - `files.name` string, required: File name

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

[API](https://skmtc.dev/resilio/apis/resilio-api.md) - [All operations](https://skmtc.dev/resilio/apis/resilio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/resilio/apis/resilio-api/revisions/ca39130a395e?raw)
