{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mailfixture-com/json-schema/mailfixture-com-hook-request-detail-schema.json",
  "title": "HookRequestDetail",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mailfixture-com-openapi.json#/components/schemas/HookRequestDetail",
  "properties": {
    "body": {
      "description": "The body as text. When the raw bytes were not valid UTF-8 text this is a lossy rendering — use `body_base64` for the exact bytes (signature verification needs them).",
      "type": "string"
    },
    "body_base64": {
      "description": "Base64 of the exact body bytes. Present ONLY when `body_is_utf8` is false.",
      "type": "string"
    },
    "body_is_utf8": {
      "type": "boolean"
    },
    "body_size": {
      "type": "integer"
    },
    "content_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "expires_at": {
      "description": "Plan retention, same clock as messages.",
      "format": "date-time",
      "type": "string"
    },
    "headers": {
      "description": "Lowercased names; duplicate values for one name keep their received order, but the relative order of different names is not preserved. The proxy's own x-forwarded-* hop headers are stripped (the sender address is `remote_ip`).",
      "items": {
        "$ref": "#/$defs/HookHeader"
      },
      "type": "array"
    },
    "hook_id": {
      "format": "uuid",
      "type": "string"
    },
    "id": {
      "format": "uuid",
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "path": {
      "type": "string"
    },
    "received_at": {
      "format": "date-time",
      "type": "string"
    },
    "remote_ip": {
      "description": "The sender's IP as seen at the edge.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "hook_id",
    "received_at",
    "method",
    "path",
    "headers",
    "content_type",
    "body",
    "body_is_utf8",
    "body_size",
    "remote_ip",
    "expires_at"
  ],
  "type": "object",
  "$defs": {
    "HookHeader": {
      "properties": {
        "name": {
          "description": "Lowercased header name.",
          "type": "string"
        },
        "value": {
          "description": "Header value, lossy-decoded when not valid UTF-8.",
          "type": "string"
        }
      },
      "required": [
        "name",
        "value"
      ],
      "type": "object"
    }
  }
}