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
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
enabled | Bool | No | -- | Enable or disable hooks. |
token | String | No | -- | Authentication token for hooks. Sensitive. |
path | String | No | "/hooks" | URL path prefix for hooks. |
default_session_key | String | No | -- | Default session key when none is specified in the hook request. |
Attribute Reference
| Attribute | Type | Description |
|---|---|---|
id | String | Always "hook". |
Import
terraform import openclaw_hook.main hook