Skip to main content

Webhook Endpoints Overview

Description

The Webhook Endpoints API group facilitates real-time event notifications for payment and payout activities using stablecoins. It allows developers to set up, retrieve, and update webhook endpoints, ensuring timely updates on transaction statuses with secure signature verification.

API Endpoints

  • Create Webhook: Registers a new webhook endpoint with a specified URL.
  • Get Webhook: Retrieves details of a specific webhook endpoint.
  • Update Webhook: Updates the details of an existing webhook endpoint, such as its URL.

API Endpoint Reference

MethodEndpointDescription
POST/v1/webhook_endpointsCreates a new webhook endpoint.
GET/v1/webhook_endpoints/:idRetrieves details of a specific webhook.
PATCH/v1/webhook_endpoints/:idUpdates an existing webhook endpoint.

Attributes

AttributeTypeDescription
idstringUnique identifier for the webhook endpoint (e.g., we_1ZbSVMF8KXuhmXpKPXkt).
account_idstringID of the account associated with the webhook.
urlstringThe URL where webhook events will be sent.
enabled_eventsarrayList of events enabled for this webhook (e.g., [] for none).
descriptionstring or nullOptional description of the webhook endpoint.
secretstringSecret key for verifying webhook signatures (e.g., whsec_67f8c3677abd4063da64ca3b11f1fe87).
metadataobjectAdditional metadata, if provided (e.g., {}).
statusstringCurrent status of the webhook endpoint (e.g., enabled).
created_attimestampTime when the webhook endpoint was created.
updated_attimestampTime when the webhook endpoint was last updated.

Status Enum

The status field indicates the current state of the webhook endpoint. Possible values are:

  • enabled: The webhook endpoint is active and receiving events.
  • disabled: The webhook endpoint is inactive and not receiving events.