Skip to main content
Webhook endpoints are the URLs on your server that Dubu sends event notifications to. When something significant happens in your account — a deposit settles, a customer completes KYC, or a checkout payment is received — Dubu POSTs a signed JSON payload to every active endpoint subscribed to that event type. This page covers how to register and manage your endpoints. For the full list of event types and their payloads, see Webhook event types and payload reference. All routes require authentication via API key or JWT bearer token.

Endpoint object

string
Unique endpoint identifier (UUID).
string
The HTTPS URL Dubu delivers events to.
array
List of event type strings this endpoint is subscribed to. An empty array means all events are delivered.
boolean
Whether this endpoint is currently receiving events.
string
ISO 8601 creation timestamp.
string
ISO 8601 last-updated timestamp.

Register an endpoint

Register a new URL to receive webhook events. Dubu returns the endpoint’s signing secret (secret) in this response — store it securely. It is only shown once and is used to verify that incoming requests genuinely originate from Dubu. See verifying signatures for how to use it.

Request body

string
required
The fully-qualified HTTPS URL Dubu should POST events to. Must be a valid URL.
array
required
Array of event type strings to subscribe to (e.g. ["deposit.settled", "checkout.payment.completed"]). Pass an empty array [] to subscribe to all events.

Example

Response

Returns 201 Created. The secret field is only present in this response.

List endpoints

Returns all registered webhook endpoints for your account. The secret field is never returned in list or get responses — rotate the secret if you need to retrieve it again.

Example


Update an endpoint

Update the URL, subscribed events, or active status of an endpoint.
string
required
UUID of the endpoint to update.
string
New delivery URL.
array
Updated list of event type strings. Replaces the current subscription list.
boolean
Set to false to pause delivery without deleting the endpoint.

Example


Delete an endpoint

Permanently removes a webhook endpoint. Dubu will stop delivering events to this URL immediately.
string
required
UUID of the endpoint to delete.

Send a test event

Triggers an immediate test delivery to the endpoint. Dubu sends a signed payload to your URL so you can verify that your server receives and processes events correctly without waiting for a real event.
string
required
UUID of the endpoint to test.
The response includes the payload that was sent and whether the delivery succeeded.

Rotate signing secret

Generates a new signing secret for an endpoint. After rotating, you must update your server to use the new secret for signature verification. The previous secret stops working immediately.
string
required
UUID of the endpoint whose secret you want to rotate.

View delivery logs

Returns a paginated log of all webhook delivery attempts for your account, including the payload sent, the HTTP status code returned by your server, and whether delivery was considered successful.

Query parameters

string
Filter logs to a specific endpoint.
string
Filter by event type, e.g. deposit.settled.
string
true to see only successful deliveries, false to see only failed ones.
number
Page number (1-indexed).
number
Results per page. Maximum 100. Defaults to 50.

Example

Log entry fields

string
Log entry UUID.
string
UUID of the endpoint this delivery was attempted to.
string
URL of the endpoint at the time of delivery.
string
The event type that was delivered.
object
The full JSON payload that was sent to your endpoint.
number
HTTP status code returned by your server. 0 if the connection failed.
boolean
true if your server responded with a 2xx status code.
string
Error description if delivery failed. null on success.
string
ISO 8601 timestamp of the delivery attempt.