Examples
Simple copy-paste examples for the OutDocAI API.
Replace od_your_key_here with your real key from Organization.
Check your key
curl "http://localhost:8000/api/v1/public/organization" \
-H "Authorization: Bearer od_your_key_here"Upload a PDF
curl -X POST "http://localhost:8000/api/v1/public/documents/upload" \
-H "Authorization: Bearer od_your_key_here" \
-F "files=@./contract.pdf"List documents
curl "http://localhost:8000/api/v1/public/documents?limit=20" \
-H "Authorization: Bearer od_your_key_here"Ask a question
curl -X POST "http://localhost:8000/api/v1/public/query" \
-H "Authorization: Bearer od_your_key_here" \
-H "Content-Type: application/json" \
-d '{"query":"What is the renewal date?"}'Continue a conversation
Use the conversation_id from the previous answer:
curl -X POST "http://localhost:8000/api/v1/public/query" \
-H "Authorization: Bearer od_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"query": "And who signed it?",
"conversation_id": "paste-conversation-id-here"
}'New to the API? Start with Getting started.