> ## 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.

# Provision Eliza app

> Validates Eliza configuration and caches it for 14 days. Returns compose_hash and KMS info for on-chain registration.



## OpenAPI

````yaml /openapi.json post /api/v1/cvms/provision/eliza
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/provision/eliza:
    post:
      tags:
        - CVMs
      summary: Provision Eliza app
      description: >-
        Validates Eliza configuration and caches it for 14 days. Returns
        compose_hash and KMS info for on-chain registration.
      operationId: handle_provision_cvm_for_eliza_api_v1_cvms_provision_eliza_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProvisionElizaRequest'
        required: true
      responses:
        '200':
          description: Provision data with compose_hash for creation
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid configuration
        '401':
          description: Authentication required
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ProvisionElizaRequest:
      properties:
        name:
          type: string
          title: Name
          description: The name of the tapp.
        characterfile:
          type: string
          title: Characterfile
          description: The characterfile to use for the a16z/eliza.
        env_keys:
          items:
            type: string
          type: array
          title: Env Keys
          description: The environment variables to use for the a16z/eliza.
        teepod_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Teepod Id
          description: >-
            The Teepod ID to use for the a16z/eliza. If not provided, it will
            auto select an available one.
        image:
          anyOf:
            - type: string
            - type: 'null'
          title: Image
          description: >-
            The image to use for the a16z/eliza. If not provided, it will use
            the latest image.
        kms_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Kms Id
          description: The KMS ID to use.
      type: object
      required:
        - name
        - characterfile
        - env_keys
      title: ProvisionElizaRequest
    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

````