---
title: "Create Deployment"
method: POST
path: "/v1/workflows/deployments"
tags: ["workflows.deployments"]
---

# Create Deployment

`POST /v1/workflows/deployments`

Create Deployment

## Request body

- CreateDeploymentRequest
  - `name` string, required
  - `spec` DeploymentWorkerSpecInput, required
    - `github_url` string, required
    - `revision` string, nullable
    - `entrypoint` string, nullable
    - `working_dir` string, nullable
  - `resources` DeploymentResourceConfig
    - `replicas` integer, nullable
    - `cpu_request` string, nullable
    - `cpu_limit` string, nullable
    - `memory_request` string, nullable
    - `memory_limit` string, nullable

## Response `202`

Successful Response

- ManagedDeploymentResponse
  - `service_id` string, required
  - `name` string, required
  - `spec` DeploymentWorkerSpecResponse, required
    - `github_url` string, required
    - `type` string
    - `revision` string, nullable
    - `entrypoint` string, nullable
    - `working_dir` string, nullable
    - `restarted_at` string, nullable
    - `commit_sha` string, nullable
  - `resources` DeploymentResourceConfig, required
    - `replicas` integer, nullable
    - `cpu_request` string, nullable
    - `cpu_limit` string, nullable
    - `memory_request` string, nullable
    - `memory_limit` string, nullable
  - `status` DeploymentObservedState, required
    - `phase` string, nullable
    - `available_replicas` integer
    - `ready_replicas` integer
    - `endpoint` string, nullable
    - `message` string, nullable
    - `last_seen` string, date-time, nullable
    - `deployed_revision` string, nullable
    - `generation` integer, nullable
    - `build_state` DeploymentBuildState
      - `phase` string, nullable
      - `commit_sha` string, nullable
      - `image` string, nullable
      - `message` string, nullable
      - `started_at` string, date-time, nullable
      - `finished_at` string, date-time, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `stopped` boolean
  - `rollout_status` string, nullable
  - `created_by` string, nullable
  - `updated_by` string, nullable
  - `deployed_by` string, nullable
  - `deployed_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mistral/apis/mistral-ai-api.md) · [All operations](https://skmtc.net/mistral/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mistral/mistral-ai-api/revisions/933c4ebdcd72/schema)
