{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/500toolbox/json-schema/500toolbox-post-hooks-toolbox-request-schema.json",
  "title": "PostHooksToolboxRequest",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/500toolbox-openapi-generated.yml#/components/schemas/PostHooksToolboxRequest",
  "type": "object",
  "properties": {
    "X-ToolBox-Event": {
      "type": "string",
      "description": "The event name, e.g., credits.low"
    },
    "X-ToolBox-Timestamp": {
      "type": "string",
      "description": "Unix timestamp of the delivery"
    },
    "X-ToolBox-Signature": {
      "type": "string",
      "description": "HMAC‑SHA256 signature of \"{timestamp}.{body}\""
    },
    "body": {
      "type": "object",
      "description": "JSON payload of the webhook event"
    },
    "id": {
      "type": "string",
      "description": "Unique delivery identifier"
    },
    "event": {
      "type": "string",
      "description": "Event type, e.g., credits.low"
    },
    "createdAt": {
      "type": "string",
      "description": "ISO‑8601 timestamp of when the event was created"
    },
    "data": {
      "type": "object",
      "description": "Event‑specific data"
    },
    "balance": {
      "type": "integer",
      "description": "Current credit balance"
    },
    "threshold": {
      "type": "integer",
      "description": "Configured low‑credit threshold"
    },
    "message": {
      "type": "string",
      "description": "Human‑readable message about the event"
    }
  },
  "required": [
    "X-ToolBox-Event",
    "X-ToolBox-Timestamp",
    "X-ToolBox-Signature",
    "body",
    "id",
    "event",
    "createdAt",
    "data",
    "balance",
    "threshold",
    "message"
  ]
}