---
title: "Prepare an install, retry or approved update"
method: POST
path: "/v1/managed-deployments/{deploymentId}/launch"
tags: ["Managed deployments"]
---

# Prepare an install, retry or approved update

`POST /v1/managed-deployments/{deploymentId}/launch`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/managed-deployments/{deploymentId}/launch`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Creates or reuses an installer run pinned to the published release and returns the customer's cloud approval handoff. OpenWork never executes it. Existing AWS installations remain legacy until an explicit version-increasing Update supplies runtimeProfile gateway; Retry never changes profiles or computer settings. Gateway includes Den, the native model gateway, runner, Workbot and Slack/Automations; no direct model configuration is accepted as a new runtime. Upstream providers/keys and Slack app credentials are configured only inside the installed Den after first sign-in. Optional computers remain off unless selected. Profile and settings freeze atomically with the run: changed pending input returns 409; unchanged input reopens the identical command/run. Gateway-profile launches and reopening are blocked while configuration.assistantsAvailable is false; authenticated progress/health continue. GCP does not accept AWS profile/settings.

## Path parameters

- `deploymentId` string, uuid, required

## Request body

- object
  - `kind` 'install' | 'update' | 'retry'
  - `runtimeProfile` 'legacy' | 'gateway'
  - `assistants` object
    - `headlessRunnerEnabled` boolean
    - `workbotEnabled` boolean
    - `slackAssistantEnabled` boolean
    - `modelProtocol` 'anthropic' | 'openai' | 'openai-responses'
    - `modelBaseUrl` string, uri
    - `model` string
    - `modelSecretArn` string
    - `computerProvider` 'off' | 'daytona' | 'freestyle'
    - `computerSecretArn` string
    - `computerSnapshot` string
    - `daytonaApiUrl` string, uri
    - `daytonaTarget` string

## Response `200`

Prepare an install, retry or approved update

- object
  - `deployment` union, required
    - object
      - `id` string, uuid, required
      - `name` string, required
      - `domainName` string, required
      - `ownerEmail` string, required
      - `size` 'small', required
      - `updateMode` 'approval', required
      - `createdAt` string, date-time, required
      - `webUrl` string, uri, required
      - `consoleUrl` string, uri, required
      - `installedVersion` string, nullable, required
      - `availableVersion` string, nullable, required
      - `updateAvailable` boolean, required
      - `health` object, required
        - `state` 'operational' | 'degraded' | 'down' | 'not_reporting' | 'awaiting_report', required
        - `reportedAt` string, date-time, nullable, required
        - `version` string, nullable, required
        - `checks` object[], required
          - `id` 'api_health' | 'database_ready' | 'web_available' | 'services_running' | 'load_balancer_targets' | 'database_instance' | 'database_storage' | 'database_backups' | 'certificate' | 'runner_service' | 'workbot_available' | 'runner_storage' | 'runner_backups' | 'ai_gateway_available', required
          - `status` 'ok' | 'warning' | 'failing' | 'unknown', required
          - `value` number
          - `total` number
          - `code` 'http_error' | 'unreachable' | 'slow' | 'not_running' | 'unhealthy' | 'unavailable' | 'permission_denied' | 'low_storage' | 'stale_backup' | 'backups_disabled' | 'not_issued' | 'expiring' | 'expired'
      - `run` object, nullable, required
        - `id` string, uuid, required
        - `kind` 'install' | 'update' | 'retry' | 'configure', required
        - `version` string, required
        - `state` 'awaiting_approval' | 'provisioning' | 'ready' | 'failed', required
        - `createdAt` string, date-time, required
        - `lastSeenAt` string, date-time, nullable, required
        - `expiresAt` string, date-time, required
        - `expired` boolean, required
        - `events` object[], required
          - `sequence` integer, required
          - `step` 'runner_connected' | 'release_verified' | 'account_verified' | 'infrastructure_applied' | 'services_ready' | 'health_verified', required
          - `outcome` 'succeeded' | 'failed', required
          - `errorCode` 'release_verification_failed' | 'network_check_failed' | 'infrastructure_failed' | 'certificate_failed' | 'service_unhealthy' | 'health_check_failed' | 'runner_failed'
          - `receivedAt` string, date-time, required
      - `configuration` object
        - `revision` string, required
        - `lock` 'aws_only' | 'not_installed' | 'run_in_progress' | 'unfinished_run' | 'installer_unknown' | 'installer_unavailable', nullable, required
        - `gatewayAvailable` boolean, required
        - `change` object, nullable, required
          - `runId` string, uuid, required
          - `state` 'awaiting_approval' | 'applying' | 'failed' | 'expired', required
          - `requestedAt` string, date-time, required
          - `expiresAt` string, date-time, required
          - `changes` object[], required
            - `field` 'name' | 'domainName' | 'ownerEmail' | 'target.accountId' | 'target.region' | 'target.route53ZoneId' | 'target.network' | 'target.runtimeProfile' | 'target.assistants.headlessRunnerEnabled' | 'target.assistants.workbotEnabled' | 'target.assistants.slackAssistantEnabled' | 'target.assistants.modelProtocol' | 'target.assistants.modelBaseUrl' | 'target.assistants.model' | 'target.assistants.modelSecretArn' | 'target.assistants.computerProvider' | 'target.assistants.computerSecretArn' | 'target.assistants.computerSnapshot' | 'target.assistants.daytonaApiUrl' | 'target.assistants.daytonaTarget' | 'target.email.from' | 'target.email.smtpHost' | 'target.email.smtpPort' | 'target.email.smtpSecure' | 'target.email.smtpCredentialsSecretArn', required
            - `before` string, nullable, required
            - `after` string, nullable, required
            - `effect` 'saved_immediately' | 'restarts_den' | 'restarts_runner' | 'adds_gateway_runtime', required
          - `requested` object, required
            - `name` string, required
            - `domainName` string, required
            - `ownerEmail` string, email, required
            - `size` 'small'
            - `provider` 'aws', required
            - `target` object, required
              - …
      - `provider` 'aws', required
      - `target` object, required
        - `accountId` string, required
        - `region` 'us-east-1' | 'us-east-2' | 'us-west-2' | 'eu-west-1' | 'eu-central-1' | 'ap-southeast-1' | 'ap-southeast-2', required
        - `route53ZoneId` string, required
        - `network` union
          - object
            - `mode` 'dedicated', required
          - object
            - `mode` 'existing', required
            - `vpcId` string, required
            - `serviceSubnetIds` string[], required
            - `loadBalancerSubnetIds` string[], required
            - `ecsClusterArn` string
        - `assistants` object
          - `headlessRunnerEnabled` boolean
          - `workbotEnabled` boolean
          - `slackAssistantEnabled` boolean
          - `modelProtocol` 'anthropic' | 'openai' | 'openai-responses'
          - `modelBaseUrl` string, uri
          - `model` string
          - `modelSecretArn` string
          - `computerProvider` 'off' | 'daytona' | 'freestyle'
          - `computerSecretArn` string
          - `computerSnapshot` string
          - `daytonaApiUrl` string, uri
          - `daytonaTarget` string
        - `email` object
          - `from` string, email, required
          - `smtpHost` string, required
          - `smtpPort` integer
          - `smtpSecure` boolean
          - `smtpCredentialsSecretArn` string
        - `runtimeProfile` 'legacy' | 'gateway'
    - object
      - `id` string, uuid, required
      - `name` string, required
      - `domainName` string, required
      - `ownerEmail` string, required
      - `size` 'small', required
      - `updateMode` 'approval', required
      - `createdAt` string, date-time, required
      - `webUrl` string, uri, required
      - `consoleUrl` string, uri, required
      - `installedVersion` string, nullable, required
      - `availableVersion` string, nullable, required
      - `updateAvailable` boolean, required
      - `health` object, required
        - `state` 'operational' | 'degraded' | 'down' | 'not_reporting' | 'awaiting_report', required
        - `reportedAt` string, date-time, nullable, required
        - `version` string, nullable, required
        - `checks` object[], required
          - `id` 'api_health' | 'database_ready' | 'web_available' | 'services_running' | 'load_balancer_targets' | 'database_instance' | 'database_storage' | 'database_backups' | 'certificate' | 'runner_service' | 'workbot_available' | 'runner_storage' | 'runner_backups' | 'ai_gateway_available', required
          - `status` 'ok' | 'warning' | 'failing' | 'unknown', required
          - `value` number
          - `total` number
          - `code` 'http_error' | 'unreachable' | 'slow' | 'not_running' | 'unhealthy' | 'unavailable' | 'permission_denied' | 'low_storage' | 'stale_backup' | 'backups_disabled' | 'not_issued' | 'expiring' | 'expired'
      - `run` object, nullable, required
        - `id` string, uuid, required
        - `kind` 'install' | 'update' | 'retry' | 'configure', required
        - `version` string, required
        - `state` 'awaiting_approval' | 'provisioning' | 'ready' | 'failed', required
        - `createdAt` string, date-time, required
        - `lastSeenAt` string, date-time, nullable, required
        - `expiresAt` string, date-time, required
        - `expired` boolean, required
        - `events` object[], required
          - `sequence` integer, required
          - `step` 'runner_connected' | 'release_verified' | 'account_verified' | 'infrastructure_applied' | 'services_ready' | 'health_verified', required
          - `outcome` 'succeeded' | 'failed', required
          - `errorCode` 'release_verification_failed' | 'network_check_failed' | 'infrastructure_failed' | 'certificate_failed' | 'service_unhealthy' | 'health_check_failed' | 'runner_failed'
          - `receivedAt` string, date-time, required
      - `configuration` object
        - `revision` string, required
        - `lock` 'aws_only' | 'not_installed' | 'run_in_progress' | 'unfinished_run' | 'installer_unknown' | 'installer_unavailable', nullable, required
        - `gatewayAvailable` boolean, required
        - `change` object, nullable, required
          - `runId` string, uuid, required
          - `state` 'awaiting_approval' | 'applying' | 'failed' | 'expired', required
          - `requestedAt` string, date-time, required
          - `expiresAt` string, date-time, required
          - `changes` object[], required
            - `field` 'name' | 'domainName' | 'ownerEmail' | 'target.accountId' | 'target.region' | 'target.route53ZoneId' | 'target.network' | 'target.runtimeProfile' | 'target.assistants.headlessRunnerEnabled' | 'target.assistants.workbotEnabled' | 'target.assistants.slackAssistantEnabled' | 'target.assistants.modelProtocol' | 'target.assistants.modelBaseUrl' | 'target.assistants.model' | 'target.assistants.modelSecretArn' | 'target.assistants.computerProvider' | 'target.assistants.computerSecretArn' | 'target.assistants.computerSnapshot' | 'target.assistants.daytonaApiUrl' | 'target.assistants.daytonaTarget' | 'target.email.from' | 'target.email.smtpHost' | 'target.email.smtpPort' | 'target.email.smtpSecure' | 'target.email.smtpCredentialsSecretArn', required
            - `before` string, nullable, required
            - `after` string, nullable, required
            - `effect` 'saved_immediately' | 'restarts_den' | 'restarts_runner' | 'adds_gateway_runtime', required
          - `requested` object, required
            - `name` string, required
            - `domainName` string, required
            - `ownerEmail` string, email, required
            - `size` 'small'
            - `provider` 'aws', required
            - `target` object, required
              - …
      - `provider` 'gcp', required
      - `target` object, required
        - `projectId` string, required
        - `projectNumber` string, required
        - `region` 'us-central1' | 'us-east1' | 'us-east4' | 'us-west1' | 'us-west2' | 'europe-west1' | 'europe-west2' | 'europe-west3' | 'asia-east2' | 'asia-southeast1' | 'australia-southeast1', required
        - `dnsZoneName` string, required
  - `kind` 'install' | 'update' | 'retry' | 'configure', required
  - `approvalUrl` string, uri, nullable, required
  - `command` string, nullable, required
  - `handoff` union
    - object
      - `action` 'open_link', required
      - `url` string, uri, required
      - `directUrl` string, uri, nullable
      - `command` unknown, required
      - `instructions` string, required
    - object
      - `action` 'run_in_cloud_shell', required
      - `url` string, uri, required
      - `directUrl` string, uri, nullable
      - `command` string, required
      - `instructions` string, required
  - `expiresAt` string, date-time, required

## Other responses

- `400`: Invalid input.
- `401`: Authentication required.
- `403`: Owner or super-admin approval required.
- `404`: Deployment or feature unavailable.
- `409`: The deployment cannot accept this operation now.
- `429`: Too many attempts.
- `503`: No installer release is configured.

## Changes

- **2026-12-01** `54590e072340`: 1 breaking, 1 info
  - added `subschema #1, subschema #2` to the `deployment` response property `oneOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the `deployment` response property `oneOf` list for the response status `200`
- **2026-11-24** `7346abafcf7a`: 1 warning
  - added the new `asia-east2` enum value to the `deployment/oneOf[subschema #2]/target/region` response property for the response status `200`
- **2026-11-19** `d3f512afb7e7`: 1 breaking, 1 info
  - added `subschema #1, subschema #2` to the `handoff` response property `oneOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the `handoff` response property `oneOf` list for the response status `200`
- **2026-11-18** `959d5e2545db`: 1 breaking, 1 warning, 1 info
  - added `subschema #1, subschema #2` to the `deployment` response property `oneOf` list for the response status `200`
  - added the new `configure` enum value to the `kind` response property for the response status `200`
  - removed `subschema #1, subschema #2` from the `deployment` response property `oneOf` list for the response status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/managed-deployments/:deploymentId/launch/post.md)

---

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