Skip to main content
Version: v5.7.0

opschain admin notifications connectors create

Included from Basic tier

opschain admin notifications connectors create --name <name> --kind webhook|slack|teams [flags]

Creates a channel connector (NotificationAdminService.CreateNotificationConnector). A webhook connector requires --allow-url and --signing-secret-env; slack and teams require --webhook-url-env and refuse the webhook-only flags.

Flags​

FlagMeaning
--name <name>The connector's name, unique instance-wide (mandatory).
--kind <kind>webhook, slack or teams (mandatory).
--allow-url <prefix>An HTTPS URL prefix deliveries may target (repeatable; webhook only).
--default-headers <json>Default headers as a JSON object with string values (webhook only; non-secret configuration — secrets belong in the signing secret).
--signing-secret-env <VAR>Name of an environment variable holding the HMAC signing secret (webhook only; never pass the value itself on the command line).
--webhook-url-env <VAR>Name of an environment variable holding the incoming-webhook URL (slack/teams only; a capability secret).
--disabledCreate the connector disabled.

Exit codes​

CodeMeaning
0Done.
1The server refused or failed the request (named in the error).
2Usage error — missing mandatory flags or no server target.