{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flatmark-dev/json-schema/flatmark-dev-webhook-endpoint-created-schema.json",
  "title": "WebhookEndpointCreated",
  "description": "The new endpoint, with its signing secret.",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flatmark-dev-openapi.json#/components/schemas/WebhookEndpointCreated",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "url": {
      "type": "string",
      "title": "Url"
    },
    "event_types": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Event Types",
      "description": "Empty means every event type."
    },
    "description": {
      "type": "string",
      "title": "Description"
    },
    "enabled": {
      "type": "boolean",
      "title": "Enabled",
      "description": "False once delivery failed 20 times in a row. Create the endpoint again."
    },
    "disabled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Disabled At"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "secret": {
      "type": "string",
      "title": "Secret",
      "description": "The Standard Webhooks signing secret (`whsec_…`). Store it now: it is not shown again."
    }
  },
  "type": "object",
  "required": [
    "id",
    "url",
    "event_types",
    "description",
    "enabled",
    "created_at",
    "secret"
  ]
}