Skip to main content
PUT
Update

Update Webhook URL

This endpoint allows updating the webhook URL and signing secret associated with a specific event.
  • The event parameter must be provided in the path
  • The request body should include the new configuration values for the specified event’s webhook URL
Registering, updating or removing a webhook may take up to 5 minutes to take effect. Until then, webhooks keep being delivered to the previous destination.

Path Parameters

string
required
The event type for which to update the webhook URLAllowed values: onboarding, payin, payoutExample: onboarding

Request Body

string
required
Type of event of the webhook. Must match the event path parameter.Allowed values: onboarding, payin, payout
string
required
Endpoint URL that will receive the webhook notifications for the selected event.URL characters: a-z, A-Z charactersMaximum length: 120 charactersExample: https://my-url.requestcatcher.com/test
string
Secret used to sign the payin and payout webhooks with HMAC-SHA256. When provided, every webhook for this event includes the x-webhook-wp-signature header.Maximum length: 255 characters. Use a long, randomly generated value.Example: whsec_9f8e7d6c5b4a3210
The update replaces the whole configuration. If secret is omitted or null, the current secret is removed and the webhooks are no longer signed. Always send the secret you want to keep.
To rotate the secret, send the new value in secret. Changes may take up to 5 minutes to take effect, so accept signatures computed with either the old or the new secret during this period.

Response

string
Type of event that was registered for the webhookAllowed values: onboarding, payin, payout
string
Endpoint URL that was registered to receive webhook notificationsExample: https://my-url.com/test
string
Secret used to sign the webhooks for this event, or null if none is set.Example: whsec_9f8e7d6c5b4a3210

Request Example