> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phala.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get CVM user config

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



## OpenAPI

````yaml /openapi.json get /api/v1/cvms/{cvm_id}/user_config
openapi: 3.1.0
info:
  title: Phala Cloud API
  version: 0.1.0
servers:
  - url: https://cloud-api.phala.com
security: []
tags:
  - name: CVMs
    description: Confidential Virtual Machine (CVM) lifecycle management on Phala Network
  - name: Apps
    description: App template management and CVM deployment from app blueprints
  - name: Webhooks
    description: Manage webhook endpoints and monitor delivery history
  - name: SSH Keys
    description: SSH public key management for CVM access
  - name: KMS
    description: >-
      Key Management Service — key derivation, on-chain anchoring, and
      inspection
  - name: Instance Types
    description: Available hardware configurations for CVM deployment
  - name: Attestations
    description: Remote attestation and TEE verification endpoints
paths:
  /api/v1/cvms/{cvm_id}/user_config:
    get:
      tags:
        - CVMs
      summary: Get CVM user config
      description: >-
        Returns the user_config stored in Teepod for this CVM, including
        injected SSH keys.
      operationId: get_cvm_user_config_api_v1_cvms__cvm_id__user_config_get
      parameters:
        - name: cvm_id
          in: path
          required: true
          schema:
            type: string
            title: Cvm Id
      responses:
        '200':
          description: User config retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CvmUserConfig'
        '400':
          description: Invalid CVM identifier format, or multiple CVMs share the same name
        '401':
          description: Not authenticated
        '404':
          description: CVM not found or not accessible in this workspace
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Teepod returned an error or invalid user_config JSON
components:
  schemas:
    CvmUserConfig:
      properties:
        hostname:
          anyOf:
            - type: string
            - type: 'null'
          title: Hostname
          description: CVM hostname
        ssh_authorized_keys:
          items:
            type: string
          type: array
          title: Ssh Authorized Keys
          description: SSH public keys injected at launch
        default_gateway_domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Default Gateway Domain
          description: Default gateway domain
      type: object
      title: CvmUserConfig
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````