Skip to main content
Webhooks let you subscribe to Nuvion events and receive HTTP POST notifications when those events occur. Each webhook is scoped to the authenticated entity and can subscribe to specific event types or all events. See Webhooks overview for the delivery model, retries, and signature verification.

Endpoints


The Webhook object

string
Unique webhook identifier.
string
The ID of the entity this webhook belongs to. Defaults to the authenticating entity when omitted. Required when acting on a child entity. See Managing child entities for details.
string
The HTTPS endpoint Nuvion delivers events to. Must use the https protocol.
number
Duration in seconds. The API stores the value and returns it, but doesn’t expire the webhook or stop deliveries when the time passes.
object
The set of events this webhook is subscribed to.
string[]
Read-only. A flattened summary of the enabled events, using group.all where every event in a group is enabled. e.g. ["accounts.all", "outflows.all"].
string
System-generated signing secret, in the format nv_wsk_ followed by 64 hexadecimal characters. Nuvion derives an HMAC from this value to sign each delivery. Returned once, at creation or when rotated via rotate_secret: store it securely before leaving the page. It is never returned on subsequent requests. See Verifying signatures for how to validate incoming requests.
string
Optional short description to identify the webhook in the dashboard. Omitted when not set.
string[]
Optional list of tags for organizing webhooks.
string
Webhook status. One of active, inactive, or blacklisted. Defaults to active at creation. See Blacklisting for how a webhook becomes blacklisted and how to reactivate it.
string
Human-readable explanation of the current status, for example Webhook delivery failure threshold exceeded after a webhook is blacklisted. Omitted when there is no reason.
number
Unix timestamp in milliseconds when the webhook was created.
number
Unix timestamp in milliseconds when the webhook was last updated.
number
0 if the webhook is active. Non-zero if the webhook has been deleted.
object
Read-only delivery statistics for this webhook.
Example

Create a webhook

POST /entity-webhooks Registers a new webhook endpoint for the authenticated entity. Returns 201 Created. The call is not idempotent and the API doesn’t check for duplicate URLs: sending the same request twice creates two webhooks, and each one receives every event it subscribes to.

Request parameters

string
required
The HTTPS endpoint Nuvion posts events to. Must begin with https://. A URL that doesn’t start with https:// returns 422 error_validation_error, and a malformed https:// URL returns 400 error_validation_invalid_format.
number
required
Duration in seconds. Required. The API accepts any number, including 0, and returns the value as sent. The API stores the value and returns it, but doesn’t expire the webhook or stop deliveries when the time passes.
string
The ID of the entity this webhook belongs to. Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.
object
required
The events to subscribe to. Set all to subscribe to every event, or enable specific events within one or more groups. See enabled_events fields for the full group structure.When you send a group, include every event in it, set to true or false: a missing event returns 422 error_validation_required_field_missing. For example, { "outflows": { "created": true, "completed": true, "failed": true, "cancelled": false, "refunded": false } } subscribes to three outflow events. Groups you leave out are not subscribed, a group name the API doesn’t recognize is ignored, and an empty object is accepted.Some flags in the subscription object do not produce deliveries, for example accounts.updated, accounts.deleted and funding_sessions.created. Subscribe to the events listed on Event types.
boolean
When true, subscribes to every event type. Overrides all other selections in this object.
string
A short description to identify the webhook in the dashboard. Omitted from the response when you don’t send one.
string[]
A list of tags for organizing webhooks. Defaults to an empty list.
string
The initial status. One of active or inactive. Defaults to active. Any other value, including blacklisted, returns 422 error_validation_value_not_supported.

Response

Returns 201 Created with the new webhook object. The secret is returned only in this response, so store it now. It begins with nv_wsk_ followed by 64 hexadecimal characters.
Copy and store the secret immediately after creating the webhook.

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object. Example error responses:

Update a webhook

PATCH /entity-webhooks/:webhookId Updates an existing webhook. Only the fields you include are changed; omitted fields keep their current values. An empty body succeeds and changes nothing. Returns 200 OK. Changing the url or reactivating a blacklisted webhook first sends a webhook.health request to the URL, and the update applies only if the endpoint returns 2xx. Other changes, such as description, tags and enabled_events, apply to a blacklisted webhook without a health check, but they don’t reactivate it. See Blacklisting.

Path parameters

string
required
The webhook ID, a 26-character ULID. A value of any other length or format returns 422 error_validation_invalid_format. A well-formed ID that doesn’t exist, was deleted, or belongs to another entity returns 404 error_resource_not_found.

Request parameters

