The Set Webhook API allows you to configure a new webhook within the system. To set a new webhook, you must provide two key pieces of information: the type of the webhook, which determines the category of events the webhook is designed to handle (e.g., CARD_SWITCH), and the webhook_url, which specifies the destination to which notifications are sent when the specified events occur. This API is essential for creating event-driven interactions and automating responses to specific events within the system.

It is important to note that if there is an existing webhook with the same type as the one being set, the new webhook configuration will override the existing one. As a result, the system will only retain the most recent webhook configuration for each type. This behavior allows you to easily update webhook configurations as needed, but it also requires careful consideration to avoid unintentionally overwriting existing webhooks.

Language
Authorization