KumkuatKumkuat
API reference › Documents

Ingest a document

POST/api/v1/documents/ingest

POST/api/v1/documents/ingest

Ingest a document

Fetch a URL into the workspace. Returns at once with processing_status: fetching; poll GET /api/v1/documents/{doc_id} until it clears.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "content_type": "auto",
  "source_url": "string"
}
In the full reference
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/documents/ingest" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "content_type": "auto",
  "source_url": "string"
}'
RESPONSE
200OK
{
  "character_count": 0,
  "document_id": "string",
  "message": "Document ingested successfully",
  "processing_status": "fetching",
  "success": true,
  "title": "string",
  "word_count": 0
}
Try it — sign in first
Runs on a sandbox key: 2000 requests a month. Your real key is for production.