Skip to main content
POST
Register webhook endpoint

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Idempotency
string
requerido

Idempotency key. Required on every mutation.

X-TTL
string

Idempotency key TTL in seconds (overrides the service default).

Ejemplo:

"86400"

Cuerpo

application/json
eventTypes
string[] | null
requerido

Canonical control-plane event types to subscribe to (str.operation., str.readiness., str.certificate., str.approval.); at least one entry, and no entry may be blank. LERIAN'S OWN vocabulary — these are Lerian SPB control-plane facts, not BACEN message codes.

Minimum array length: 1
Minimum string length: 1
Ejemplo:
secret
string
requerido

Shared signing secret; encrypted at rest with AES-256-GCM and never returned. The 16-512 character bound is LERIAN'S OWN, not BACEN's: the signing secret is Lerian SPB control plane and never crosses an SFN wire.

Required string length: 16 - 512
Ejemplo:

"whsec_0123456789abcdef"

url
string
requerido

HTTPS endpoint that receives event deliveries; subject to an HTTPS + SSRF check in the service, which is what makes it an endpoint rather than merely a URI. The 2048-character bound is LERIAN'S OWN, not BACEN's: a webhook endpoint is Lerian SPB control plane and never crosses an SFN wire.

Required string length: 1 - 2048
Ejemplo:

"https://example.com/webhooks/str-events"

isActive
boolean

Whether the endpoint is active and eligible to receive deliveries; defaults to active when omitted.

metadata
object

Arbitrary client-defined key/value metadata stored with the endpoint.

Respuesta

Created

correlationId
string
requerido

Request-scoped correlation identifier echoing X-Request-ID, for pivoting from response to trace.

Ejemplo:

"550e8400-e29b-41d4-a716-446655440001"

webhook
object
requerido

The created, fetched, or updated webhook endpoint.