Skip to main content

Swarms API

Swarms let you group multiple agents into a coordinated unit. Use swarms to orchestrate multi-agent workflows where agents collaborate on tasks.
All swarm endpoints require session authentication and are scoped to the authenticated user’s data through row-level security.

List swarms

Returns all swarms owned by the authenticated user, ordered by creation date (newest first).

Response

Swarm object

Errors

Create swarm

Creates a new agent swarm. The swarm is enabled by default.

Request body

Response

Returns 201 Created with the new swarm object:

Errors