Skip to main content
POST
Register webhook endpoint

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string
obrigatório

Idempotency key. Required on every mutation.

X-TTL
string

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

Exemplo:

"86400"

Corpo

application/json
eventTypes
string[] | null
obrigatório

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
Exemplo:
secret
string
obrigatório

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
Exemplo:

"whsec_0123456789abcdef"

url
string
obrigatório

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
Exemplo:

"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.

Resposta

Created

correlationId
string
obrigatório

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

Exemplo:

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

webhook
object
obrigatório

The created, fetched, or updated webhook endpoint.