longrun.
Download a file

Docs

Files / Download a file

Download a file

Returns file bytes, not JSON. Include your API key.

GEThttps://uselongrun.app/v1/files/{file_id}/content
Request
curl --request GET "https://uselongrun.app/v1/files/${FILE_ID}/content" \
  --header "Authorization: Bearer ${API_KEY}" --output downloaded-file

Request parameters

path
idstringRequired

The file ID to use. Copy the id from an upload response or from Files. Replace {id} in the URL with that value.

Example
"${FILE_ID}"

Returns

Returns the file contents as bytes. Save the response to a file rather than parsing it as JSON.