agent-swarm.devagent-swarm.dev

Task Templates

List reusable task templates — pre-defined task definitions agents pick up to start common swarm workflows

GET
/api/task-templates

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

category?string
kind?string
Value in"task" | "workflow" | "schedule"
query?string

Response Body

application/json

application/json

curl -X GET "http://localhost:3013/api/task-templates"
{
  "templates": [
    {
      "id": "string",
      "title": "string",
      "description": "string",
      "prompt": "string",
      "kind": "task",
      "payload": {},
      "category": "string",
      "tags": [],
      "createdAt": "string"
    }
  ]
}
{
  "error": "string",
  "property1": null,
  "property2": null
}