# Create Account Public Key **POST /wallets/{walletId}/keys/{index}**
status: stable
Derive an account public key for any account index. For this key derivation to be possible, the wallet must have been created from mnemonic. It is possible to use the optional `purpose` field to override that branch of the derivation path with different hardened derivation index. If that field is omitted, the default purpose for Cardano wallets (`1852H`) will be used. Note: Only _Hardened_ indexes are supported by this endpoint. ## Servers - https://localhost:8090/v2: https://localhost:8090/v2 () ## Parameters #### Path parameters - **walletId** (string(hex)) - **index** (string) An individual segment within a derivation path. The `H` suffix indicates a _Hardened_ child private key, which means that children of this key cannot be derived from the public key. Indices without a `H` suffix are called _Soft_. ## Body parameters Content-type: application/json - **passphrase** (string) A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) - **format** (string) Determines whether extended (with chain code) or normal (without chain code) key is requested - **purpose** (string) An individual segment within a derivation path. The `H` suffix indicates a _Hardened_ child private key, which means that children of this key cannot be derived from the public key. Indices without a `H` suffix are called _Soft_. ## 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)