Webhooks
Last updated
Was this helpful?
Last updated
Was this helpful?
You can use Terraform to create and manage Webhooks in Kubiya.
Want to know more about Webhooks in Kubiya?
Provides a Kubiya Webhook resource. This allows webhooks to be created, updated, and deleted on the Kubiya platform, enabling external systems to trigger Kubiya agents via HTTP requests.
The following arguments are supported:
name
- (Required) The name of the webhook.
agent
- (Required) The name of the agent to trigger with this webhook.
filter
- (Optional) Filter for events that will trigger the webhook.
source
- (Optional) Source identification for the webhook.
prompt
- (Optional) Prompt to send to the agent when the webhook is triggered.
method
- (Optional) Notification method. Values: "Slack", "Teams", "Http". Defaults to "Slack".
destination
- (Optional) Destination for notifications:
For Slack: Channel name with "#" prefix (e.g., "#alerts", not needed for MS Teams) or username with "@" prefix
For MS Teams: Channel name within the team specified by team_name
For Http: Not required
team_name
- (Optional) Team name for Microsoft Teams notifications. Required when method
is "Teams".
In addition to the arguments above, the following attributes are exported:
id
- The ID of the webhook.
url
- The URL to trigger the webhook.
created_at
- The timestamp when the webhook was created.
created_by
- The user who created the webhook.
Webhooks can be imported using the id
: