{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mailbuttons-com/json-schema/mailbuttons-com-webhook-record-schema.json",
  "title": "WebhookRecord",
  "description": "Returned once, on registration — this is the only response that includes `secret`.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mailbuttons-com-openapi.json#/components/schemas/WebhookRecord",
  "properties": {
    "created_at": {
      "format": "date-time",
      "type": "string"
    },
    "customer_id": {
      "format": "int64",
      "type": "integer"
    },
    "events": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "id": {
      "format": "int64",
      "type": "integer"
    },
    "is_active": {
      "type": "boolean"
    },
    "mailbox_id": {
      "format": "int32",
      "type": "integer"
    },
    "secret": {
      "description": "HMAC secret for verifying the `X-Mailbuttons-Signature` header on delivered webhooks.",
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "mailbox_id",
    "customer_id",
    "url",
    "secret",
    "events",
    "is_active",
    "created_at"
  ],
  "type": "object"
}