---
title: "Deploy stack"
method: POST
path: "/api/stacks/{stackName}/deploy"
tags: ["Stacks"]
---

# Deploy stack

`POST /api/stacks/{stackName}/deploy`

Runs `docker compose up -d` for the stack. On Pro tier, uses atomic deployment
with automatic rollback on failure. Requires `stack:deploy` permission.

## Path parameters

- `stackName` string, required

## Headers

- `x-node-id` integer

## Response `200`

Stack deployed successfully.

- SuccessMessage
  - `message` string, required

## Other responses

- `403` — Insufficient permissions or license tier.
- `500` — Deployment failed.

## Changes

- **2026-04-01** `c62bbceae824` — 1 breaking
  - added the pattern `^[a-zA-Z0-9_-]+$` to the `path` request parameter `stackName`

[Change history](https://skmtc.dev/studio-saelix/apis/sencho-api/changes/api/stacks/:stackName/deploy/post.md)

---

[API](https://skmtc.dev/studio-saelix/apis/sencho-api.md) · [All operations](https://skmtc.dev/studio-saelix/apis/sencho-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/studio-saelix/sencho-api/revisions/c62bbceae824/schema)
