Skip to main content
GET
/
v1
/
datasets
/
files
/
{file_str}
/
download
curl --request GET \
  --url "https://api.roe-ai.com/v1/datasets/files/YOUR_FILE_ID/download/" \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --output downloaded_file.pdf
"Binary file content"
curl --request GET \
  --url "https://api.roe-ai.com/v1/datasets/files/YOUR_FILE_ID/download/" \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --output downloaded_file.pdf

Path Parameters

file_str
string
required

File string identifier (encoded file ID with optional metadata)

Query Parameters

page_range
string

Page range for PDF files (e.g., '1-5', '1,3,5', '1-3,5-7')

Response

File content

The response is of type file.