---
title: "Current official pre-launch script"
method: GET
path: "/api/v1/pre-launch-script"
tags: ["public", "CVMs"]
---

# Current official pre-launch script

`GET /api/v1/pre-launch-script`

## Request

- Base URL: `https://cloud-api.phala.com`
- URL: `https://cloud-api.phala.com/api/v1/pre-launch-script`
- Auth: none declared
- TypeScript: <https://skmtc.dev/phala/apis/phala-cloud-api/docs/api/v1/pre-launch-script/get.ts> (a function with typed inputs; its response is checked against the schema)

Public endpoint. Provisioning applies the official script when the pre_launch_script field is omitted or null. Send an empty string to deploy without a pre-launch script. Use this endpoint to preview the official script and its sha256; per-CVM scripts are available from GET /cvms/{cvm_id}/pre-launch-script.

## Response `200`

Successful Response

- CurrentPreLaunchScript: The official pre-launch script applied to new deployments.
  - `script` string, required: Full script text
  - `hash` string, required: sha256 of the script text, hex encoded

## Changes

- **2026-11-07** `c71a8dc90391`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/phala/apis/phala-cloud-api/changes/api/v1/pre-launch-script/get.md)

---

[API](https://skmtc.dev/phala/apis/phala-cloud-api.md) - [All operations](https://skmtc.dev/phala/apis/phala-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phala/apis/phala-cloud-api/revisions/c71a8dc90391?raw)
