Skip to main content

class SendWebhook

*,
integration_id: typing.Annotated[str, Strict(strict=True)],
requestPayload: Optional[Annotated[dict[str, Any], Json, BeforeValidator(func=<function ensure_json>, json_schema_input_type=PydanticUndefined), PlainSerializer(func=<function to_json>, return_type=PydanticUndefined, when_used='always')]] = None,
action_type: Literal[GENERIC_WEBHOOK] = GENERIC_WEBHOOK

Description

Defines an automation action that sends a webhook request.

Args

  • integration_id: The ID of the webhook integration that will be used to send the request.
  • requestPayload: The payload, possibly with template variables, to send in the webhook request.
  • action_type:

Methods

method from_integration

integration: 'WebhookIntegration', *,
payload: 'JsonEncoded[dict[str, Any]] | None' = None
Define a webhook action that sends to the given (webhook) integration.
Arguments
  • integration:
  • payload: