Create, update, or delete a webhook subscription, or rotate its secret
manage_webhookCreate and maintain Featureflip webhook subscriptions for Slack, Datadog, Grafana, or custom HTTP endpoints, including event filters, signing secret rotation, and deletion.
Instructions
action=create requires name + url and returns the signing secret. action=update/delete/rotate_secret/retire_secret require id. provider (create only, default GenericHttp) is the destination type: a Slack incoming webhook URL (https://hooks.slack.com/services/...) needs provider: "Slack", which posts readable channel messages; provider: "Datadog" sends Events API change events (url is your site's https://event-management-intake./api/v2/events) and provider: "Grafana" creates annotations (url is https:///api/annotations). Datadog and Grafana require credential (a Datadog API key, or a Grafana service account token that can create annotations, e.g. Editor); GenericHttp and Slack refuse it. credential is write-only: stored encrypted, never returned, and never echoed in this tool's output. A subscription's provider can never change. update changes only the fields you pass and keeps the rest; pass an empty list to widen that filter back to "all". projects take project keys or ids; environments take "/" keys (e.g. "web/production") or ids. eventTypes come from list_webhooks → availableEventTypes. create and rotate_secret return a secret that is NEVER shown again: relay it to the user verbatim so they can store it (for a GenericHttp subscription only: Slack, Datadog and Grafana never check it, so skip it there). Slack doesn't verify signatures, so a Slack subscription's secret is unused and rotate_secret is refused for one, and so are Datadog and Grafana ones, which authenticate with credential instead. On update, omit credential to keep the stored one; changing the url of a Datadog or Grafana subscription requires sending credential again. rotate_secret adds a new active secret while the old one keeps signing; retire_secret (secretId from list_webhooks) removes one and is refused for the last active secret. A project-restricted service token must list at least one project, all in its scope. Requires an Admin token. A 404 on every webhook call means webhooks are not enabled for the organization.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "manage_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Subscription id; required for everything except create | |
| url | No | Receiver URL; required for create | |
| name | No | Required for create | |
| action | Yes | What to do; every action except create needs id | |
| enabled | No | update only; subscriptions are created enabled | |
| projects | No | Project keys or ids to cover; empty or omitted on create = all | |
| provider | No | create only. Slack for a hooks.slack.com/services/ URL; Datadog or Grafana for those destinations (credential required); GenericHttp (default) for your own endpoint | |
| secretId | No | Required for retire_secret | |
| credential | No | Write-only. Datadog API key or Grafana service account token (permission to create annotations). Required on create for Datadog and Grafana, refused for GenericHttp and Slack. On update, omit to keep the stored one; required again when changing url on a Datadog or Grafana subscription. Never returned. | |
| eventTypes | No | Event types to send; empty or omitted = all | |
| environments | No | "<project>/<environment>" keys or environment ids; empty or omitted on create = all | |
| idempotency_key | No | Idempotency-Key header for create / rotate_secret |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||