# List Agent Response Files

GET

/

v1

/

agent

/

/

files

List Agent Response Files

```
curl --request GET \
  --url https://api.perplexity.ai/v1/agent/{id}/files \
  --header 'Authorization: Bearer <token>'
```

:::code-group
```title="200"
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "filename": "<string>",
      "bytes": 123,
      "created_at": 123
    }
  ]
}
```

```title="404"
{
  "error": {
    "message": "<string>",
    "code": "<string>",
    "type": "<string>"
  }
}
```
:::

#### Authorizations

Authorization

string

header

required

Bearer authentication header of the form `Bearer <token>`, where `<token>` is your auth token.

#### Path Parameters

id

string

required

Response id (`resp_<...>`)

#### Response

The list of files delivered from the response's sandbox.

object

string

required

Always `list`.

data

ResponseFile · object\[]

required

:::accordion{title="Show child attributes"}
:::

Was this page helpful?

⌘I

## Related pages

- [Admin & Management](./admin-management-index.md)
- [Agent API](./agent-api-2-index.md)
- [Agent API](./agent-api-index.md)
- [Analytics API](./analytics-api-index.md)
- [Authentication](./authentication-index.md)
- [Changelog](../changelog.md)
- [Cookbook](./cookbook-2-index.md)
- [Embeddings API](./embeddings-api-2-index.md)
- [Embeddings API](./embeddings-api-index.md)
- [Getting Started](./getting-started-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
