@amigo-ai/sdk
    Preparing search index...

    Interface ParseWebhookEventOptions

    Options for parsing a webhook event.

    interface ParseWebhookEventOptions {
        maxAge?: number;
        payload: string | Buffer<ArrayBufferLike>;
        secret?: string;
        signature?: string;
        timestamp?: string;
    }
    Index

    Properties

    maxAge?: number

    Maximum age of the webhook event in milliseconds. Events older than this are rejected to prevent replay attacks.

    300_000 (5 minutes)
    
    payload: string | Buffer<ArrayBufferLike>

    Raw request body (string or Buffer).

    secret?: string

    Webhook destination secret for signature verification.

    signature?: string

    HMAC-SHA256 signature from x-amigo-request-signature header.

    timestamp?: string

    Timestamp from x-amigo-request-timestamp header (ms).