Upload & Manage Documents
Upload & Manage Documents
Upload & Manage Documents
pai_test_* or pai_live_*)api.documents is enabled for your organizationDocument upload uses presigned URLs so your files go directly to storage without passing through the API server.
Tell the API what file you’re uploading. You’ll get back a presigned URL for direct upload.
Save the id and the upload.url.
After triggering processing, poll the document to track its progress:
Document status progresses through: uploading → uploaded → processing → ready. A document is queryable once it reaches ready.
Remove one or more documents in a single call:
This removes the document, its storage file, and all associated chunks and embeddings.