---
title: "Get raw compose file"
method: GET
path: "/api/v1/cvms/{cvm_id}/compose_file"
tags: ["CVMs"]
---

# Get raw compose file

`GET /api/v1/cvms/{cvm_id}/compose_file`

Returns the complete compose file as JSON or raw text based on query param.

## Path parameters

- `cvm_id` string, required

## Query parameters

- `raw` string, nullable

## Response `200`

Compose file content

- unknown

## Other responses

- `401` — Authentication required
- `403` — CVM not in workspace
- `404` — CVM not found
- `422` — Validation Error
- `500` — Failed to retrieve compose file

---

[API](https://skmtc.net/phala/apis/phala-cloud-api.md) · [All operations](https://skmtc.net/phala/apis/phala-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phala/phala-cloud-api/versions/83c6ae62e860/schema)
