{
  "info": {
    "name": "MDH API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Publish event",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{MDH_API_KEY}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": "https://api.mdh.dev/v1/events",
        "body": {
          "mode": "raw",
          "raw": "{\"type\": \"payment.succeeded\", \"data\": {\"id\": \"pay_4f92ka\", \"amount\": 4200}}"
        }
      }
    },
    {
      "name": "Create endpoint",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{MDH_API_KEY}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": "https://api.mdh.dev/v1/endpoints",
        "body": {
          "mode": "raw",
          "raw": "{\"url\": \"https://api.acme.dev/hooks\", \"events\": [\"payment.*\"]}"
        }
      }
    },
    {
      "name": "Replay event",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{MDH_API_KEY}}"
          }
        ],
        "url": "https://api.mdh.dev/v1/events/evt_9f2ka1/replay"
      }
    }
  ]
}