Create a wallet share
Share wallet with an existing BitGo user. When the wallet has more than one admin, the share waits for approval.
Path Params
-
coinstring requiredA cryptocurrency or token ticker symbol -
walletIdstring requiredThe ID of the wallet
Body Params
object
Create V2 Wallet Share Request Body
The request body for sharing a wallet with an existing BitGo user: who receives the share, with which permissions, and the key that is passed to them.
-
userstring requiredThe ID of the user to share the wallet with.
The user must be active and, for enterprise wallets, a member of the enterprise.
-
permissionsstringComma-separated list of privileges for the wallet.
Includes
admin,freeze,spend,trade,viewanddapp, for examplespend,view. Needed for a new share. A reshare ignores it, because it reuses the permissions the user already has. -
messagestringUser readable message to display to the share recipient.
Free text.
-
resharebooleanFlag for reinviting a user to the wallet.
Required if the invitee is already on the wallet but has changed their password and needs a new invite.
-
disableEmailbooleanFlag for disabling the invite notification email.
When true, the recipient is not notified by email.
-
keychainobjectThe key to pass to the receiving user.
Required when the share grants spend permission on a coin with keys, unless
skipKeychainis true.keychain object
-
encryptedPrvstringPrivate key of the user sharing the wallet, encrypted under their wallet passphrase -
fromPubKeystringDerived public key of the user sharing the wallet -
pathstringBIP32 HD path of the derived public keys (fromPubKeyandtoPubKey) -
pubstringOne of the wallet public key (on-chain) or the common keychain (MPC) -
toPubKeystringDerived public key of the user receiving the share. It must match the derivation of the recipient's ECDH keychain atpath
-
-
skipKeychainbooleanIf true, allows creating a wallet share without sharing a key when the wallet is shared with spend permission.
Required for multi-user-key wallets, and
keychainmust then be empty.
Responses
200
OK
Response Body
object
-
idstring required -
coinstring requiredA cryptocurrency or token ticker symbol. -
walletstring requiredThe ID of the shared wallet. -
walletLabelstringName of the wallet. Can be absent for shares created before the name was stored. -
fromUserstring requiredThe ID of the user who shared the wallet. -
toUserstring requiredThe ID of the user the wallet is shared with. -
permissionsarray of strings required -
statestring enumThe state of the share.pendingapprovalactiveacceptedcanceledrejected -
enterprisestringThe ID of the enterprise the wallet belongs to. -
messagestringUser readable message for the recipient of the share. -
pendingApprovalIdstringOnly set if the share is waiting for approval. -
keychainOverrideRequiredbooleanDeprecated. Always false. -
userMultiKeyRotationRequiredbooleanWhether the recipient has to supply their own public key when accepting the share. -
isUMSInitiatedbooleanWhether the share was created by user management. -
keychainobjectOnly set if the share includes a key.keychain object
-
pubstringSharing user's root public key, or the common keychain of an MPC wallet. -
encryptedPrvstringSharing user's private key, encrypted under their wallet passphrase. -
fromPubKeystringSharing user's derived public key, used to calculate the wallet sharing secret. -
toPubKeystringShared-to user's derived public key, used to calculate the wallet sharing secret. -
pathstringBIP32 HD path of the derived public keys.
-
-
updatedAtstring date-time
400
Bad Request
Response Body
ONE OF
-
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
-
namestring enum requiredInvalidWalletId -
contextobject requiredcontext object
-
idstring required
-
-
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
422
Unprocessable Entity
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