POST
Create enterprise webhook
Create a webhook that will fire for any bank account associated with the enterprise. Must be an organization or enterprise admin to perform this action. To call this endpoint, you must have the user_manage scope on a short-lived access token created either in the web app or programmatically using the Login endpoint.
Path Params
-
enterpriseIdstring required
Body Params
object
-
typestring enum requiredbankAccountaccessTokenpolicyBalanceChangereversal -
urlstring required -
labelstring
Responses
200
OK
Response Body
object
Webhook response scoped to enterprise webhook types —
coin is optional.-
idstring required -
createdstring date-time required -
urlstring uri required -
versionnumber required2 for coins running on API v2. -
scopestring enum requiredwalletenterpriseorganizationsafe -
statestring enum requiredIf 'active', indicates the webhook can trigger and send to the URL. If 'suspended', indicates the webhook can't trigger.activesuspended -
successiveFailedAttemptsnumber required -
listenToFailureStatesboolean requiredWhether or not to listen to failed transactions on chain. -
coinstringA cryptocurrency or token ticker symbol. -
labelstringLabel of the new webhook. -
walletIdstring -
enterpriseIdstring -
organizationIdstring -
userIdstring -
typestring enumEvent type to listen to.bankAccountaccessTokenpolicyBalanceChangereversal -
numConfirmationsnumber -
lastAttemptstring date-time -
failingSincestring date-time -
allTokenboolean -
txRequestStatesarray of string enumspendingApprovalcanceledrejectedinitializedpendingDeliverydeliveredpendingUserSignaturependingUserCommitmentpendingUserRSharependingUserGSharereadyToSendsignedfailed -
txRequestTransactionStatesarray of string enumsinitializedpendingSignatureeddsaPendingCommitmenteddsaPendingRShareeddsaPendingGShareecdsaMPCv2Round1ecdsaMPCv2Round2ecdsaMPCv2Round3eddsaMPCv2Round1eddsaMPCv2Round2eddsaMPCv2Round3readyToCombineSharessignedhelddeliveredinvalidSignaturerejected
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
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