Upload & Manage Documents
Upload & Manage Documents
Upload files, trigger processing, and manage your knowledge base
Before you begin
- You have an API key (
pai_test_*orpai_live_*) - You have at least one project created (Create a Project)
- Feature
api.documentsis enabled for your organization
Upload a document (3-step flow)
Document upload uses presigned URLs so your files go directly to storage without passing through the API server.
Reserve an upload slot
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.
Check document status
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.
List documents
Delete documents
Remove one or more documents in a single call:
This removes the document, its storage file, and all associated chunks and embeddings.
What’s next
- Ask a Question — query documents using Pyramid Agent
- Run a Compliance Check — verify requirements against your documents