You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs say that inboundemail exports the type InboundWebhookPayload and the function verifyWebhookFromHeaders. But those two exports don't actually exist:
Activity
R44VC0RP commentedon Dec 15, 2025
Good call, going to get those added in
0.20.0.feat: add webhook payload types and verification helpers
R44VC0RP commentedon Dec 21, 2025
Fixed in PR #27 (0.20.0 release). Added the following exports:
Types:
InboundWebhookPayload- Complete webhook payload structureInboundEmail,InboundEmailAddress,InboundEmailAddressFieldInboundAttachment,InboundParsedEmailData,InboundCleanedContentInboundEndpointInfoFunctions:
isInboundWebhookPayload()- Type guard for payload validationverifyWebhook()- Verify webhook by endpoint ID and tokenverifyWebhookFromHeaders()- Verify webhook using request headersUsage: