Registers a new webhook for capturing event notifications. A subaccountId that is not one of your subaccounts is refused with 400 "Request parameters are invalid", and its errors list holds "Given subaccount does not exist".
Create webhook
OptionalinitOverrides: RequestInit | InitOverrideFunctionRegisters a new webhook for capturing event notifications. A subaccountId that is not one of your subaccounts is refused with 400 "Request parameters are invalid", and its errors list holds "Given subaccount does not exist".
Create webhook
OptionalinitOverrides: RequestInit | InitOverrideFunctionRemove a configured webhook by its identifier. Results in the resource being deleted and no longer available. Delete webhook
OptionalinitOverrides: RequestInit | InitOverrideFunctionRemove a configured webhook by its identifier. Results in the resource being deleted and no longer available. Delete webhook
OptionalinitOverrides: RequestInit | InitOverrideFunctionReturns detailed information about a specific webhook by its identifier, including its configuration and event subscription details. Retrieve webhook
OptionalinitOverrides: RequestInit | InitOverrideFunctionReturns detailed information about a specific webhook by its identifier, including its configuration and event subscription details. Retrieve webhook
OptionalinitOverrides: RequestInit | InitOverrideFunctionProtectedisCheck if the given MIME is a JSON MIME. JSON MIME examples: application/json application/json; charset=UTF8 APPLICATION/JSON application/vnd.company+json
MIME (Multipurpose Internet Mail Extensions)
True if the given MIME is JSON, false otherwise.
Returns all webhooks configured under the account, optionally filtered by subaccount, including details on the events each webhook is subscribed to. This endpoint supports cursor-based pagination. List webhooks
OptionalinitOverrides: RequestInit | InitOverrideFunctionReturns all webhooks configured under the account, optionally filtered by subaccount, including details on the events each webhook is subscribed to. This endpoint supports cursor-based pagination. List webhooks
OptionalinitOverrides: RequestInit | InitOverrideFunctionProtectedrequestSends the request. Network errors and timeouts (while waiting for the answer or reading its body), 408, 429 and 5xx are retried for idempotent methods (see ConfigurationParameters.maxRetries). A 401 is retried once with a new token. Any other status outside 200 to 299 throws a ResponseError subclass. The body is read here, whole.
OptionalinitOverrides: RequestInit | InitOverrideFunctionUpdates the configuration of an existing webhook, allowing changes to the event subscriptions or notification URL. Only url, description, eventTypes and enabled can be sent. Any other field, subaccountId included, is refused with 400: a webhook's subaccount can't be changed.
Update webhook
OptionalinitOverrides: RequestInit | InitOverrideFunctionUpdates the configuration of an existing webhook, allowing changes to the event subscriptions or notification URL. Only url, description, eventTypes and enabled can be sent. Any other field, subaccountId included, is refused with 400: a webhook's subaccount can't be changed.
Update webhook
OptionalinitOverrides: RequestInit | InitOverrideFunction
The middleware of this instance; protected so hand-written subclasses can pass it on.