---
title: "Store session logs"
method: POST
path: "/api/session-logs"
tags: ["Session Data"]
---

# Store session logs

`POST /api/session-logs`

## Request body

- object
  - `sessionId` string, required
  - `iteration` integer, required
  - `lines` string[], required
  - `taskId` string
  - `cli` string

## Response `201`

Logs stored

- object
  - `success` true, required
  - `count` integer, required

## Other responses

- `400` — Validation error

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/0375890be8c4/schema)
