Chat (demo mode)
Mounted only when VIGIL_DEMO_MODE=1. Retires once Agent Studio covers it.
These routes exist only while VIGIL_DEMO_MODE=1 is set on the service. They are not part of the product surface and will be removed once Agent Studio covers them.
| Method | Path | Scope | Summary |
|---|---|---|---|
POST | /chat/{agent_id} | review | Governed Chat |
GET | /chat/{agent_id}/info | review | Get Chat Agent Info |
Try it
code=$(curl -s -o /dev/null -w "%{http_code}" "$VIGIL_URL/chat/docs-api/info") # no key: every non-public route is 401
test "$code" = "401" && echo "chat routes are gated ($code)"
Routes
POST /chat/{agent_id}
Governed Chat. Scope: review.
| Parameter | In | Required | Type | Notes |
|---|---|---|---|---|
agent_id | path | yes | string |
Request body:
{
"message": "string",
"history": [
{
"role": "string",
"content": "string"
}
],
"dti": 0
}
| Field | Type | Required | Notes |
|---|---|---|---|
message | string | yes | |
history | array of ChatMessage | no | |
dti | number | null | no |
Response 200:
{
"response": "string",
"gate_status": "string",
"bii": 0,
"composite_trust": 0,
"reason": "string",
"requires_human_review": true,
"event_id": 0,
"agent_name": "string",
"agent_domain": "string",
"agent_risk": "string"
}
GET /chat/{agent_id}/info
Get Chat Agent Info. Scope: review.
Agent info for the chat UI.
| Parameter | In | Required | Type | Notes |
|---|---|---|---|---|
agent_id | path | yes | string |
Response 200:
"any"
Generated from openapi.json (VIGIL 0.2.0). Scopes follow the router dependencies in VIGIL_SPEC.md section 4.2.