A RESTful API for querying specialized knowledgebases using AI-powered retrieval-augmented generation (RAG). Ask natural-language questions across domains including Indonesian law, anthropology, Buddhist philosophy, puppet theater, AI documentation, and more.
curl -fsSL https://yatti.id/v1/install | bash
Auto-detects your system, installs to ~/.local/bin, and verifies GPG signature.
yatti-api configure
The demo query on the homepage works without an API key. For full API access, request a key.
yatti-api query appliedanthropology "What is participatory action research?"
Or use curl directly:
curl -s -X POST https://yatti.id/v1/query \
-H "Content-Type: application/json" \
-H "X-API-Key: your-key" \
-d '{"knowledgebase": "appliedanthropology", "query": "What is participatory action research?"}' | jq
GET /v1/ | API information and endpoint listing |
GET /v1/status | Service status |
GET /v1/docs | User documentation |
GET /v1/docs/api | Technical API documentation |
GET /v1/knowledgebases | List available knowledgebases |
GET /v1/knowledgebases/{name} | Get knowledgebase details |
POST /v1/query | Submit a query |
GET /v1/query | Query history |
GET /v1/query/{uuid} | Get specific query result |
The yatti-api CLI client supports all API endpoints with self-updating, GPG signature verification, and local configuration.
yatti-api status | Check API status and connectivity |
yatti-api kb | List available knowledgebases |
yatti-api kb {name} | Get knowledgebase details |
yatti-api query {kb} "question" | Query a knowledgebase |
yatti-api history | View query history |
yatti-api update | Self-update to latest version |
{
"success": true,
"data": {
"query_id": "uuid",
"knowledgebase": "appliedanthropology",
"query": "What is participatory action research?",
"response": "Participatory action research (PAR) is...",
"contexts": [...],
"metadata": {"model": "...", "processing_time": 2.1}
},
"timestamp": "2026-03-22T12:00:00+07:00"
}