Firewall API¶
The Firewall API is what your agents call at runtime. It screens both kinds of traffic an agent
generates against your configurations, and can call the model for you. Authenticate every call
with a Firewall API key in the Authorization header.
The chat path¶
The conversation between an agent and its model, screened at chat inbound and chat outbound (Chat security).
| Method | Endpoint | Purpose |
|---|---|---|
POST |
/api/v1/filter/inbound |
Screen a prompt before it reaches the model (content with config_id). |
POST |
/api/v1/filter/outbound |
Screen a model response before it reaches the agent (content with config_id). |
POST |
/api/v1/chat/completions |
Let MATVIS call the model, OpenAI-compatible: the prompt and the response are both screened. |
POST |
/api/v1/messages |
Let MATVIS call the model, Anthropic-compatible. |
GET |
/api/v1/models |
List the models MATVIS can call. |
DELETE |
/api/v1/filter/session/{session_id} |
Beta. End a filter session. Answers 204. See Sessions (beta). |
The agent path¶
What the agent does while it works, screened at tool call and tool response
(Agent security). The same two endpoints take a tool call or
a tool result with its own tool configuration, alone or next to content.
| Method | Endpoint | Purpose |
|---|---|---|
POST |
/api/v1/filter/outbound |
Screen a tool call before it runs: tool_call with tool_config_id, see ToolCallInput. |
POST |
/api/v1/filter/inbound |
Screen a tool result or tool description before the agent reads it: tool_response with tool_config_id, see ToolResponseInput. |
Through /api/v1/chat/completions and /api/v1/messages, the tool calls the model returns and the
tool results the agent sends back are screened with the tool configurations attached to the
model configuration.
ICAP¶
| Method | Endpoint | Purpose |
|---|---|---|
GET |
/api/v1/icap/health |
State of the ICAP server, present only when ICAP is enabled. Needs no key. See ICAP proxy (Beta). |
The request and response schemas these endpoints use are documented under API Models.