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 status

Flags

FlagTypeRequiredDescription
--template-filestringnoThe 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-eventsstringnoWith motion.custom_event subscribed: deliver only these custom event names (comma list). Omit for every custom event.
--headerstringnoA 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.
--sourcestringyesEvent source: messaging | user | account_status | post (scheduled-post results: post.published, post.publish_failed) | motion (motion.status_changed, enrollment.started, enrollment.accepted, enrollment.replied, enrollment.skipped, enrollment.finished, step.failed, motion.custom_event; opt-in only, named in --events: step.executed, enrollment.seen, enrollment.reassigned).
--request-urlstringyesHTTPS URL to receive webhook deliveries.
--account-idsstringnoComma-separated account ids to target. Omit to cover every account you can operate, now and later.
--motion-idsstringnoComma-separated Motion ids (mot_...): only events of these Motions are delivered, and events that carry no Motion are not. Omit for no filter.
--namestringnoHuman-readable name (up to 100 characters).
--enabledbooleannoCreate as enabled (default: true). Default: true.
--eventsstringnoComma-separated event names to subscribe to.
--datastringnoComma-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.