{
  "openapi": "3.1.0",
  "info": {
    "title": "LIQUID webhooks",
    "version": "1.0.0-sandbox",
    "description": "Events you can already read on the engine stream, posted to your https URL.\n\n**Each delivery** is a `POST` with JSON and these headers:\n\n- `liquid-signature: t=<unix seconds>,v1=<hex>` where `v1 = HMAC-SHA256(your secret, \"<t>.<raw body>\")`\n- `liquid-event-id`, `liquid-delivery-id`\n\nCheck the signature with a constant-time compare and reject `t` older than 5 minutes. Answer 2xx within 5 seconds; anything else is retried after 10 s, 30 s, 2 min, 10 min, 30 min, 2 h and 6 h, then marked failed. The same event may arrive twice: use `id` to ignore repeats.\n\nManage subscriptions with `/v1/webhooks` in the platform API."
  },
  "webhooks": {
    "event": {
      "post": {
        "operationId": "event",
        "summary": "An event happened",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Event"
              },
              "examples": {
                "payment": {
                  "value": {
                    "id": "evt_1734",
                    "type": "payment.result",
                    "created": "2026-11-18T07:40:12.512Z",
                    "data": {
                      "seq": 1734,
                      "flow": "payment:P-CC85CF70",
                      "kind": "RESULT",
                      "actor": "LIQUID",
                      "system": "platform",
                      "text": "Paid: PKR 4,000,000 to Sitara Builders, settled at SBP and checked against five records.",
                      "link": "https://explorer.liquid.bridgeintelligence.cloud/tx/0x…",
                      "orgId": "0b3c…",
                      "data": {}
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Received. Any 2xx is fine."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Event": {
        "type": "object",
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Event id, e.g. evt_1234. Use it to ignore repeats.",
            "examples": [
              "evt_1734"
            ]
          },
          "type": {
            "type": "string",
            "description": "`<family>.<kind>`. Families: org, connect, counterparty, contract, escrow, payment, payorder, market. Kinds: trigger, action, event, result, info, error. A test delivery is `webhook.test`.",
            "examples": [
              "payment.result"
            ]
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "type": "object",
            "properties": {
              "seq": {
                "type": "integer"
              },
              "flow": {
                "type": "string",
                "examples": [
                  "payment:P-CC85CF70"
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "TRIGGER",
                  "ACTION",
                  "EVENT",
                  "RESULT",
                  "INFO",
                  "ERROR"
                ]
              },
              "actor": {
                "type": "string"
              },
              "system": {
                "type": "string",
                "examples": [
                  "bankhub",
                  "banksim",
                  "besu",
                  "platform"
                ]
              },
              "text": {
                "type": "string",
                "description": "What happened, in one plain sentence."
              },
              "link": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Shared-record proof (explorer link), when there is one."
              },
              "orgId": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid"
              },
              "data": {
                "description": "Details (message ids, amounts, transaction hashes)."
              }
            }
          }
        }
      }
    }
  }
}