Demonstrating how to upload files using presigned URLs with Reducto.
Request a presigned URL
/upload
Upload the file using the presigned URL
Parse the file
/parse
file_id
import requests upload_form = requests.post("https://platform.reducto.ai/upload", headers={"Authorization": "Bearer <auth token>"}).json() requests.put(upload_form["presigned_url"], data=open("./local.pdf", "rb")) response = requests.post("https://platform.reducto.ai/parse", json={"document_url": upload_form["file_id"]}, headers={"Authorization": "Bearer <auth token>"})
Was this page helpful?