# Create Policy Key **POST /wallets/{walletId}/policy-key**

status: stable

Create policy key for the wallet. In order to be able to mint/burn assets with `POST Construct` endpoint there needs to be a policy key set for the wallet. Invoking this endpoint would be required for all wallets instantiated before introducing mint/burn feature prior to making a mint/burn transaction from them. To get a hash of the policy key instead of the policy key, use query parameter `hash=true`. ## Servers - https://localhost:8090/v2: https://localhost:8090/v2 () ## Parameters #### Path parameters - **walletId** (string(hex)) ## Body parameters Content-type: application/json - **passphrase** (string) A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) ## Responses ### 415: Unsupported Media Type #### Body Parameters: application/json (object) - **message** (string) A descriptive error message. - **code** (string) A specific error code for this error, more precise than HTTP ones. ### 406: Not Acceptable #### Body Parameters: application/json (object) - **message** (string) May occur when providing an invalid 'Accept' header. - **code** (string) ### 400: Bad Request #### Body Parameters: application/json (object) - **message** (string) May occur when a request is not well-formed; that is, it fails to parse successfully. This could be the case when some required parameters are missing or, when malformed values are provided. - **code** (string) ### 202: Accepted #### Body Parameters: application/json (string(bech32)) string(bech32) [Powered by Bump.sh](https://bump.sh)