Endpoints
Merge Webhook
Receive Merge.dev events and enqueue them for processing.
POST /api/webhooks/merge
Use this endpoint as the webhook destination configured in Merge.dev. It writes the raw payload into Supabase, emits an Inngest record/received event, and returns immediately.
Request
Response
Error Codes
| Status | Code | Description |
|---|---|---|
| 401 | signature_invalid | HMAC verification failed. |
| 409 | duplicate_origin | Event with the same origin_id exists. |
| 422 | schema_violation | Payload doesn’t match Merge spec. |
Replay Script
For local testing run: