Apps

Builds the app's current source and ships it. Returns the run it started, so the caller can render progress from this response and then follow it on the app's deployment field. Only one deployment runs per app at a time — calling this while one is in flight reports that run rather than starting a second, and calling it with nothing to publish reports that instead of starting one.

post/apps/{id}/deploy

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required

The app to deploy, prefixed app_.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
draft, boolean

Upload the build without making it live. Defaults to false, which deploys and promotes in one step.

Response

deployment started

AppDeployment required
app_id, string required

The app being deployed, prefixed app_.

build_id, string nullable required

The build the deployment produced, prefixed abld_, or null until it succeeds.

draft, boolean required

Whether the running or last deployment uploaded a build without making it live.

error, string nullable required

Why the deployment failed, or null when it did not.

estimated_duration_ms, integer nullable required

How long this deployment is expected to take in total, estimated from previous runs.

estimated_remaining_ms, integer nullable required

How much longer the deployment is expected to take. Held above zero until it actually finishes.

finished_at, integer nullable required

When the deployment ended, in milliseconds since the epoch, or null while it is still running.

phase, 'install' | 'build' | 'typecheck' | 'upload_build' | 'upload_source' | 'process_archive' | 'create_build' | 'promote' | 'null' nullable required

The stage a running deployment has reached, or null when none is running. Later phases dominate the wall clock: process_archive waits on the upload pipeline and promote waits for the build to go live.

progress, number nullable required

Fraction of the deployment estimated to be complete, from 0 to 1. Stops just short of 1 until the run ends.

started_at, integer nullable required

When the deployment began, in milliseconds since the epoch, or null when none has run.

status, 'published' | 'unpublished' | 'publishing' | 'failed' | 'no_source' required

Whether the app has anything to publish, and what a publish in flight is doing. unpublished means publishing would ship something new; no_source means the sandbox holds no copy of this app, so there is nothing to publish from.

url, string nullable required

Where the deployed site is served, or null unless the deployment went live.

Example response

{
  "app_id": "app_xxxxxxxxxxxxxx",
  "estimated_duration_ms": 150000,
  "estimated_remaining_ms": 91000,
  "phase": "process_archive",
  "progress": 0.39,
  "started_at": 1767268800000,
  "status": "publishing"
}

Changes