KumkuatKumkuat
API reference › Documents

Query a document

POST/api/v1/documents/query

POST/api/v1/documents/query

Query a document

Query a document using a template

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "doc_id": "string",
  "model": "gpt-3.5-turbo",
  "query_template": "string"
}
In the full reference
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/documents/query" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "doc_id": "string",
  "model": "gpt-3.5-turbo",
  "query_template": "string"
}'
RESPONSE
200OK
{
  "response": "string"
}
Try it — sign in first
Runs on a sandbox key: 2000 requests a month. Your real key is for production.