Live OpenAPI
The canonical, always-current schema.
https://api.swarmlord.ai and requires a bearer token:
swarmlord login (CLI) or the dashboard.
Deploy a bundle
{ ok: true, agentId, warnings } or { ok: false, errors }.
Create a session
{ id }.
Send a message (streaming)
Send a message (async)
202 { messageId } immediately. Events are persisted to the session for later replay.
Subscribe / replay
seq > 5, then streams new ones.
Fork
{ id }.
Abort
Revert / regenerate
Upload an attachment
{ url } — an r2://media/... reference you can include in a later
message or download.
Download an attachment / artifact
Content-Type. key is the path from the r2:// ref
and is scoped to the media/ prefix.
Keys
Secrets
Webhooks
x-swarmlord-signature: <hmac-sha256> and x-swarmlord-timestamp headers. Verify with verifyWebhook() from swarmlord/webhooks.
Triggers
Webhook-triggered agents are reachable at:Errors
Health
200 { "ok": true } if the platform is reachable.