---
title: "Request a new key to a keychain, the key will belong to the specified space."
method: POST
path: "/warden.warden.v1beta2.Msg/NewKeyRequest"
tags: ["Msg"]
---

# Request a new key to a keychain, the key will belong to the specified space.

`POST /warden.warden.v1beta2.Msg/NewKeyRequest`

## Request body

- object
  - `authority` string
  - `space_id` string, uint64
  - `keychain_id` string, uint64
  - `key_type` 'KEY_TYPE_UNSPECIFIED' | 'KEY_TYPE_ECDSA_SECP256K1' | 'KEY_TYPE_EDDSA_ED25519' — KeyType indicates what crypto scheme will be used by this key (e.g. ECDSA). Its public key will be one of the specified type. - KEY_TYPE_UNSPECIFIED: The key type is missing. - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key.
  - `intent_id` string, uint64

## Response `200`

A successful response.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/wardenprotocol/apis/http-api-console.md) · [All operations](https://skmtc.dev/wardenprotocol/apis/http-api-console/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wardenprotocol/http-api-console/revisions/44399dd0ab35/schema)
