Doc Summarize

Summarize, question-answer and classify long documents (AI).

Base URL & auth

All endpoints are relative to this base. Authenticate with the x-api-key header (needs an active subscription).

https://dashoviaapi-d7619530.fastapicloud.dev/api/dashovia/docsummarize
Get an API key → Cost: 5 unit(s) / call

Endpoints

POST/api/dashovia/docsummarize/summarize

Summarize a PDF or text document.

curl -X POST 'https://your-domain.com/api/dashovia/docsummarize/summarize' \
  -H 'x-api-key: dsv_xxx' \
  -F '[email protected]'

Sample response

{"summary": "The report covers ...", "word_count": 8421}
POST/api/dashovia/docsummarize/ask

Ask a question grounded in the uploaded document.

curl -X POST 'https://your-domain.com/api/dashovia/docsummarize/ask' \
  -H 'x-api-key: dsv_xxx' \
  -F '[email protected]' -F 'question=What is the revenue?'

Sample response

{"answer": "Revenue was $4.2M in FY24."}
POST/api/dashovia/docsummarize/classify

Classify a document into one of your labels.

curl -X POST 'https://your-domain.com/api/dashovia/docsummarize/classify' \
  -H 'x-api-key: dsv_xxx' \
  -F '[email protected]' -F 'labels=invoice,contract,resume'

Sample response

{"label": "contract", "confidence": 0.93}

← Back to all APIs