Skip to main content
App methods let you query and inspect applications deployed on Phala Cloud. An app is the logical grouping that contains one or more CVMs running the same compose configuration.

get_app_list

GET /apps Lists all apps visible to the authenticated user. Supports optional filtering via query parameters. Parameters: Optional dictionary of filter parameters (passed as query params). Returns: App list response. Example:

get_app_info

GET /apps/{appId} Retrieves detailed information about a specific app. Parameters: Returns: App info response with full details. Example:

get_app_cvms

GET /apps/{appId}/cvms Lists all CVMs that belong to a specific app. Parameters: Returns: List of CVM objects. Example:

get_app_revisions

GET /apps/{appId}/revisions Lists the revision history for an app. Each revision represents a configuration change (compose file update, env change, etc.). Supports pagination. Parameters: Returns: Paginated list of revision summaries. Example:

get_app_revision_detail

GET /apps/{appId}/revisions/{revisionId} Retrieves the full details of a specific revision, optionally including the raw compose file. Parameters: Returns: Revision detail response. Example:

get_app_attestation

GET /apps/{appId}/attestations Retrieves TEE attestation information for an app. This includes the attestation report that proves the app is running inside a genuine TEE environment. Parameters: Returns: App attestation response. Example:

get_app_device_allowlist

GET /apps/{appId}/device-allowlist Retrieves the device allowlist for an app. The allowlist controls which TEE devices are permitted to run the app. Parameters: Returns: Device allowlist response. Example:

get_app_filter_options

GET /apps/filter-options Returns the available filter options for the app list endpoint. Useful for building UI filters. Parameters: None. Returns: Filter options response with available values. Example:

check_app_is_allowed

POST /apps/{appId}/is-allowed Checks whether an app is allowed to run based on device allowlist constraints. Parameters: Returns: Allowance check response.

check_app_cvms_is_allowed

POST /apps/{appId}/cvms/is-allowed Batch-checks whether all CVMs under an app are allowed to run. Parameters: Returns: Batch allowance check response.

set_app_launch_token / clear_app_launch_token

POST /apps/{appId}/launch-token / DELETE /apps/{appId}/launch-token set_app_launch_token sets or rotates the app’s launch token and returns it once, with its hash. Leave out launch_token to have Phala Cloud generate one. Then update each CVM’s requirements.launch_token_hash to the returned hash with patch_cvm. clear_app_launch_token removes the token; remove the hash from every CVM first. Phala Cloud and the node operator can read the token. See Launch Token. Parameters: Returns: set_app_launch_token returns AppLaunchTokenResponse with launch_token and launch_token_hash. clear_app_launch_token returns None.