cURL
curl --request POST \ --url https://cloud-api.phala.com/api/v1/apps/{app_id}/is-allowed \ --header 'Content-Type: application/json' \ --data ' { "compose_hash": "<string>", "node_id": 123, "device_id": "<string>", "chain_id": 123 } '
{ "app_contract_address": "<string>", "compose_hash": "<string>", "device_id": "<string>", "compose_hash_allowed": true, "allow_any_device": true, "is_allowed": true, "device_id_allowed": true, "error": "<string>" }
Compose hash to check (hex)
Node ID (resolves device_id from DB)
Device ID (hex, direct)
Chain ID for RPC URL resolution. If omitted, resolved from DB via CVM/KMS records.
Successful Response
Was this page helpful?