POST
Create a key
Create a key for a coin, optionally providing backup or MPC key material.
Path Params
-
coinstring requiredCoin or token ticker.
Body Params
object
Create key request
Specifies the key source and optional key material, provider, and MPC parameters.
-
coinSpecificobjectCoin-specific creation options, including Lightning authentication key purpose.coinSpecific object
-
lnbtcobjectlnbtc object
-
purposestring enumuserAuthnodeAuth
-
-
tlnbtcobjecttlnbtc object
-
purposestring enumuserAuthnodeAuth
-
-
-
encryptedPrvstringPrivate key encrypted with a client-controlled passphrase. -
providerstringBackup key provider. -
sourcestring enumOwner of the key.usercoldbitgobackup -
derivedFromParentWithSeedstringSeed used to derive the key from a parent. -
disableKRSEmailbooleanDisable backup provider email notifications. -
krsSpecificmap of objectsAdditional backup provider options. -
enterprisestringPublic ID of the enterprise that owns the key. -
identifierstringClient-specified key identifier. -
newFeeAddressbooleanCreate a new Ethereum fee address key. -
originalPasscodeEncryptionCodestringPassphrase encryption code for the wallet keycard. -
pubstringPublic key material. -
isDistributedCustodybooleanWhether the BitGo key uses distributed custody. -
commonPubstringCommon MPC public key. -
commonKeychainstringCommon MPC public key and chain code. -
keySharesarray of objectskeyShares object
-
privateShareProofstring -
vssProofstring -
fromstring enum requiredThe source of the key share.userbackupbitgo -
tostring enum requiredThe recipient of the key share.userbackupbitgo -
publicSharestring requiredPublic part of the share concatenated with chain code (64+64 characters hex string). -
privateSharestring requiredPrivate part of the share concatenated with chain code (64+64 characters hex string). Depending on who the source and the recipient are, the share might be encrypted against the recipient's public key.
-
-
typestringLegacy backup key type or coin name. -
keyTypestring enumKey generation type.tssindependent -
userGPGPublicKeystringASCII-armored user GPG public key. -
backupGPGPublicKeystringASCII-armored backup GPG public key. -
isMPCv2booleanWhether the key uses MPC version 2.
Responses
200
OK
Response Body
ONE OF
-
idstring required -
pubstring requiredPublic part of a key pair -
ethAddressstringEthereum address associated with this key -
derivedFromParentWithSeedstring -
derivedFromParentWithPathstring -
sourcestring enum requiredusercoldbitgobackup -
hsmTypestring enumThe type of HSM that owns this key.institutionalnitroSDTrustNitrofrankfurtDETrustNitroawsKms -
isBitGoboolean"true" if this key is owned by BitGo -
isTrustboolean"true" if this key is owned by Trust -
encryptedPrvstringThe encrypted private key -
aspKeyIdnumber -
coinSpecificmap of objectscoinSpecific object
-
<key>object
-
-
typestring enum requiredA value from a string enum denoting what kind of key this is. Defaults to “independent” indicating an on-chain key is requested. If set to “tss” this tells us that a “tss” key is requested.tssindependent -
commonKeychainstringThe commonKeychain for the key if this is a MPC key. This value is required to be set when the type is set to “tss” and when the source is either “user” or “backup”. Setting this indicates to BitGo that the owner of the key has received all key shares they needed for generating their key. This value is the concatenation of the common public key (32-byte) with the common chaincode (32-byte) as a hex string. -
verifiedVssProofboolean -
commonPubstringThe common public key. This value is required to be set for MPC keys when the source is either "user" or "backup". Setting this indicates to BitGo that the owner of the key has received all key shares they needed for generating their key. -
commonPubSigstring -
providerstring -
distributedCustodystring -
webauthnDevicesarray of objectswebauthnDevices object
-
authenticatorInfoobject requiredThe information about the authenticatorauthenticatorInfo object
-
credIDstring requiredThe credential ID of the authenticator -
fmtstring requiredThe format of the authenticator -
publicKeystring requiredThe public key of the authenticator
-
-
encryptedPrvstring requiredThe encrypted private key -
otpDeviceIdstring requiredThe OTP device ID -
prfSaltstring requiredThe PRF salt
-
-
migratedFromstring -
parentstringThe id of the parent key this key was derived from, if any -
keySharesarray of objectskeyShares object
-
hsmSigstringThe HSM signature -
privateShareProofstringThe certificate of the private share, signed by the source of the key share. -
vssProofstringThe verifiable shamir share verification value -
fromstring enum requiredThe source of the key share.userbackupbitgo -
tostring enum requiredThe recipient of the key share.userbackupbitgo -
publicSharestring requiredPublic part of the share concatenated with chain code (64+64 characters hex string). -
privateSharestring requiredPrivate part of the share concatenated with chain code (64+64 characters hex string). Depending on who the source and the recipient are, the share might be encrypted against the recipient's public key.
-
-
commonKeychainSigstring -
walletHSMGPGPublicKeySigsstring
-
idstring required -
sourcestring enum requiredusercoldbitgobackup -
typestring enum requiredtss -
pubstring -
commonKeychainstring -
keySharesarray of objectskeyShares object
-
hsmSigstringThe HSM signature -
privateShareProofstringThe certificate of the private share, signed by the source of the key share. -
vssProofstringThe verifiable shamir share verification value -
fromstring enum requiredThe source of the key share.userbackupbitgo -
tostring enum requiredThe recipient of the key share.userbackupbitgo -
publicSharestring requiredPublic part of the share concatenated with chain code (64+64 characters hex string). -
privateSharestring requiredPrivate part of the share concatenated with chain code (64+64 characters hex string). Depending on who the source and the recipient are, the share might be encrypted against the recipient's public key.
-
-
commonKeychainSigstring -
walletHSMGPGPublicKeySigsstring
400
Bad Request
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
401
Unauthorized
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
403
Forbidden
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
404
Not Found
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
409
Conflict
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
429
Too Many Requests
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
500
Internal Server Error
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
503
Service Unavailable
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id