Skip to main content

Agents

An agent belongs to a gateway and defines how one class of AI traffic is proxied: the upstream route, default model and model policy, budgets, streaming, and firewall / PII policies. Once created, an agent is served on the data plane at /v1/ai/{slug} — see Execute AI Request to send it traffic. These endpoints are the public /v1 control-plane equivalent of the dashboard agent pages. See the control-plane overview for authentication, the response envelope, pagination, and error types.
/v1 never exposes KnoxCall-managed system agents (for example the Workflows system agent). Reads, updates, token operations, and deletes against a system agent return 404 not_found.

The agent object

An agent is returned with its full configuration. The most commonly used fields: The object also includes the remaining agent settings (fallback_route_ids, model_rewrite, budget_overage_action, pii_detokenize_response, pii_streaming_holdback_chars, cache_mode, output_schema, output_validation_action, and others) at their configured or default values.

List agents

Returns the agents in a gateway, paginated (page, per_page). Requires the read capability. Returns 404 not_found if the gateway does not belong to your tenant.
The response is a paginated list of agent objects wrapped in { data, meta }.

Create an agent

Requires the write capability. Request body
primary_route_id, firewall_policy_id, and pii_redact_policy_id must reference resources owned by your tenant. A reference to another tenant’s resource (or a malformed id) returns 400 invalid_reference.
Response — the created agent wrapped in { data, meta }:
Missing name or slug returns 400 validation; an invalid slug returns 422 invalid_slug; a duplicate slug returns 409 conflict.

Get an agent

Returns a single agent. Requires the read capability. Returns 404 not_found if the agent does not belong to your tenant or is a system agent.

Update an agent

Partial update — send only the fields you want to change. Requires the write capability. The slug cannot be changed. Updatable fields name, description, primary_route_id, default_model, model_allowlist, model_denylist, budget_daily_usd, budget_monthly_usd, streaming_enabled, firewall_policy_id, pii_redact_policy_id, pii_detokenize_response, tool_allowlist. Reference fields (primary_route_id, firewall_policy_id, pii_redact_policy_id) are tenant-ownership checked exactly as on create.
The response is the updated agent wrapped in { data, meta }.

Archive an agent

Soft-deletes (archives) the agent and stops it serving data-plane traffic. Requires the write capability.
Response