---
title: "Fleet Batch Create"
method: POST
path: "/api/fleet/batch"
tags: ["fleet"]
---

# Fleet Batch Create

`POST /api/fleet/batch`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/fleet/batch`
- Auth: HTTP bearer

Spin up N identical agents named {prefix}-1..N.

Thin loop over the single-agent create route so every agent gets the full
standard treatment (gateway password, LLM proxy token, template image,
instructions → AGENTS.md, auto-deploy). Guards: ≤50 per request, wallet
must hold $1 per requested agent up front.

## Request body

- FleetBatchRequest
  - `namePrefix` string, required
  - `count` integer, required
  - `templateId` string, nullable
  - `framework` string, nullable
  - `githubRepo` string, nullable
  - `instructions` string, nullable
  - `tier` string, nullable
  - `idleTtlSeconds` integer, nullable
  - `envVars` InitialEnvVar[]
    - `key` string, required
    - `value` string, required
    - `isSecret` boolean

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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