@mynthio/sdk/convex provides mynthWebhookAction() for handling signed Mynth webhooks in Convex HTTP actions.
Webhook helper
The helper:
- verifies the
X-Mynth-Signatureheader using HMAC-SHA256 - requires the
X-Mynth-Eventheader, then routes onpayload.event - exposes Convex
context(and the originalrequest) for running queries and mutations
webhookSecret explicitly, the helper reads MYNTH_WEBHOOK_SECRET from the environment.