string
New HTTPS delivery URL. Must begin with https://; any other value returns 422 error_validation_invalid_format. Triggers the webhook.health check against the new URL before the update applies.
string
One of active or inactive. Send active to reactivate a blacklisted webhook. The API runs the webhook.health check against the current URL, and the status changes only if the check passes. Any other value returns 422 error_validation_value_not_supported. A blacklisted webhook can’t be set to inactive.
boolean
Set to true to generate a new signing secret. The new secret is returned once, in this response; update your verification logic to use it. Defaults to false.
object
The events to subscribe to, in the same shape as the Webhook object. Each event group you send replaces that group, so include every event in the group: a missing event returns 422 error_validation_required_field_missing. Groups you omit keep their current values. The API ignores a group name it doesn’t recognize. preferred_events is recalculated from the result.
string
A short description to identify the webhook in the dashboard.
string[]
A list of tags for organizing webhooks. Replaces the existing list, so send every tag you want to keep.
number
Duration in seconds. The API stores the value and returns it, but doesn’t expire the webhook or stop deliveries when the time passes.
string
Selects the entity that owns the webhook. Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.

Request

Response

Returns the updated Webhook object with the message Webhook edited successfully. The secret is included only when you set rotate_secret. It begins with nv_wsk_ and is followed by 64 hexadecimal characters.

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object.

Get a webhook

GET /entity-webhooks/:webhookId Retrieves a single webhook by ID. Returns 200 OK. Authenticate with a secret API key; a publishable key or no key returns 401 error_auth_credentials_invalid. The signing secret is never returned. Store it when you create the webhook or rotate it.

Path parameters

string
required
The webhook ID, a 26-character ULID. A value of any other length or format returns 422 error_validation_invalid_format. A well-formed ID that doesn’t exist, was deleted, or belongs to another entity returns 404 error_resource_not_found.

Query parameters

string
The ID of the entity this webhook belongs to. Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns 404 error_resource_not_found, and a webhook is only readable through the entity that owns it. See Managing child entities for details.

Response

Returns the Webhook object. description and status_reason are omitted when unset.

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object. Example error responses:

List webhooks

GET /entity-webhooks Returns a paginated list of the webhooks for the authenticated entity, newest first across pages. Returns 200 OK. Authenticate with a secret API key; a publishable key or no key returns 401 error_auth_credentials_invalid. Deleted webhooks are never returned. inactive and blacklisted webhooks are included.

Query parameters

integer
Number of results per page. Between 1 and 100. Defaults to 20. A value outside that range, or a non-numeric value, returns 422 error_validation_value_out_of_range.
string
Pagination cursor for the next page: the data.meta.pagination.next_cursor value from the previous response. Omit for the first page. A value that isn’t a 26-character ULID returns 422 error_validation_invalid_format.
string
The ID of the entity whose webhooks to list. Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.
This endpoint pages forward only. It has no prev_cursor parameter, and previous_cursor in the response is informational: sending it as cursor returns the records after it, not the previous page. has_previous is true whenever you send cursor. A page can hold fewer items than limit while has_next is true, and the order of items within a page isn’t guaranteed.

Response

Returns the webhooks under data.data and the pagination state under data.meta.pagination. Each item is a Webhook object. description and status_reason are omitted when unset, and the signing secret is never returned.
200 OK

Filter the list

Returns one webhook per page. A filter that matches nothing returns an empty list.

Fetch the next page

Pass next_cursor from the previous response as cursor and keep the same filters. The response is the next page, and has_next is false on the last one.

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object. Example error responses:

Delete a webhook

DELETE /entity-webhooks/:webhookId Deletes a webhook. It can no longer be retrieved or updated, and Nuvion stops delivering events to its endpoint. Returns 200 OK. Delivery history stays in the webhook logs. If the webhook belonged to a child entity, that entity’s events go to the parent’s webhook afterwards. See Webhooks overview. Deleting is not idempotent. Deleting a webhook that is already deleted returns 404.

Path parameters

string
required
The ID of the webhook to delete. A value that isn’t a 26-character ULID returns 422 error_validation_invalid_format. A well-formed ID that doesn’t exist, is already deleted, or belongs to another entity returns 404 error_resource_not_found.

Request parameters

string
Selects the entity that owns the webhook. Defaults to the authenticating entity when omitted. Required when acting on a child entity. Send it in a JSON request body with Content-Type: application/json. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.

Response

Returns the deleted Webhook object as it was before deletion, with the message Webhook deleted successfully. The deleted field in this response is 0, because it shows the state before the delete. The secret isn’t returned.
200 OK

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object. Example error responses:

The Webhook Log object

Each delivery attempt is recorded as a log entry. Logs are immutable and retained regardless of delivery outcome. A failed delivery that is retried creates one log entry per attempt, and the entries share the same event_id.
string
Unique log entry identifier.
string
The ID of the entity whose webhook received the delivery. When a child entity’s event is delivered through its parent’s webhook, the log belongs to the parent, so list it with the parent’s entity_id.
string
The ID of the event that triggered this delivery.
string
The ID of the webhook that triggered this delivery.
string
The URL this delivery was sent to at the time of the attempt.
object
The request Nuvion sent to the webhook endpoint.
object
The response received from the webhook endpoint.
object
Timestamps for the delivery lifecycle.
number
Unix timestamp in milliseconds when the log entry was created.
number
Unix timestamp in milliseconds when the log entry was last updated.
number
0 for all log entries. Logs are immutable and never deleted.

Example webhook log

List webhook logs

GET /webhook-logs Returns a paginated list of delivery log entries for the authenticated entity, newest first. Returns 200 OK. Entries are never removed, so the list includes every attempt, including retries, test deliveries, and the webhook.health requests sent when you change a webhook’s URL or reactivate it.

Query parameters

string
Selects whose logs to list. Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns 404 error_resource_not_found. Events for a child entity that are delivered through its parent’s webhook are logged under the parent, so list them with the parent’s entity_id. See Managing child entities for details.
string
Only logs for deliveries to this webhook. A value that isn’t a 26-character ULID returns 422 error_validation_invalid_format. An unknown ID returns an empty list.
string
Only logs for this event. A failed delivery that is retried has one log entry per attempt, all with the same event_id. The value isn’t validated, so an unknown ID returns an empty list.
integer
Only logs created at or after this Unix timestamp in milliseconds. An ISO 8601 date or a value that isn’t a number returns 422 error_validation_invalid_format.
integer
Only logs created at or before this Unix timestamp in milliseconds, in the same format as created_from.
integer
Number of results per page. Between 1 and 100. Defaults to 20. A value outside that range, or a non-numeric value, returns 422 error_validation_value_out_of_range.
string
Pagination cursor for the next page: the data.meta.pagination.next_cursor value from the previous response. Omit for the first page. A value that isn’t a 26-character ULID returns 422 error_validation_invalid_format.
This endpoint pages forward only. It has no previous-page parameter: prev_cursor and previous_cursor are ignored and return the first page, and passing previous_cursor as cursor returns the records older than it. To revisit a page, keep the cursor you used to fetch it. has_previous is true whenever you send a cursor, even if that page is empty.

Request

Response

Returns the log entries under data.data and the pagination state under data.meta. Each entry is a Webhook Log object. filters_applied repeats the filters you sent, with the date range as created: {from, to}.
200 OK
X-Nuvion-Event-Signature and the other delivery headers are recorded as sent. See Verifying signatures for how to validate them.

Filter the list

Returns one delivery attempt for a single webhook in a time window. created_from and created_to are Unix timestamps in milliseconds. A filter that matches nothing returns an empty list.

Fetch the next page

Pass next_cursor from the previous response as cursor and keep the same filters. The response is the next page, and has_next is false on the last one.

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object. Example error responses:

Send a test event

POST /webhook-tests Sends a test delivery to an existing webhook endpoint, so you can verify it’s reachable and correctly signs and receives deliveries without waiting for a real event. Returns 200 OK. The request waits for the delivery, which is a single attempt: there are no retries, and the test doesn’t change the webhook’s stats or count toward blacklisting. The endpoint’s own answer is in data.response.status, and the request still returns 200 when the endpoint fails; 408 means it timed out. You can test a webhook that is inactive or blacklisted, which is a quick way to check an endpoint before you reactivate it.

Request parameters

string
required
The ID of the webhook to send the test event to. A malformed ID returns 422 error_validation_invalid_format, and one that doesn’t exist or has been deleted returns 404 error_resource_not_found.
string
required
The event group to simulate. One of entities, accounts, account_details, inflows, outflows, funding_sessions, payment_intent, payment_dispute, payment_refund, cards, offers, capital_orders, or capital_accounts. Any other value returns 422 error_validation_value_not_supported.
string
required
The specific event to simulate within the group. One of created, updated, deleted, completed, failed, cancelled, refunded, frozen, or unfrozen.The event must be enabled on the webhook: otherwise the request returns 400 error_operation_event_not_enabled. A webhook with enabled_events.all set to true accepts any combination, including ones Nuvion never emits, such as funding_sessions.created. Refer to the enabled_events structure for the events Nuvion sends.
string
Selects the entity that owns the webhook. Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.

Response

Returns the delivery as a Webhook Log object in data, with the message Test Webhook sent successfully. The log also includes meta.dispatched_via_proxy and an empty query object.
200 OK
The test delivery uses the same event and data envelope as a live event, but data contains only the ID of the webhook being tested, not a full event payload:
Use this endpoint to confirm your webhook is reachable and that your signature verification works, not to test your handler’s parsing logic against realistic event data. See Event types for real payload shapes.
Test events appear in webhook logs the same as live events. Check the logs to inspect the full request and response if your endpoint didn’t receive the payload as expected.

Errors

The request can also return the shared 403 and 429 errors. See Errors for the standard error object. Example error responses:

What’s next

Webhooks overview

Delivery model, retries, idempotency, and signature verification.

Event types

Full payload schemas and examples for every event.