Skip to main content
POST
/
v1
/
collections
/
{collectionId}
/
query
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>"

Authorizations

Authorization
string
header
required

API key as Bearer token: Authorization: Bearer okra_xxx

Path Parameters

collectionId
string
required

Collection ID

Body

application/json
prompt
string
required

Question to ask across all documents

stream
boolean
default:true

Response

NDJSON stream of results

The response is of type string.