Create a webhook
POST
/v2/webhooksRequest
Use this request to create a new webhook for a givenwebhookEventTypeName or webhookEventTypeId.
Request body schema
When provided, we use this to generate a hash-based message authentication code (HMAC) using the SHA-256 algorithm. We Base64 encode this signature. Every event notification you receive for this webhook will include an
x-em-signature header, if a shared secret has been provided. You can use this to verify the integrity and authenticity of the message.Allowable values: ≤ 36 charactersWhether or not the webhook should be enabled.Allowable values:
true, falseThe ID of the account. When provided, the webhook is scoped to the specified account and will only fire for events on that account. When omitted, the webhook is global and fires across all accounts in your multi-account configuration.Must be omitted for onboarding event types:
AccountActivated, IdentityVerificationRequest, KycInformationRequested, KybInformationRequested, ApplicationStatusUpdated, AccountStatusUpdated. These are platform-level events that fire before an account exists.Allowable values: A valid accountId, or nullThe name of the webhook event type that you want to create a webhook for.Allowable values:
AccountCreated, AccountActivated, RecipientCreated, RecipientDeleted, BoxCredited, BoxDebited, OrderCreated, OrderCompleted, OrderCancelled, FeeCreated, 3DSAuthRequest, CardTransaction, DigitalWalletTokenTransitionThe ID of the webhook event type that you want to create a webhook for.Allowable values: ≤ 36 characters
The URL of your webhook endpoint.Allowable values: ≤ 512 characters
The authorisation header content for the webhook.Allowable values: ≤ 512 characters