# Agent Platform API — Spec 029 Base: `https://api.ops.ligbox.com.br/api/v1/agents` (prod) Staging: `http://10.10.10.122:8180/api/v1/agents` ## GET /health ```json { "status": "ok", "tier": "t1", "ollama": true, "ollama_url": "http://10.10.10.123:11434", "model": "qwen2.5:7b-instruct", "embed_model": "nomic-embed-text" } ``` ## POST /internal/tick Headers: `X-Ops-Internal-Token: {OPS_INTERNAL_TOKEN}` Response: ```json { "ok": true, "kb_indexed": 65, "runs": [{"ok": true, "scenario_id": "desk.api.health", "status": "ok", "findings_count": 0}], "total": 9 } ``` ## POST /chat Headers: `Authorization: Bearer {jwt}` Body: ```json {"question": "O que fazer se gap webhook > 15min?", "include_findings": true} ``` Response: ```json {"answer": "...", "model": "qwen2.5:7b-instruct", "kb_hits": 3} ```