Retrieve the public key for encrypting environment variables before deployment.
cURL
curl --request GET \ --url https://cloud-api.phala.com/api/v1/kms/{kms_id}/pubkey/{app_id}
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
40-character hex string, with or without 0x prefix
KMS ID (hashed) or slug
Successful Response
Was this page helpful?