Get a file from a specific source

get/sources/{sourceId}/files/{fileId}

Returns a file in a local source.

Request Samples

Response Samples

1{
2 "filepath": "report.pdf",
3 "insertTimestamp": "2025-12-12T10:15:30.123456+00:00",
4 "metadata": {
5 "size": 204800,
6 "type": "pdf"
7 },
8 "sourceFileId": "f39dad75-a389-469a-a258-4e7295a12b8b",
9 "sourceId": "cef92c26-c0dc-4a6f-a10a-7e3996bf2559",
10 "updateTimestamp": "2025-12-13T09:45:12.654321+00:00"
11}

Path Parameters

NameTypeRequiredDescription
fileId
string
true

The id of the file to retrieve.

sourceId
string
true

The id of the source to retrieve the file from.

Responses

StatusMeaningDescription
200OK

The request succeeded.

HeadersSchema
400Bad Request

The request was invalid.

Schema
401Unauthorized

The user was not authenticated.

Schema
422Unprocessable Entity

The server understands the request but was unable to process the contained instructions.

Schema