The pattern
1
Define an HTTP action in convex/http.ts
Listens at
/api/{provider}-webhook.2
Verify the signature
Use the provider’s recommended verification method. Reject if invalid.
3
Parse the event payload
JSON; use the provider’s SDK to type-narrow.
4
Run the appropriate mutation or action
Update your DB / send notifications / etc.
5
Return 200 quickly
If the response takes too long, providers will retry. Defer slow work to a scheduled function.
Foundation prompt
Tips
Related
Webhooks SDK helpers
Verification helpers.
Stripe integration
A specific implementation.
HTTP actions
The function type webhooks live in.
