Skip to content

WebhookAPI

Defined in: namespaces-core-plugins.ts:759

Bidirectional HTTPS webhook surface (fn-99/fn-118). Engine-direct ingress (NOT routed through the fn-89 Invoker). There is NO replay on the JS bridge — replay is admin-only (AD-FN99-05).

fn-99

registerRoute(spec, handler): Promise<string>

Defined in: namespaces-core-plugins.ts:766

Registers an inbound route. Handler may return a sync WebhookHTTPResponse or a Promise of one. [webhook.route.register; unsigned routes additionally need webhook.route.register.unsigned]

AnyJSONValue

(request) => WebhookHTTPResponse | Promise<WebhookHTTPResponse>

Promise<string>


unregisterRoute(handleId): Promise<void>

Defined in: namespaces-core-plugins.ts:768

Unregisters a route (owner-scoped; missing/foreign collapse to WEBHOOK_UNKNOWN_ROUTE_ID).

string

Promise<void>


send(request): Promise<AnyJSONValue>

Defined in: namespaces-core-plugins.ts:773

Sends an outbound webhook, awaiting the eventual durable retry terminal (two-phase). [webhook.outbound.send]

AnyJSONValue

Promise<AnyJSONValue>


enqueue(request): Promise<string>

Defined in: namespaces-core-plugins.ts:775

Enqueues durable outbound delivery. Returns an outgoingHandleId. [webhook.outbound.send]

AnyJSONValue

Promise<string>


currentPublicURL(): Promise<AnyJSONValue>

Defined in: namespaces-core-plugins.ts:777

Current tunnel status/public URL (never null). [webhook.tunnel.read, fn-118]

Promise<AnyJSONValue>


deliveries(routeHandleId, limit?): Promise<AnyJSONValue[]>

Defined in: namespaces-core-plugins.ts:779

Delivery log rows for an owned/granted route. [webhook.log.read]

string

number

Promise<AnyJSONValue[]>