API Overview
Base configuration and response formats for the Zihin API.
Base URL
Development: http://localhost:3001
Production: https://llm.zihin.ai
Response Format
Success
{
"success": true,
"data": {},
"count": 0,
"meta": {
"generatedAt": "2025-12-17T18:00:00.000Z"
}
}
Error
{
"error": "error_code",
"message": "Error description",
"details": {},
"status": "error"
}
Pagination
{
"data": [],
"pagination": {
"page": 1,
"limit": 50,
"total": 100,
"pages": 2
}
}
Caching
| Endpoint | TTL |
|---|---|
/api/llm/models | 5 min |
/api/llm/recommendations | 10 min |
/api/llm/provider | 15 min |
/api/health | 30 sec |
/api/health/status | 30 sec |
Endpoint Categories
| Category | Base Path | Auth Required |
|---|---|---|
| Health | /api/health | No |
| LLM | /api/v3/llm | Yes* |
| Agents | /api/agents | Yes |
| Database | /api/database-configs | Yes |
| Telemetry | /api/telemetry | No |
*Public call endpoint available with API Key