Skip to main content
Perplexity

Search documentation

Type to search this documentation.

Download Agent Response File

GET

/

v1

/

agent

/

/

files

/

/

content

Download Agent Response File

curl --request GET \
  --url https://api.perplexity.ai/v1/agent/{id}/files/{file_id}/content \
  --header 'Authorization: Bearer <token>'
title="200"
"<string>"
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_<...>)

file_id

string

required

File id from the file list endpoint

The raw file bytes.

The response is of type file.

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