Skip to main content

Admin REST API

The createAdminRouter() function returns an Express router with full CRUD endpoints for agents, teams, and workflows.

Endpoints

Agents

Teams

Workflows

Tools

Toolkit Catalog

Toolkit Configs (Credentials Management)


Create Agent

The agent is immediately available via the transport layer:

Agent Blueprint

string
required
Unique agent name. Used as the identifier in registry and transport routes.
string
required
Model provider id: "openai", "anthropic", "google", "ollama", "vertex".
string
required
Model id: "gpt-4o", "gpt-4o-mini", "claude-sonnet-4-20250514", etc.
string
System prompt for the agent.
string[]
Tool names from the toolLibrary. e.g., ["webSearch", "calculator"].
number
Model temperature (0-2).
object
Provider-specific config passed to modelRegistry.resolve() (e.g., { apiKey, baseURL }).

Update Agent

The old agent is removed from the registry, a new one is created with the updated config, and the blueprint is persisted.

Create Team

All member agents must already exist in the registry.

Team Blueprint

string
required
Unique team name.
string
required
Team mode: "coordinate", "route", "broadcast", "collaborate", "handoff".
string
required
Model provider for the team leader.
string
required
Model id for the team leader.
string[]
required
Agent names that must exist in the registry.
string
System prompt for the team leader.

Validation & Error Codes