---
title: "POST /api/workers/bootstrap"
method: POST
path: "/api/workers/bootstrap"
tags: ["Ai.Tlbx.MidTerm.OpenApi"]
---

# POST /api/workers/bootstrap

`POST /api/workers/bootstrap`

## Request body

- WorkerBootstrapRequest
  - `name` string, nullable
  - `shell` string, nullable
  - `workingDirectory` string, nullable
  - `resumeThreadId` string, nullable
  - `cols` integer, required
  - `rows` integer, required
  - `agentControlled` boolean, required
  - `injectGuidance` boolean, required
  - `profile` string, nullable
  - `lensOnly` boolean, required
  - `launchCommand` string, nullable
  - `launchDelayMs` integer, required
  - `slashCommands` string[], required
  - `slashCommandDelayMs` integer, required

## Response `200`

OK

- WorkerBootstrapResponse
  - `session` SessionInfoDto, required
    - `id` string, required
    - `pid` integer, required
    - `createdAt` string, date-time, required
    - `isRunning` boolean, required
    - `exitCode` integer, nullable, required
    - `cols` integer, required
    - `rows` integer, required
    - `shellType` string, required
    - `name` string, nullable, required
    - `terminalTitle` string, nullable, required
    - `manuallyNamed` boolean, required
    - `currentDirectory` string, nullable, required
    - `foregroundPid` integer, nullable, required
    - `foregroundName` string, nullable, required
    - `foregroundCommandLine` string, nullable, required
    - `foregroundDisplayName` string, nullable, required
    - `foregroundProcessIdentity` string, nullable, required
    - `agentAttachPoint` SessionAgentAttachPoint, required
      - `provider` string, required
      - `transportKind` string, required
      - `endpoint` string, required
      - `sharedRuntime` boolean, required
      - `source` string, required
      - `preferredThreadId` string, nullable, required
    - `order` integer, required
    - `parentSessionId` string, nullable, required
    - `bookmarkId` string, nullable, required
    - `agentControlled` boolean, required
    - `lensOnly` boolean, required
    - `profileHint` string, nullable, required
    - `lensResumeThreadId` string, nullable, required
    - `hasLensHistory` boolean, required
    - `supervisor` SessionSupervisorInfoDto, required
      - `state` string, required
      - `profile` string, required
      - `needsAttention` boolean, required
      - `attentionReason` string, nullable, required
      - `attentionScore` integer, required
      - `lastInputAt` string, date-time, nullable, required
      - `lastOutputAt` string, date-time, nullable, required
      - `lastBellAt` string, date-time, nullable, required
      - `currentHeat` number, double, required
  - `profile` string, required
  - `launchCommand` string, nullable, required
  - `slashCommands` string[], required
  - `guidanceInjected` boolean, required
  - `midtermDir` string, nullable, required

## Changes

- **2026-04-06** `704da358d834` — 2 info
  - added the new optional request property `resumeThreadId`
  - added the required property `session/lensResumeThreadId` to the response with the `200` status
- **2026-03-27** `536b8636ac1e` — 10 breaking, 5 warning, 2 info
  - added the new required request property `lensOnly`
  - removed the required property `session/appServerControlOnly` from the response with the `200` status
  - removed the required property `session/appServerControlResumeThreadId` from the response with the `200` status
  - removed the required property `session/hasAppServerControlHistory` from the response with the `200` status
  - …13 more

[Change history](https://skmtc.dev/tlbx-ai/apis/tlbx-api/changes/api/workers/bootstrap/post.md)

---

[API](https://skmtc.dev/tlbx-ai/apis/tlbx-api.md) · [All operations](https://skmtc.dev/tlbx-ai/apis/tlbx-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tlbx-ai/tlbx-api/revisions/21f772cbdf2f/schema)
