The Upload API allows you to manage your documents programmatically instead of doing it through the UI.
Upload files, fetch each one as markdown or json, and rename, move and delete documents and collections.
Any signed-up account can create a key. Files sent with a key use the same free pages and balance as the app.
Keys
Locked
Quickstart
Upload a document
curl -X POST https://upload-api-production-239e0491.up.railway.app/v1/documents \ -H "Authorization: Bearer $DOCS2_API_KEY" \ -F "[email protected]"
List your documents and their status
curl https://upload-api-production-239e0491.up.railway.app/v1/documents \ -H "Authorization: Bearer $DOCS2_API_KEY"
Fetch one document as markdown
curl https://upload-api-production-239e0491.up.railway.app/v1/documents/$UPLOAD_ID/docs2md \ -H "Authorization: Bearer $DOCS2_API_KEY" \ -o contract.md
Fetch one document as json
curl https://upload-api-production-239e0491.up.railway.app/v1/documents/$UPLOAD_ID/docs2json \ -H "Authorization: Bearer $DOCS2_API_KEY" \ -o contract.json
You can see full API reference here: