curviate webhook create
Register a new webhook endpoint.
Usage
curviate webhook create --source <source> --request-url <request-url> [flags]Examples
curviate webhook create --source messaging --request-url https://example.com/hooks/curviate --account-ids acc_YOUR_ACCOUNT_ID
curviate webhook create --source motion --request-url https://example.com/hooks/curviate --motion-ids mot_YOUR_MOTION_ID
curviate webhook create --source account_status --request-url https://example.com/hooks/curviate --name statusFlags
| Flag | Type | Required | Description |
|---|---|---|---|
--template-file | string | no | The delivery body as a JSON text with {{variables}} (curviate webhook variables --source <source>), from a path or - for stdin. Lint it offline first: curviate webhook lint. |
--custom-events | string | no | With motion.custom_event subscribed: deliver only these custom event names (comma list). Omit for every custom event. |
--header | string | no | A custom header on every delivery, KEY:VALUE; repeatable, replaces the whole set. KEY alone keeps that header's stored value (values are never read back). Not covered by the signature. |
--source | string | yes | Event source: messaging | |
--request-url | string | yes | HTTPS URL to receive webhook deliveries. |
--account-ids | string | no | Comma-separated account ids to target. Omit to cover every account you can operate, now and later. |
--motion-ids | string | no | Comma-separated Motion ids (mot_...): only events of these Motions are delivered, and events that carry no Motion are not. Omit for no filter. |
--name | string | no | Human-readable name (up to 100 characters). |
--enabled | boolean | no | Create as enabled (default: true). Default: true. |
--events | string | no | Comma-separated event names to subscribe to. |
--data | string | no | Comma-separated field-remapping keys. |
Also accepts these global flags: --api-key, --profile, --account, --team, --base-url, --timeout, --json, --fields, --preview, --verbose, --beta.
Exit codes: the exit code table. More commands: Webhook.