@shortcut/client
    Preparing search index...

    Interface ShortcutWebhookClientOptions

    interface ShortcutWebhookClientOptions {
        allowLegacySignature?: boolean;
        bodyLimit?: number;
        installationId?: string;
        timestampToleranceMs?: number;
        workspaceId?: string;
    }
    Index

    Properties

    allowLegacySignature?: boolean

    Accept Payload-Signature when Shortcut-Signature is absent. Off by default since 3.6.0, because Shortcut no longer sends Payload-Signature and a captured request verifies by it forever. Turn it on only for code written against 3.4.x that passes the bare value or signs test deliveries with signShortcutWebhookBody(). Session events always require Shortcut-Signature.

    bodyLimit?: number

    Maximum request-body size in bytes. Defaults to 2 MiB.

    installationId?: string

    Only accept deliveries for this installation id; others receive 403.

    timestampToleranceMs?: number

    How far a delivery's timestamp may be from this clock, either way. For Shortcut-Timestamp the window is 300 seconds and this can only tighten it. For a Payload-Signature delivery it checks the payload timestamp, which redeliveries keep, so that check is off unless this is set.

    workspaceId?: string

    Only accept deliveries for this workspace id; others receive 403.