Choose events to subscribe
Chooses for which events your webhook server receives payloads. By subscribing to specific events based on your needs, you can control the number of HTTP requests sent to your webhook server.
HTTP request
Request body
The following table lists the properties of an HTTP request that this action supports.
Optional
Property name | Type | Description |
---|---|---|
enabled | boolean | Determines whether webhooks are turned on in your Sendbird application. (Default: |
url | string | Specifies the URL of your webhook server to receive payloads for events. |
include_members | boolean | Determines whether to include information about group channel members in payloads. (Default: |
enabled_events[] | array of strings | Specifies an array of events for your webhook server to subscribe to. If only set to an asterisk (*), the server subscribes to all supported events. If set to an empty array, the server unsubscribes from all events and webhooks are turned off. |
Response
If successful, this action returns information about the webhook configuration in the response body.
In the case of an error, an error object is returned. A detailed list of error codes is available here.