---
title: "Get CVM user config"
method: GET
path: "/api/v1/cvms/{cvm_id}/user_config"
tags: ["CVMs"]
---

# Get CVM user config

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

Returns the user_config stored in Teepod for this CVM, including injected SSH keys.

## Path parameters

- `cvm_id` string, required

## Response `200`

User config retrieved

- CvmUserConfig
  - `hostname` string, nullable — CVM hostname
  - `ssh_authorized_keys` string[] — SSH public keys injected at launch
  - `default_gateway_domain` string, nullable — Default gateway domain

## Other responses

- `400` — Invalid CVM identifier format, or multiple CVMs share the same name
- `401` — Not authenticated
- `404` — CVM not found or not accessible in this workspace
- `422` — Validation Error
- `502` — Teepod returned an error or invalid user_config JSON

---

[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)
