🦞
Resources

openclaw_hook

Manages the OpenClaw webhook configuration.

Manages the webhook (hooks) configuration. Webhooks allow external systems to trigger agent actions via HTTP.

This is a singleton resource.

Example Usage

resource "openclaw_hook" "main" {
  enabled             = true
  token               = var.hook_token
  path                = "/hooks"
  default_session_key = "webhook-session"
}

Argument Reference

ArgumentTypeRequiredDefaultDescription
enabledBoolNo--Enable or disable hooks.
tokenStringNo--Authentication token for hooks. Sensitive.
pathStringNo"/hooks"URL path prefix for hooks.
default_session_keyStringNo--Default session key when none is specified in the hook request.

Attribute Reference

AttributeTypeDescription
idStringAlways "hook".

Import

terraform import openclaw_hook.main hook

On this page