---
title: "Batch check on-chain deployment allowance for all CVMs under an app"
method: POST
path: "/api/v1/apps/{app_id}/cvms/is-allowed"
tags: ["Apps"]
---

# Batch check on-chain deployment allowance for all CVMs under an app

`POST /api/v1/apps/{app_id}/cvms/is-allowed`

## Path parameters

- `app_id` string, required

## Response `200`

Successful Response

- AppCvmsBatchIsAllowedResponse
  - `is_onchain` boolean, required — Whether this app uses on-chain KMS
  - `results` CvmIsAllowedItem[]
    - `cvm_id` integer, required
    - `app_contract_address` string, required
    - `compose_hash` string, required
    - `device_id` string, required
    - `compose_hash_allowed` boolean, required
    - `allow_any_device` boolean, required
    - `device_id_allowed` boolean, nullable
    - `is_allowed` boolean, required
    - `error` string, nullable
  - `total` integer
  - `allowed_count` integer
  - `denied_count` integer
  - `error_count` integer
  - `skipped_cvm_ids` integer[]

## Other responses

- `422` — Validation Error

---

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