Skip to main content
POST
Create an agent squad

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Body

application/json
name
string
required
Required string length: 1 - 200
classifier_agent_id
string
required

Agent that classifies each inbound to a member intent. Must not also be a member.

members
object[]
required
Required array length: 2 - 6 elements
description
string | null
Maximum string length: 2000
fallback_agent_id
string | null

Agent used when no member intent matches. Must not equal the classifier.

active
boolean
default:true
max_cost_per_day_cents
integer | null

Optional per-day spend cap in cents.

Response

201 - application/json

The created squad

data
object

A squad routes an inbound conversation to one of several member agents using a classifier agent that maps the message to an intent label, with an optional fallback agent.

meta
object