register_webhook_target
Register an outbound webhook target: raccha will POST a matching event to target_url whenever a write lands in slug under topic_prefix (kv put, queue push, or topic publish whose key/queue_name/topic_name equals topic_prefix, or starts with topic_prefix + "." -- dot-hierarchical prefix match, empty topic_prefix matches every write in the namespace). Requires owning the namespace slug. Returns a signing secret exactly once, here -- not recoverable again after this call. Every push carries a Raccha-Signature: t=<unix_ts>,v1=<hex_hmac_sha256> header (HMAC-SHA256 of "." with the secret) so the receiver can verify the push actually came from raccha.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Namespace slug this registration listens under. The caller must own it. | |
| owner_key | No | Owner key for the org that owns the namespace slug below. Optional. If omitted, defaults to the owner_key resolved from the connection's `Authorization: Bearer <owner_key>` header. | |
| target_url | Yes | http(s) URL raccha will POST matching events to. | |
| topic_prefix | No | Dot-hierarchical prefix to match against queue_name/kv key/topic name (equal, or `name` starting with `topic_prefix + "."`). Empty string matches every write in the namespace. |