Ingest, then retrieve with sources attached.
Send a file, wait for the job, then search. Plain HTTPS and JSON.
- 1Ingest a file:
POST /v1/ingesta PDF, recording or image. - 2Ask in Fast or Deep:
POST /v1/retrievewithmethod: fastordeep. - 3Read the page and box or the time range behind each result.
# 1. ingest (returns a job_id) curl https://api.smartretriever.ai/v1/ingest \ -H "Authorization: Bearer $SR_KEY" \ -F file=@master-services-agreement.pdf # 2. wait until the job status is succeeded curl https://api.smartretriever.ai/v1/ingest/$JOB_ID \ -H "Authorization: Bearer $SR_KEY" # 3. retrieve curl https://api.smartretriever.ai/v1/retrieve \ -H "Authorization: Bearer $SR_KEY" \ -H "Content-Type: application/json" \ -d '{"query":"Can we end the contract early?","method":"fast"}'