Register a webhook endpoint
register_webhookRegister the delivery target a watch fires to, and get back the
webhook_endpoint_id watch_company needs -- call this first if you
do not already hold one. Idempotent: registering the same url twice
returns the same id, so retrying is safe and never leaves you with two
endpoints. secret is optional; supply one to verify the
X-Reqbeat-Signature on delivered payloads, omit it and one is
generated and returned once in secret (never again after this call).
Registration itself is free -- the watch_company call that follows is
what bills.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| secret | No | ||
| plane_api_key | No | Deprecated: pass the key in the `X-API-Key` header. Removed in 1.2. |