Create a webhook
POST /webhooks endpoint of the Proteside API: parameters, request body, responses and code samples.
Creates a notification channel of type webhook (format json), slack or teams. When secret is omitted one is generated; it is returned once in this response. Deliveries are signed with X-Proteside-Signature: t=<unix>,v1=<hex hmac_sha256(secret, t + "." + rawBody)> and retried 3 times (1 min, 10 min, 60 min).
bearerAuthAuthorizationBearer <token>API token created in Settings → API. Scopes are attached to the token; each operation lists its required scope in x-scope.
org_id?stringPartners only (orgs:manage): act on this child organization. May also be sent as org_id in JSON bodies.
uuidIdempotency-Key?stringReplays the original response for 24 h
1 <= length <= 255application/json- body
url*stringhttps only
urisecret?stringOmit to have one generated
16 <= length <= 256format?string"json""json""slack""teams"name?stringlength <= 120store_id?stringuuidevents?array<>|nullmin_severity?string"high""critical""high""medium""low""info"active?booleantrueWebhook with one-time secret
application/json- response
id?stringuuidorg_id?stringuuidstore_id?|null = organization-wide
uuidtype?string"webhook""slack""teams"name?stringurl?|uriformat?string"json""slack""teams"has_secret?booleanevents?array<>|null = all events
min_severity?string"critical""high""medium""low""info"active?booleanlast_used_at?|date-timecreated_at?stringdate-timeupdated_at?stringdate-timesecret?stringShown once
secret_generated?booleancurl -X POST "https://example.com/webhooks" \ -H "Content-Type: application/json" \ -d '{ "url": "https://ops.partner.example/hooks/proteside", "format": "json", "events": [ "alert.created", "alert.resolved", "report.ready" ], "min_severity": "high" }'{ "id": "a9b8c7d6-0000-4111-8222-333344445555", "org_id": "7f3c1e2a-0b4d-4c8e-9f10-2a3b4c5d6e7f", "store_id": null, "type": "webhook", "name": "Webhook · ops.partner.example", "url": "https://ops.partner.example/hooks/proteside", "format": "json", "has_secret": true, "events": [ "alert.created", "alert.resolved", "report.ready" ], "min_severity": "high", "active": true, "last_used_at": null, "created_at": "2026-09-27T10:20:00.000Z", "updated_at": "2026-09-27T10:20:00.000Z", "secret": "whsec_YOUR_SECRET", "secret_generated": true}