---
title: "Create a new active session"
method: POST
path: "/api/active-sessions"
tags: ["Active Sessions"]
---

# Create a new active session

`POST /api/active-sessions`

## Request body

- object
  - `agentId` string, required
  - `taskId` string
  - `triggerType` string, required
  - `inboxMessageId` string
  - `taskDescription` string
  - `runnerSessionId` string

## Response `201`

Session created

## Other responses

- `400` — Validation error

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
