cURL
curl -X POST https://api.okrapdf.com/v1/collections/col-xxx/query \ -H "Authorization: Bearer okra_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt": "What is the total revenue?", "stream": true}'
"<string>"
Ask a question across all documents in a collection. Returns NDJSON stream with per-document results.
API key as Bearer token: Authorization: Bearer okra_xxx
Authorization: Bearer okra_xxx
Collection ID
Question to ask across all documents
NDJSON stream of results
The response is of type string.
string