Skip to main content
Perplexity

Search documentation

Type to search this documentation.

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>'
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>"
  }
}

Authorization

string

header

required

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

id

string

required

Response id (resp_<...>)

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

object

string

required

Always list.

data

ResponseFile · object[]

required

Show child attributes

Was this page helpful?

⌘I

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu