alepha@docs:~/docs/.content/release/framework/docs/packages/alepha/api$
cat webhooks.md | pretty1 min read
Last commit:
#Alepha - Api Webhooks
#Installation
Part of the alepha package. Import from alepha/api/webhooks.
npm install alepha
#Overview
Outbound webhooks: signed, retried deliveries on the jobs outbox.
Features:
$webhookdeclares an event (name, description, schema);sendwrites one delivery per subscribed endpoint and pushes its job- Endpoints are rows (
webhook_endpoints), never source: URL, subscribed events, a secret encrypted withAPP_SECRET, an optional tenancyscope - A delivery log (
webhook_deliveries): the envelope, the receiver's status and an excerpt of its answer, per delivery - Inside a transaction,
sendis a true outbox on Postgres and SQLite
Not registered, nothing exists: no table, no job, no route.
#API Reference
#Primitives
$webhook- Declares an outbound webhook event: its name, what it means to a