json

val json: Json

A Json configured for Resend payloads, which ignores fields these models do not declare.

decode and verifyAndDecode use it. Decode a webhook through one of them rather than by registering this Json with Ktor's ContentNegotiation and calling call.receive<ResendWebhookMsg>(): that reads the request body itself, so the raw body the signature check needs, byte for byte, is no longer available.