POST/api/v1/documents/extract-text
Extract text from an uploaded file without saving
Send the file as multipart/form-data in a file field: PDF, DOCX, PPTX, TXT, MD, CSV, HTML, RTF, JSON or XML. Nothing is stored.
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/documents/extract-text" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.post("https://gateway.kumkuat.ai/api/v1/documents/extract-text", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/documents/extract-text", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"character_count": 1,
"content": "string",
"filename": "string",
"word_count": 1
}
