Get a source file (metadata + signed download URL)
GET
/api/v1/files/{fileId}
const url = 'https://api.langparse.dev/api/v1/files/example';const options = {method: 'GET', headers: {'X-Api-Key': '<X-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.langparse.dev/api/v1/files/example \ --header 'X-Api-Key: <X-Api-Key>'The fileId is the id of a folder-listing item (or a document’s file). Returns file metadata and a short-lived presigned S3 download URL (attachment, ~15 min). Request on demand; do not cache the URL.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”fileId
required
string
Responses
Section titled “Responses”File metadata + signed download URL
Media typeapplication/json
object
id
string
fileName
string
byteSize
integer
pageCount
integer
contentType
string
url
Presigned S3 GET (attachment). Expires per expiresInSeconds.
string
expiresInSeconds
integer
Examplegenerated
{ "id": "example", "fileName": "example", "byteSize": 1, "pageCount": 1, "contentType": "example", "url": "example", "expiresInSeconds": 1}Missing or invalid API key
File not found