App Builds

Create App Build

Changed on

Uploads a new build artifact for an app. Upload the file first with POST /files or a direct upload, then reference it in attachment.

post/app_builds

Request

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

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
app_id, string

The app to create the build for, prefixed app_. Defaults to the app behind the presented credential.

attachment, object required

The uploaded build file: pass id for an existing file or direct_upload_id for a completed direct upload. iOS and Android builds take a .zip bundle; web builds take a JavaScript file or a .zip archive of the hosted site.

checksum, string required

A client-generated checksum of the build file, used to verify file integrity when unpacked.

platform, 'ios' | 'android' | 'web' required

The target platform for the build.

source_attachment, object

An optional compressed archive (.zip or .gz) of the source code that produced this build, stored alongside the build so it can be downloaded later. Referenced like attachment, and must be a different file.

supported_app_view_types, string[]

The view types this build supports. Only list the ones its code implements.

Example request

{
  "app_id": "app_xxxxxxxxxxxxxx",
  "attachment": {
    "direct_upload_id": "eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "id": "file_xxxxxxxxxxxxxx"
  },
  "checksum": "xxxxxxxxxxxxxxx",
  "platform": "web",
  "source_attachment": {
    "direct_upload_id": "eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "id": "file_xxxxxxxxxxxxxx"
  },
  "supported_app_view_types": [
    "hub"
  ]
}

Response

app build created

AppBuild required
checksum, string required

Client-generated checksum of the build file, used to verify file integrity.

created_at, string required

When the build was uploaded, as an ISO 8601 timestamp.

file_url, string nullable required

URL to download the uploaded build artifact.

id, string required

App build ID, prefixed abld_.

is_production, boolean required

Whether this build is the currently active production build for its platform.

platform, 'ios' | 'android' | 'web' required

The target platform for this build.

review_message, string nullable required

Feedback from the reviewer explaining a rejection, or null if the build has not been reviewed or was approved.

source_url, string nullable required

URL to download the compressed source code archive that produced this build, or null when the build was uploaded without a source archive.

status, 'draft' | 'pending' | 'approved' | 'rejected' required

The build's review status.

supported_app_view_types, string[] required

Example response

{
  "checksum": "xxxxxxxxxxxxxxx",
  "created_at": "2026-01-01T12:00:00.000Z",
  "file_url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "id": "apbu_xxxxxxxxxxxxxx",
  "platform": "ios",
  "review_message": "The hub view crashes on launch when the member has no active membership. Fix and resubmit.",
  "source_url": "https://whop-assets-example.s3.amazonaws.com/uploads/zip/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "rejected",
  "supported_app_view_types": [
    "hub"
  ]
}

Changes

    • info

      the security scope developer:manage_builds was removed from the endpoint's security scheme bearerAuth

    • info

      the security scope developer:manage_builds was removed from the endpoint's security scheme bearerAuth