Proteside Docs
Referencia de endpointsWebhooks

Crear un webhook

POST
/webhooks

Crea un canal de notificación de tipo webhook (formato json), slack o teams. Si se omite secret, se genera uno; se devuelve una sola vez en esta respuesta. Las entregas se firman con X-Proteside-Signature: t=<unix>,v1=<hex hmac_sha256(secret, t + "." + rawBody)> y se reintentan 3 veces (1 min, 10 min, 60 min).

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Token de API creado en Ajustes → API. Los alcances están vinculados al token; cada operación indica el alcance requerido en x-scope.

Parámetros de consulta

org_id?string

Solo socios (orgs:manage): actúa sobre esta organización hija. También se puede enviar como org_id en cuerpos JSON.

Formatouuid

Parámetros de encabezado

Idempotency-Key?string

Reproduce la respuesta original durante 24 h

Longitud1 <= length <= 255

Cuerpo de la solicitud

application/json
  1. body
url*string

https only

Formatouri
secret?string

Omit to have one generated

Longitud16 <= length <= 256
format?string
Predeterminado"json"
Valor en"json""slack""teams"
name?string
Longitudlength <= 120
store_id?string
Formatouuid
events?array<>|null
min_severity?string
Predeterminado"high"
Valor en"critical""high""medium""low""info"
active?boolean
Predeterminadotrue

Cuerpo de la respuesta

Webhook con secret que se muestra una sola vez

application/json
  1. response
id?string
Formatouuid
org_id?string
Formatouuid
store_id?|

null = organization-wide

Formatouuid
type?string
Valor en"webhook""slack""teams"
name?string
url?|
Formatouri
format?string
Valor en"json""slack""teams"
has_secret?boolean
events?array<>|

null = all events

min_severity?string
Valor en"critical""high""medium""low""info"
active?boolean
last_used_at?|
Formatodate-time
created_at?string
Formatodate-time
updated_at?string
Formatodate-time
secret?string

Shown once

secret_generated?boolean
curl -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_0f1e2d3c4b5a69788796a5b4c3d2e1f00f1e2d3c4b5a6978",  "secret_generated": true}