Elizon Docs
API Reference

Create team

POST /api/v1/teams — create a team of agents.

Creates a team. The body uses the same field names, and is checked by the same rules, as Studio's Team Builder.

POST /api/v1/teams

Request body

FieldTypeRequiredDescription
namestring (1–128 chars)Yes
coordination_modehandoff | dynamic_delegation | parallel | plan_executeYesSee Coordination modes.
lead_typemanaged | memberYesA managed lead is a model of its own; a member lead is one of the agents.
memberslist of { agent_id, role?, sort_order?, delegate_eligible? }YesThe agents; at least two must be able to receive work. Every member counts except a promoted lead, which counts only when lead_member_delegate_eligible is true (a member's own delegate_eligible, default true, is stored but not counted). Each agent once.
lead_llm_config_idstring (UUID)When lead_type is managedThe LLM configuration the lead uses.
lead_model_idstringNoThe lead's model on that configuration.
lead_member_agent_idstring (UUID)When lead_type is memberThe agent that leads. Added to members if it is not there.
lead_member_delegate_eligiblebooleanNoWhether the lead agent can also be delegated work.
lead_member_can_answer_directlybooleanNoWhether the lead agent may answer without delegating.
max_iterationsinteger 1–20When coordination_mode is plan_executeThe plan-and-execute loop's ceiling.
project_idstring (UUID) | nullNoOrg-scoped keys: a project your organization owns; omitted or null means your organization's default project. Every team belongs to a project. A project-scoped key always creates in its own project.
description, goal, instructions, lead_instructionsstringNoFree text. instructions and lead_instructions reach the models.
statusactive | paused | draft | archivedNo
determine_input_for_members, add_team_history_to_members, share_member_interactions, add_name_to_context, add_datetime_to_context, add_history_to_contextbooleanNoThe behaviour toggles described in Teams. add_datetime_to_context tells the lead and every member the current date and time.
num_history_runsinteger 0–100NoHow many earlier runs of a session to include when add_history_to_context is on.
budget_cap_json, policy_jsonobject | nullNoThe team's budget cap and policy, as Studio stores them.

Every agent and LLM configuration you name must belong to your organization.

Response

201 Created — the team, in the shape of Get team, with currentVersion: 1.

Errors

StatuserrorWhen
400validation errorA field fails validation, or a rule above is broken — for example a managed lead with no lead_llm_config_id.
422validation_errorAn agent or LLM configuration is not in your organization (field names which), or the team has fewer than two agents that can receive work.
422project_not_foundproject_id is not a project of your organization.

Example

curl -X POST https://api.elizon.ai/api/v1/teams \
  -H "X-API-Key: elz_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Escalations",
    "coordination_mode": "dynamic_delegation",
    "lead_type": "managed",
    "lead_llm_config_id": "8b1e...",
    "lead_model_id": "gpt-4o",
    "add_datetime_to_context": true,
    "members": [{ "agent_id": "a1..." }, { "agent_id": "a2..." }]
  }'