Build Agent Teams
Create a collaborative team of agents, configure roles and permissions, and run a simple workflow.
GuidesMulti-Agent
1. Create a Team
Team
curl -X POST "https://api.infaza.dev/v1/teams" -H "Authorization: Bearer $infaza_API_KEY" -H "Content-Type: application/json" -d '{
"name": "Data Analytics Team",
"description": "Multi-agent team for data analysis and insights",
"team_type": "collaborative"
}'2. Add Agents & Roles
Roles & Permissions
curl -X POST "https://api.infaza.dev/v1/teams/team_001/agents" -H "Authorization: Bearer $infaza_API_KEY" -H "Content-Type: application/json" -d '{
"agent_id": "agent-123",
"role_id": "data-analyst"
}'Common roles: coordinator, data-analyst, ml-specialist.
3. Run a Simple Workflow
Workflow
curl -X POST "https://api.infaza.dev/v1/workflows/execute" -H "Authorization: Bearer $infaza_API_KEY" -H "Content-Type: application/json" -d '{
"team_id": "team_001",
"name": "data_analysis_pipeline",
"steps": [
{"name": "data_validation", "agent_role": "data-analyst"},
{"name": "model_inference", "agent_role": "ml-specialist"},
{"name": "report_generation", "agent_role": "coordinator"}
]
}'