Skip to main content
GET
Get Upload File

Authorizations

Authorization
string
header
required

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Path Parameters

dataset_id
string<uuid>
required

Knowledge base ID. From List Knowledge Bases.

document_id
string<uuid>
required

Document ID. From List Documents.

Response

Source file details with signed preview and download URLs.

id
string<uuid>

File identifier.

name
string

Original file name.

size
integer

File size in bytes.

extension
string

File extension.

url
string

Signed URL to preview the file.

download_url
string

Signed URL to download the file as an attachment.

mime_type
string

File MIME type.

created_by
string<uuid>

ID of the user who uploaded the file.

created_at
integer<int64>

Unix timestamp of file upload.