---
title: "Cloud-managed init scripts"
method: GET
path: "/api/v1/managed-init-scripts"
tags: ["public", "CVMs"]
---

# Cloud-managed init scripts

`GET /api/v1/managed-init-scripts`

## Request

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

Public endpoint. Returns every Cloud-managed guest init script that provisioning can inject, with the exact bytes and sha256 used at injection. env_merge merges encrypted env on boot and is still behind the managed_env_create feature flag. docker_cleanup runs before dockerd on every boot, is measured, and needs OS 0.6.x and ext4.

## Response `200`

Successful Response

- ManagedInitScriptList
  - `items` ManagedInitScript[], required: All Cloud-managed init scripts
    - `name` string, required: Script identifier: env_merge or docker_cleanup. env_merge is still behind the managed_env_create feature flag. docker_cleanup runs before dockerd on every boot, is measured, and needs OS 0.6.x and ext4.
    - `version` string, required: Script version, e.g. 0.0.2
    - `script` string, required: Full script text Cloud injects
    - `hash` string, required: sha256 of the script text, hex encoded
    - `request_field` string, required: Create-request field that selects this script: its slug in the init_scripts list.
    - `min_os_version` string, required: Minimum dstack OS version. docker_cleanup also requires ext4 storage.

## Changes

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

[Operation history](https://skmtc.dev/phala/apis/phala-cloud-api/changes/api/v1/managed-init-scripts/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)
