Get API key
Authenticated all requests require Authorization: Bearer mk_test_…Learn more
API ReferenceWebhooksGet a signed sample event (no delivery)

Get a signed sample event (no delivery)

GET/api/v1/webhooks/{webhook_id}/sample

Returns a fully-signed sample webhook event WITHOUT delivering it anywhere. The killer feature for integrators on private staging / localhost / CI that can't receive inbound webhooks: feed the returned raw_body + X-Merdi-Signature straight into your receiver's verification code and confirm — before production — that your HMAC check accepts a real Merdi signature. IMPORTANT: verify against raw_body exactly as returned, NOT a re-serialized object (JSON key order / whitespace changes the HMAC input).

Parameters

webhook_id*
stringpath

Responses

Success body
{
  "status": 200,
  "message": "OK",
  "data": {
    "headers": {
      "Content-Type": "<Content-Type>",
      "X-Merdi-Event-Id": "<X-Merdi-Event-Id>",
      "X-Merdi-Event-Type": "<X-Merdi-Event-Type>",
      "X-Merdi-Signature": "<X-Merdi-Signature>"
    },
    "payload": {},
    "raw_body": "<raw_body>"
  }
}

Returned object

FieldTypeSample
statusnumber200
messagestringOK
dataobject{3 keys}