GET
/
v2
/
extractions
/
{id}
/
download-original
curl -X GET https://api.tableflow.com/v2/extractions/uT2bJNWN75YPU95r/download-original \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --output original-file.pdf

Downloads the original file that was uploaded for a specific extraction. This endpoint returns the raw file data with the appropriate content type.

Usage Notes

  • This endpoint returns the raw file data, not a JSON response
  • The content type will match the original file type (e.g., application/pdf for PDFs)

Request

id
string
required

The ID of the extraction to download the original file for.

curl -X GET https://api.tableflow.com/v2/extractions/uT2bJNWN75YPU95r/download-original \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --output original-file.pdf

Response

The response is the raw file data with the appropriate Content-Type header. The Content-Disposition header will include the original filename.

For example, if the original file was a PDF named “invoice.pdf”, the response headers might look like:

Content-Type: application/pdf
Content-Disposition: attachment; filename="invoice.pdf"

Error Responses

error
string

Error message describing what went wrong.