OptionalpinnedKey: string
Optionally provide the RSA public key (PEM) to avoid fetching it over the network.
Fetch (and cache) the RSA public key used to sign webhooks.
Verify a webhook and return the typed event. rawBody MUST be the raw,
unparsed body (Buffer/string); signature is the videosdk-signature header.
Throws WebhookVerificationError if the signature is missing/invalid.
Verify a webhook synchronously, using an RSA public key (PEM) you already have (e.g. pinned in config). Same checks as WebhooksResource.verify.
Webhooks API —
vsdk.webhooks.Verify inbound webhooks: pass the raw, unparsed request body plus the
videosdk-signatureheader. Signatures are RSA-SHA256 (base64) over the raw body; the signing public key is fetched automatically and cached.Example