Skip to main content
GET
/
knowledge
/
{knowledge_base_id}
/
files
/
{file_id}
/
download_url
cURL
curl --request GET \
  --url https://api.opper.ai/v2/knowledge/{knowledge_base_id}/files/{file_id}/download_url \
  --header 'Authorization: Bearer <token>'
{
  "url": "<string>",
  "expires_in": 123
}

Authorizations

Authorization
string
header
required

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

Path Parameters

knowledge_base_id
string<uuid>
required

The id of the knowledge base

file_id
string<uuid>
required

The id of the file

Response

Successful Response

url
string
required

Presigned URL to download the file

expires_in
integer
required

Number of seconds until the URL expires