Agents
The AI agents that process incoming mail: their model, their system prompt, their prompt version history and the catalogue of models available. See the Agent model and the LlmModel model.
| Command | HTTP | Description |
|---|---|---|
agents list | GET /agents | List agents in the workspace. |
agents get | GET /agents/{id} | Fetch one agent, including its current version. |
agents create | POST /agents | Create an agent. Version starts at 1. |
agents upsert | PUT /agents | Create or update, matched by id then external_id. |
agents update | PATCH /agents/{id} | Update. Changing system_message bumps the version. |
agents delete | DELETE /agents/{id} | Soft-delete. |
agents versions list | GET /agents/{id}/versions | Prompt version history. |
models list | GET /models | Catalogue of LLM models available through the AI Gateway, with prices. |
Examples
# List, filtered by model
kobana inbox agents list \
--params '{"llm_model": "anthropic/claude-sonnet-5"}' \
--fields "id,label,llm_model"
# Get one
kobana inbox agents get \
--params '{"id": "AGENT_ID"}' \
--fields "id,label,llm_model,system_message"
# Create
kobana inbox agents create \
--json '{"label": "Triage", "llm_model": "anthropic/claude-sonnet-5", "system_message": "You triage inbound support e-mail..."}'
# Create or update, matched by external_id
kobana inbox agents upsert \
--json '{"external_id": "triage-v1", "label": "Triage", "llm_model": "anthropic/claude-sonnet-5"}'
# Update the prompt (bumps the version)
kobana inbox agents update \
--params '{"id": "AGENT_ID"}' \
--json '{"system_message": "You triage inbound support e-mail and tag it by urgency..."}'
# Soft-delete
kobana inbox agents delete --params '{"id": "AGENT_ID"}' --dry-run
# Prompt version history
kobana inbox agents versions list \
--params '{"id": "AGENT_ID"}' \
--fields "version,system_message,created_at"
# Model catalogue
kobana inbox models list --fields "id,provider,input_price,output_price"
Next steps
- Inboxes — which inbox points at which agent.
- Agent runs and usage — every execution this agent produced.