TYPESCRIPT / JAVASCRIPT
Webhook verification
Method reference generated from the public package declarations · v0.3.0
Verify exact raw bytes and the configured public URL before durable Inbox admission. Deduplicate CloudEvents by source and id; signing keys are separate from OAuth credentials.
Related HTTP contractverifyWebhook
functionexport function verifyWebhook(options: VerifyWebhookOptions): Promise<VerifiedWebhookEvent>;VerifyWebhookOptions
interfaceexport interface VerifyWebhookOptions {
body: string | Uint8Array;
headers: HeadersInit;
maxAgeSeconds?: number;
method: string;
now?: Date;
secret: string | readonly string[];
url: string;
}VerifiedWebhookEvent
interfaceexport interface VerifiedWebhookEvent {
[key: string]: unknown;
data: unknown;
id: string;
source: string;
specversion: "1.0";
type: string;
}Download method index JSON ↓ · Source digest 5f558e57b94420ef8fc60d9a8274a2ab5b92ac85d23f370a5bac4bc7ad2baae2