{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arkrel-com/json-schema/arkrel-com-webhook-with-secret-schema.json",
  "title": "WebhookWithSecret",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arkrel-com-webhooks-api-openapi.yml#/components/schemas/WebhookWithSecret",
  "allOf": [
    {
      "$ref": "#/$defs/Webhook"
    },
    {
      "type": "object",
      "required": [
        "secret"
      ],
      "properties": {
        "secret": {
          "type": "string",
          "description": "Shown once. Used to compute the HMAC-SHA256 signature header."
        }
      }
    }
  ],
  "$defs": {
    "Webhook": {
      "type": "object",
      "required": [
        "id",
        "url",
        "events",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "events": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "secret_prefix": {
          "type": "string"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}