SendWebhook

class SendWebhook

Defines an automation action that sends a webhook request.

method SendWebhook.__init__

__init__(
    integration_id: 'str',
    request_payload: 'Annotated | None' = None,
    action_type: 'Literal[GENERIC_WEBHOOK]' = GENERIC_WEBHOOK
)  None

Args:

  • integration_id (str): The ID of the webhook integration that will be used to send the request.
  • request_payload (Optional[Annotated]): The payload, possibly with template variables, to send in the webhook request.
  • action_type (Literal[GENERIC_WEBHOOK]):

Returns: An SendWebhook object.

classmethod SendWebhook.from_integration

from_integration(
    integration: 'WebhookIntegration',
    payload: 'Optional[SerializedToJson[dict[str, Any]]]' = None
)  Self

Define a webhook action that sends to the given (webhook) integration.