Saltar al contenido principal
POST
Add a webhook endpoint

Autorizaciones

Authorization
string
header
requerido

Send your Cufea API key as Authorization: Bearer <key>.

Encabezados

Idempotency-Key
string | null

Makes the call safe to retry. Same key and same request: the first response is replayed with Idempotent-Replayed: true and nothing is done again. Same key and another request: 422 idempotency_key_reused. Same key while the first request still runs: 409 idempotency_in_progress. Keys belong to your account; they expire 24 hours after first use, after which the same key is usable again for a new request. A 5xx, 403, 404 or 409 answer is not stored, so the same key can be retried after it.

Required string length: 1 - 255

Cuerpo

application/json

A webhook endpoint to register. Its signing secret is generated by the server.

url
string
requerido

HTTPS endpoint that receives the event deliveries.

Ejemplo:

"https://hooks.example.com/cufea"

event_types
string[]

Event types to deliver; an empty list means every type.

Respuesta

Successful Response

active
boolean
requerido
created_at
string<date-time>
requerido
event_types
string[]
requerido
id
string<uuid>
requerido
secret
string
requerido

Signing secret. Shown ONCE, here: it cannot be retrieved again.

url
string
requerido

HTTPS endpoint that receives the deliveries.