KumkuatKumkuat
API reference › Documents

Create a new document

POST/api/v1/documents

POST/api/v1/documents

Create a new document

Create a new document (admin/owner only)

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "content": "string",
  "content_type": "text",
  "tags": [],
  "title": "string"
}
In the full reference
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/documents" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "string",
  "content_type": "text",
  "tags": [],
  "title": "string"
}'
RESPONSE
201Created
{
  "document": {
    "character_count": 1,
    "content_type": "string",
    "created_at": "string",
    "id": "string",
    "title": "string",
    "word_count": 1
  },
  "message": "Document created successfully"
}
Try it — sign in first
Runs on a sandbox key: 2000 requests a month. Your real key is for production.