Skip to main content
GET
https://api.neosantara.xyz
/
v1
/
files
/
:file_id
/
content
Download File Content
curl --request GET \
  --url https://api.neosantara.xyz/v1/files/:file_id/content \
  --header 'x-api-key: <api-key>'
Download the actual content of an uploaded file.
file_id
string
required
The ID of the file to download (e.g., file-abc123).

Returns

Returns the raw file content with appropriate headers:
  • Content-Type: The MIME type of the file (e.g., text/jsonl)
  • Content-Disposition: Attachment header with the original filename
  • Content-Length: Size of the content in bytes

Return Examples

Response 200
Raw file content will be returned with appropriate headers
Error 404 - File Not Found
{
  "error": {
    "message": "File not found or access denied",
    "type": "invalid_request_error",
    "code": "file_not_found"
  }
}
Error 410 - File Expired
{
  "error": {
    "message": "File has expired",
    "type": "invalid_request_error",
    "code": "file_expired"
  }
}
Error 500 - Content Unavailable
{
  "error": {
    "message": "File content not available",
    "type": "server_error",
    "code": "content_unavailable"
  }
}