---
title: "Create Deployment"
method: POST
path: "/api/deploy"
tags: ["deploy"]
---

# Create Deployment

`POST /api/deploy`

## 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/deploy`
- Auth: HTTP bearer

Queues a deployment after checking agent and uploaded-archive ownership.

## Request body

- DeployCreate
  - `agentId` string, required
  - `source` 'github' | 'docker' | 'template' | 'zip'
  - `repoUrl` string, nullable
  - `imageName` string, nullable
  - `branch` string, nullable
  - `uploadS3Key` string, nullable

## Response `200`

Successful Response

- DeploymentResponse
  - `id` string, required
  - `agentId` string, required
  - `status` string, required
  - `commitSha` string, nullable
  - `buildLog` string, nullable
  - `startedAt` string, date-time, required
  - `completedAt` string, date-time, nullable
  - `failureKind` string, nullable
  - `errorCode` string, nullable
  - `errorTitle` string, nullable
  - `errorMessage` string, nullable
  - `errorAction` string, nullable

## 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)
