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
| Flag | Meaning |
|---|---|
--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). |
--disabled | Create the connector disabled. |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Done. |
| 1 | The server refused or failed the request (named in the error). |
| 2 | Usage error — missing mandatory flags or no server target. |