Skip to main content
@mynthio/sdk/convex provides mynthWebhookAction() for handling signed Mynth webhooks in Convex HTTP actions.

Webhook helper

Each handler maps to a webhook event: The helper:
  • verifies the X-Mynth-Signature header using HMAC-SHA256
  • requires the X-Mynth-Event header, then routes on payload.event
  • exposes Convex context (and the original request) for running queries and mutations
If you do not pass webhookSecret explicitly, the helper reads MYNTH_WEBHOOK_SECRET from the environment.

Full walkthrough

For a complete Convex integration including schema, actions, webhooks, and reactive UI, see the Convex full-stack guide.