{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnautical-com/json-schema/arcnautical-com-webhook-endpoint-schema.json",
  "title": "WebhookEndpoint",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnautical-com-webhooks-api-openapi.yml#/components/schemas/WebhookEndpoint",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "event_types": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WebhookEventType"
      }
    },
    "is_active": {
      "type": "boolean"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "WebhookEventType": {
      "type": "string",
      "description": "Subscribing to a subset means you receive ONLY that subset, so this list is generated from the one the server validates against rather than written out here. Until 2026-09-05 it was a hand-kept copy carrying 7 of the events we emit, and an endpoint that subscribed to the documented list therefore received no vessel-monitor events at all. Leave event_types empty to receive everything.",
      "enum": [
        "voyage_batch.completed",
        "corridor_monitor.ready",
        "corridor_risk.changed",
        "corridor_data.degraded",
        "corridor_data.recovered",
        "vessel_monitor.ready",
        "vessel_risk.changed",
        "vessel_data.degraded",
        "vessel_data.recovered",
        "screening_batch.completed",
        "screening.resolved",
        "screening.unresolved",
        "export.completed",
        "export.failed",
        "usage.quota_warning",
        "usage.quota_exhausted",
        "crew_check.changed"
      ]
    }
  }
}