{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deadsimple-email/json-schema/deadsimple-email-webhook-schema.json",
  "title": "Webhook",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deadsimple-email-openapi.json#/components/schemas/Webhook",
  "type": "object",
  "properties": {
    "webhook_id": {
      "type": "string",
      "format": "uuid"
    },
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "message.received",
          "message.sent",
          "message.delivered",
          "message.bounced",
          "message.complained",
          "message.rejected",
          "message.opened",
          "message.link_clicked",
          "inbox.created",
          "inbox.deleted",
          "domain.verified"
        ]
      }
    },
    "is_active": {
      "type": "boolean"
    },
    "headers": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Custom delivery headers, values masked (write-only)."
    },
    "endpoint_secret_set": {
      "type": "boolean",
      "description": "True when deliveries are also signed with the receiver's own Standard Webhooks secret (see endpoint_secret on create). The secret itself is write-only and never returned.\n"
    },
    "inbox_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "Inboxes this webhook is restricted to. Empty means every inbox."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}