---
title: "POST /api/v1/agent/roder/run/swarm_activity"
method: POST
path: "/api/v1/agent/roder/run/swarm_activity"
tags: ["agent"]
---

# POST /api/v1/agent/roder/run/swarm_activity

`POST /api/v1/agent/roder/run/swarm_activity`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/agent/roder/run/swarm_activity`
- Auth: HTTP bearer

## Request body

- object
  - `events` AgentSwarmActivityReport[], required
    - `kind` 'shell' | 'shell_exit' | 'read_file' | 'write_file' | 'commit' | 'export' | 'stack_post' | 'acceptance' | 'notice' | 'harness' | 'thought' | 'message', required
    - `ts` string, date-time
    - `summary` string, required
    - `exit_code` integer, nullable
    - `duration_ms` integer, nullable
    - `path` string, nullable
    - `payload` object, nullable

## Response `200`

Activity batch accepted

- object
  - `accepted` integer, required
  - `last_seq` integer, required

## Other responses

- `401`: Swarm not visible to the current user
- `403`: Forbidden
- `404`: Not found
- `409`: Swarm not visible to the current user
- `422`: Swarm not visible to the current user
- `429`: Swarm not visible to the current user
- `502`: Bad gateway

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/74298a24e040?raw)
